Browse Source

Fade shock roach if its owner fades upon death

opforfixed
Roman Chistokhodov 5 years ago
parent
commit
5eeaaf5952
  1. 4
      dlls/gearbox/strooper.cpp

4
dlls/gearbox/strooper.cpp

@ -604,7 +604,9 @@ void CStrooper::DropShockRoach() @@ -604,7 +604,9 @@ void CStrooper::DropShockRoach()
vecPos.z += 32;
// now spawn a shockroach.
CBaseEntity::Create( "monster_shockroach", vecPos, vecDropAngles );
CBaseEntity* roach = CBaseEntity::Create( "monster_shockroach", vecPos, vecDropAngles );
if (ShouldFadeOnDeath())
roach->pev->spawnflags |= SF_MONSTER_FADECORPSE;
}

Loading…
Cancel
Save