Fix apache/turrets not triggering their targets on death.
Fix apache not giving score upon kill. Fix monster trigger target crashing the server. Add "squadmaker" alias entity. Added plenty of keyvalues to monstermaker, similar to SC's squadmaker.
This commit is contained in:
@@ -156,6 +156,11 @@ void CMApache :: Killed( entvars_t *pevAttacker, int iGib )
|
||||
pev->nextthink = gpGlobals->time + 0.1;
|
||||
pev->health = 0;
|
||||
pev->takedamage = DAMAGE_NO;
|
||||
|
||||
pev->deadflag = DEAD_DYING;
|
||||
FCheckAITrigger(); // trigger death condition
|
||||
if ( UTIL_IsPlayer( ENT( pevAttacker ) ) ) // If a player killed this monster, add score
|
||||
pevAttacker->frags += 1.0;
|
||||
|
||||
if (pev->spawnflags & SF_NOWRECKAGE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user