Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore hornetgun variables. #3216

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dlls/weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,13 @@ TYPEDESCRIPTION CEgon::m_SaveData[] =
};
IMPLEMENT_SAVERESTORE( CEgon, CBasePlayerWeapon );

TYPEDESCRIPTION CHgun::m_SaveData[] =
{
DEFINE_FIELD( CHgun, m_flRechargeTime, FIELD_TIME ),
DEFINE_FIELD( CHgun, m_iFirePhase, FIELD_INTEGER ),
};
IMPLEMENT_SAVERESTORE( CHgun, CBasePlayerWeapon );

TYPEDESCRIPTION CSatchel::m_SaveData[] =
{
DEFINE_FIELD( CSatchel, m_chargeReady, FIELD_INTEGER ),
Expand Down
8 changes: 7 additions & 1 deletion dlls/weapons.h
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,12 @@ class CEgon : public CBasePlayerWeapon
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; }
Expand All @@ -877,7 +883,7 @@ class CHgun : public CBasePlayerWeapon

float m_flRechargeTime;

int m_iFirePhase;// don't save me.
int m_iFirePhase;

virtual BOOL UseDecrement( void )
{
Expand Down