|
|
@ -43,6 +43,7 @@ class CTripmineGrenade : public CGrenade |
|
|
|
{ |
|
|
|
{ |
|
|
|
void Spawn( void ); |
|
|
|
void Spawn( void ); |
|
|
|
void Precache( void ); |
|
|
|
void Precache( void ); |
|
|
|
|
|
|
|
void UpdateOnRemove(); |
|
|
|
|
|
|
|
|
|
|
|
virtual int Save( CSave &save ); |
|
|
|
virtual int Save( CSave &save ); |
|
|
|
virtual int Restore( CRestore &restore ); |
|
|
|
virtual int Restore( CRestore &restore ); |
|
|
@ -148,6 +149,13 @@ void CTripmineGrenade::Precache( void ) |
|
|
|
PRECACHE_SOUND( "weapons/mine_charge.wav" ); |
|
|
|
PRECACHE_SOUND( "weapons/mine_charge.wav" ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CTripmineGrenade::UpdateOnRemove() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
CBaseEntity::UpdateOnRemove(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KillBeam(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void CTripmineGrenade::WarningThink( void ) |
|
|
|
void CTripmineGrenade::WarningThink( void ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// play warning sound
|
|
|
|
// play warning sound
|
|
|
|