Browse Source

Merge 293b41b8cd

residual_point
Night Owl 7 years ago
parent
commit
aaedd794c3
  1. 5
      dlls/player.cpp
  2. 2
      dlls/player.h

5
dlls/player.cpp

@ -2586,6 +2586,11 @@ void CBasePlayer::PostThink()
UpdatePlayerSound(); UpdatePlayerSound();
pt_end: pt_end:
if( pev->deadflag == DEAD_NO )
m_vecLastViewAngles = pev->angles;
else
pev->angles = m_vecLastViewAngles;
// Track button info so we can detect 'pressed' and 'released' buttons next frame // Track button info so we can detect 'pressed' and 'released' buttons next frame
m_afButtonLast = pev->button; m_afButtonLast = pev->button;

2
dlls/player.h

@ -306,6 +306,8 @@ public:
void TabulateAmmo( void ); void TabulateAmmo( void );
Vector m_vecLastViewAngles;
float m_flStartCharge; float m_flStartCharge;
float m_flAmmoStartCharge; float m_flAmmoStartCharge;
float m_flPlayAftershock; float m_flPlayAftershock;

Loading…
Cancel
Save