diff --git a/dlls/basemonster.h b/dlls/basemonster.h index 04fbce91..7433d586 100644 --- a/dlls/basemonster.h +++ b/dlls/basemonster.h @@ -330,6 +330,10 @@ public: BOOL ExitScriptedSequence( ); BOOL CineCleanup( ); + virtual bool TouchGravGun( CBaseEntity *attacker, int stage ) + { + return true; + } CBaseEntity* DropItem ( char *pszItemName, const Vector &vecPos, const Vector &vecAng );// drop an item. }; diff --git a/dlls/func_break.h b/dlls/func_break.h index 2441f756..ea2bc4d3 100644 --- a/dlls/func_break.h +++ b/dlls/func_break.h @@ -69,6 +69,10 @@ public: float m_angle; int m_iszGibModel; int m_iszSpawnObject; + bool TouchGravGun( CBaseEntity *attacker, int stage ) + { + return true; + } }; #endif // FUNC_BREAK_H diff --git a/dlls/weapons.h b/dlls/weapons.h index aaa98247..af509b92 100644 --- a/dlls/weapons.h +++ b/dlls/weapons.h @@ -51,6 +51,11 @@ public: virtual void BounceSound( void ); virtual int BloodColor( void ) { return DONT_BLEED; } virtual void Killed( entvars_t *pevAttacker, int iGib ); + virtual bool TouchGravGun( CBaseEntity *attacker, int stage ) + { + pev->owner = attacker->edict(); + return true; + } BOOL m_fRegisteredSound;// whether or not this grenade has issued its DANGER sound to the world sound list yet. };