2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2025-01-09 10:35:21 +01:00
This commit is contained in:
Night Owl 2017-10-15 17:50:05 +05:00
parent 8e799fcf6d
commit aaedd794c3
2 changed files with 7 additions and 0 deletions

View File

@ -2586,6 +2586,11 @@ void CBasePlayer::PostThink()
UpdatePlayerSound();
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
m_afButtonLast = pev->button;

View File

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