aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/player.h
diff options
context:
space:
mode:
authorJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
committerJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
commit0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch)
treec831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/game/server/player.h
parentUpdated the SDK with the latest code from the TF and HL2 branches. (diff)
downloadsource-sdk-2013-master.tar.xz
source-sdk-2013-master.zip
Updated the SDK with the latest code from the TF and HL2 branches.HEADmaster
Diffstat (limited to 'mp/src/game/server/player.h')
-rw-r--r--mp/src/game/server/player.h9
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