mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Merge 60a45fb6cd
This commit is contained in:
parent
4024c29caf
commit
ca7464b158
@ -598,6 +598,8 @@ BOOL CanAttack( float attack_time, float curtime, BOOL isPredicted )
|
|||||||
|
|
||||||
void CBasePlayerWeapon::ItemPostFrame( void )
|
void CBasePlayerWeapon::ItemPostFrame( void )
|
||||||
{
|
{
|
||||||
|
WeaponTick();
|
||||||
|
|
||||||
if( ( m_fInReload ) && ( m_pPlayer->m_flNextAttack <= UTIL_WeaponTimeBase() ) )
|
if( ( m_fInReload ) && ( m_pPlayer->m_flNextAttack <= UTIL_WeaponTimeBase() ) )
|
||||||
{
|
{
|
||||||
// complete the reload.
|
// complete the reload.
|
||||||
|
@ -318,6 +318,7 @@ public:
|
|||||||
virtual void PrimaryAttack( void ) { return; } // do "+ATTACK"
|
virtual void PrimaryAttack( void ) { return; } // do "+ATTACK"
|
||||||
virtual void SecondaryAttack( void ) { return; } // do "+ATTACK2"
|
virtual void SecondaryAttack( void ) { return; } // do "+ATTACK2"
|
||||||
virtual void Reload( void ) { return; } // do "+RELOAD"
|
virtual void Reload( void ) { return; } // do "+RELOAD"
|
||||||
|
virtual void WeaponTick() {} // Always called at beginning of ItemPostFrame. - Solokiller
|
||||||
virtual void WeaponIdle( void ) { return; } // called when no buttons pressed
|
virtual void WeaponIdle( void ) { return; } // called when no buttons pressed
|
||||||
virtual int UpdateClientData( CBasePlayer *pPlayer ); // sends hud info to client dll, if things have changed
|
virtual int UpdateClientData( CBasePlayer *pPlayer ); // sends hud info to client dll, if things have changed
|
||||||
virtual void RetireWeapon( void );
|
virtual void RetireWeapon( void );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user