From 67b7e914614bba0a8f7cb10129b177957d4c9cd4 Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 23 Mar 2016 20:44:22 +0600 Subject: [PATCH] Enable monsters, grenade and func_break --- dlls/basemonster.h | 4 ++++ dlls/func_break.h | 4 ++++ dlls/weapons.h | 5 +++++ 3 files changed, 13 insertions(+) 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. };