mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Files for Allowing disabling avatar panic links
(cherry picked from commit 5f3a8644a7
)
This commit is contained in:
@ -499,6 +499,22 @@ void plVirtualCam1::SetCutNextTrans()
|
||||
#endif
|
||||
}
|
||||
|
||||
void plVirtualCam1::SetCutNext()
|
||||
{
|
||||
plCameraModifier1* cam = GetCurrentCamera();
|
||||
if (cam && cam->GetBrain()) {
|
||||
cam->GetBrain()->SetFlags(plCameraBrain1::kCutPosOnce);
|
||||
cam->GetBrain()->SetFlags(plCameraBrain1::kCutPOAOnce);
|
||||
}
|
||||
|
||||
SetFlags(kCutNextTrans);
|
||||
SetRender(true);
|
||||
|
||||
#ifdef STATUS_LOG
|
||||
camLog->AddLineF("Set Camera to cut on next frame");
|
||||
#endif
|
||||
}
|
||||
|
||||
void plVirtualCam1::SetRender(hsBool render)
|
||||
{
|
||||
fFlags.SetBit(kRender,render);
|
||||
|
@ -85,6 +85,7 @@ public:
|
||||
enum flags
|
||||
{
|
||||
kSetFOV,
|
||||
/** Forces the next camera transition to be cut. */
|
||||
kCutNextTrans,
|
||||
kRender,
|
||||
kRegionIgnore,
|
||||
@ -145,6 +146,7 @@ public:
|
||||
hsPoint3 GetCameraPOA() { return fOutputPOA; }
|
||||
hsVector3 GetCameraUp() { return fOutputUp; }
|
||||
void SetCutNextTrans(); // used when player warps into a new camera region
|
||||
void SetCutNext();
|
||||
|
||||
const hsMatrix44 GetCurrentMatrix() { return fMatrix; }
|
||||
static plVirtualCam1* Instance() { return fInstance; }
|
||||
|
Reference in New Issue
Block a user