mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Fix m249 reload (#230)
This commit is contained in:
parent
310493aaeb
commit
d862abafd7
@ -219,20 +219,19 @@ void CM249::Reload(void)
|
||||
}
|
||||
}
|
||||
|
||||
void CM249::WeaponTick()
|
||||
void CM249::ItemPostFrame()
|
||||
{
|
||||
if ( m_fInSpecialReload )
|
||||
{
|
||||
if (m_pPlayer->m_flNextAttack <= UTIL_WeaponTimeBase())
|
||||
{
|
||||
UpdateTape();
|
||||
m_fInSpecialReload = FALSE;
|
||||
SendWeaponAnim( M249_RELOAD1, UseDecrement(), pev->body );
|
||||
m_pPlayer->m_flNextAttack = UTIL_WeaponTimeBase() + 2.4;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
CBasePlayerWeapon::ItemPostFrame();
|
||||
}
|
||||
|
||||
void CM249::WeaponIdle(void)
|
||||
|
@ -1248,7 +1248,7 @@ public:
|
||||
BOOL Deploy(void);
|
||||
void Holster(int skiplocal = 0);
|
||||
void Reload(void);
|
||||
void WeaponTick();
|
||||
void ItemPostFrame();
|
||||
void WeaponIdle(void);
|
||||
virtual BOOL ShouldWeaponIdle(void) { return TRUE; }
|
||||
float m_flNextAnimTime;
|
||||
|
Loading…
x
Reference in New Issue
Block a user