From b56ccf594d4616d9185aa0d28df45bfb945b3b05 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Fri, 16 Feb 2018 12:36:01 +0500 Subject: [PATCH] Update islave_deamon.cpp. --- dlls/islave_deamon.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dlls/islave_deamon.cpp b/dlls/islave_deamon.cpp index 442efb77..d85b95d5 100644 --- a/dlls/islave_deamon.cpp +++ b/dlls/islave_deamon.cpp @@ -44,6 +44,7 @@ class CISlave : public CSquadMonster public: void Spawn( void ); void Precache( void ); + void UpdateOnRemove(); void SetYawSpeed( void ); int ISoundMask( void ); int Classify ( void ); @@ -62,7 +63,7 @@ public: void Killed( entvars_t *pevAttacker, int iGib ); - void StartTask ( Task_t *pTask ); + void StartTask( Task_t *pTask ); Schedule_t *GetSchedule( void ); Schedule_t *GetScheduleOfType ( int Type ); CUSTOM_SCHEDULES; @@ -583,6 +584,12 @@ void CISlave :: Precache() UTIL_PrecacheOther( "test_effect" ); } +void CISlave::UpdateOnRemove() +{ + CBaseEntity::UpdateOnRemove(); + + ClearBeams(); +} //========================================================= // TakeDamage - get provoked when injured