diff options
Diffstat (limited to 'mp/src/game/server/player.h')
| -rw-r--r-- | mp/src/game/server/player.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mp/src/game/server/player.h b/mp/src/game/server/player.h index 8edefff3..e87af06d 100644 --- a/mp/src/game/server/player.h +++ b/mp/src/game/server/player.h @@ -415,7 +415,7 @@ public: virtual bool Weapon_ShouldSetLast( CBaseCombatWeapon *pOldWeapon, CBaseCombatWeapon *pNewWeapon ) { return true; } virtual bool Weapon_ShouldSelectItem( CBaseCombatWeapon *pWeapon ); void Weapon_DropSlot( int weaponSlot ); - CBaseCombatWeapon *Weapon_GetLast( void ) { return m_hLastWeapon.Get(); } + CBaseCombatWeapon *GetLastWeapon( void ) { return m_hLastWeapon.Get(); } virtual void OnMyWeaponFired( CBaseCombatWeapon *weapon ); // call this when this player fires a weapon to allow other systems to react virtual float GetTimeSinceWeaponFired( void ) const; // returns the time, in seconds, since this player fired a weapon @@ -735,6 +735,8 @@ public: bool IsPredictingWeapons( void ) const; int CurrentCommandNumber() const; const CUserCmd *GetCurrentUserCommand() const; + int GetLockViewanglesTickNumber() const { return m_iLockViewanglesTickNumber; } + QAngle GetLockViewanglesData() const { return m_qangLockViewangles; } int GetFOV( void ); // Get the current FOV value int GetDefaultFOV( void ) const; // Default FOV if not specified otherwise @@ -891,7 +893,8 @@ public: #if defined USES_ECON_ITEMS CEconWearable *GetWearable( int i ) { return m_hMyWearables[i]; } - int GetNumWearables( void ) { return m_hMyWearables.Count(); } + const CEconWearable *GetWearable( int i ) const { return m_hMyWearables[i]; } + int GetNumWearables( void ) const { return m_hMyWearables.Count(); } #endif private: @@ -1058,6 +1061,8 @@ protected: // Last received usercmd (in case we drop a lot of packets ) CUserCmd m_LastCmd; CUserCmd *m_pCurrentCommand; + int m_iLockViewanglesTickNumber; + QAngle m_qangLockViewangles; float m_flStepSoundTime; // time to check for next footstep sound |