mittorn
8 years ago
3 changed files with 42 additions and 0 deletions
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
#include "extdll.h" |
||||
#include "util.h" |
||||
#include "cbase.h" |
||||
#include "unpredictedweapon.h" |
||||
|
||||
BOOL CBasePlayerWeaponU::UseDecrement() |
||||
{ |
||||
return FALSE; |
||||
} |
||||
|
||||
float CBasePlayerWeaponU::UTIL_WeaponTimeBase() |
||||
{ |
||||
return gpGlobals->time; |
||||
} |
||||
|
||||
TYPEDESCRIPTION CBasePlayerWeaponU::m_SaveData[] = |
||||
{ |
||||
|
||||
DEFINE_FIELD( CBasePlayerWeapon, m_flNextPrimaryAttack, FIELD_TIME ), |
||||
DEFINE_FIELD( CBasePlayerWeapon, m_flNextSecondaryAttack, FIELD_TIME ), |
||||
DEFINE_FIELD( CBasePlayerWeapon, m_flTimeWeaponIdle, FIELD_TIME ), |
||||
}; |
||||
|
||||
IMPLEMENT_SAVERESTORE( CBasePlayerWeaponU, CBasePlayerWeapon ) |
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
#ifndef UNPREDICTEDWEAPON_H |
||||
#define UNPREDICTEDWEAPON_H |
||||
|
||||
#include "weapons.h" |
||||
|
||||
class CBasePlayerWeaponU: CBasePlayerWeapon |
||||
{ |
||||
public: |
||||
virtual int Save( CSave &save ); |
||||
virtual int Restore( CRestore &restore ); |
||||
static TYPEDESCRIPTION m_SaveData[]; |
||||
BOOL UseDecrement( void ); |
||||
float UTIL_WeaponTimeBase(); |
||||
}; |
||||
|
||||
#endif // UNPREDICTEDWEAPON_H
|
||||
|
Loading…
Reference in new issue