Night Owl 8 years ago
parent
commit
740a5a2c31
  1. 7
      dlls/weapons.cpp
  2. 5
      dlls/weapons.h

7
dlls/weapons.cpp

@ -1557,6 +1557,13 @@ TYPEDESCRIPTION CEgon::m_SaveData[] = @@ -1557,6 +1557,13 @@ TYPEDESCRIPTION CEgon::m_SaveData[] =
IMPLEMENT_SAVERESTORE( CEgon, CBasePlayerWeapon )
TYPEDESCRIPTION CHgun::m_SaveData[] =
{
DEFINE_FIELD( CHgun, m_flRechargeTime, FIELD_FLOAT ),
};
IMPLEMENT_SAVERESTORE( CHgun, CBasePlayerWeapon )
TYPEDESCRIPTION CSatchel::m_SaveData[] =
{
DEFINE_FIELD( CSatchel, m_chargeReady, FIELD_INTEGER ),

5
dlls/weapons.h

@ -841,6 +841,11 @@ private: @@ -841,6 +841,11 @@ private:
class CHgun : public CBasePlayerWeapon
{
public:
#ifndef CLIENT_DLL
int Save( CSave &save );
int Restore( CRestore &restore );
static TYPEDESCRIPTION m_SaveData[];
#endif
void Spawn( void );
void Precache( void );
int iItemSlot( void ) { return 4; }

Loading…
Cancel
Save