mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Merge remote-tracking branch 'origin/master' into plString
[AMEND] Fixed one new case which came in from master
This commit is contained in:
@ -650,6 +650,7 @@ void plArmatureMod::IInitDefaults()
|
||||
fStealthLevel = 0;
|
||||
fMouseFrameTurnStrength = 0.f;
|
||||
fSuspendInputCount = 0;
|
||||
fIsLinkedIn = false;
|
||||
fMidLink = false;
|
||||
fAlreadyPanicLinking = false;
|
||||
fReverseFBOnIdle = false;
|
||||
@ -1368,16 +1369,21 @@ hsBool plArmatureMod::MsgReceive(plMessage* msg)
|
||||
plLinkInDoneMsg *doneMsg = plLinkInDoneMsg::ConvertNoRef(msg);
|
||||
if (doneMsg)
|
||||
{
|
||||
fIsLinkedIn = true;
|
||||
IFireBehaviorNotify(plHBehavior::kBehaviorTypeLinkIn, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
plAgeLoadedMsg *ageLoadMsg = plAgeLoadedMsg::ConvertNoRef(msg);
|
||||
if (ageLoadMsg && ageLoadMsg->fLoaded)
|
||||
if (ageLoadMsg)
|
||||
{
|
||||
// only the local player gets these
|
||||
NetworkSynch(hsTimer::GetSysSeconds(), true);
|
||||
EnablePhysics(true);
|
||||
if (ageLoadMsg->fLoaded)
|
||||
{
|
||||
// only the local player gets these
|
||||
NetworkSynch(hsTimer::GetSysSeconds(), true);
|
||||
EnablePhysics(true);
|
||||
} else
|
||||
fIsLinkedIn = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -2503,6 +2509,11 @@ bool plArmatureMod::IsMidLink()
|
||||
return fMidLink;
|
||||
}
|
||||
|
||||
bool plArmatureMod::IsLinkedIn()
|
||||
{
|
||||
return fIsLinkedIn;
|
||||
}
|
||||
|
||||
hsBool plArmatureMod::ConsumeJump()
|
||||
{
|
||||
if (!GetInputFlag(B_CONTROL_CONSUMABLE_JUMP))
|
||||
|
@ -318,6 +318,7 @@ public:
|
||||
int GetStealthLevel() const { return fStealthLevel; }
|
||||
|
||||
bool IsOpaque();
|
||||
bool IsLinkedIn();
|
||||
bool IsMidLink();
|
||||
hsBool ConsumeJump(); // returns true if the jump keypress was available to consume
|
||||
|
||||
@ -401,6 +402,7 @@ protected:
|
||||
plArmatureUpdateMsg *fUpdateMsg;
|
||||
|
||||
// Trying to be a good lad here and align all our bools and bytes...
|
||||
bool fIsLinkedIn; // We have finished playing the LinkEffects and are properly in the age
|
||||
bool fMidLink; // We're in between a LeaveAge and an EnterAge
|
||||
bool fAlreadyPanicLinking; // Cleared when you enter an age. Prevents spamming the server with panic link requests.
|
||||
bool fUnconsumedJump; // We've pressed the jump key, but haven't jumped yet
|
||||
|
Reference in New Issue
Block a user