mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-06 03:54:14 +00:00
Fade shock roach if its owner fades upon death
This commit is contained in:
parent
8d19eeec10
commit
5eeaaf5952
@ -604,7 +604,9 @@ void CStrooper::DropShockRoach()
|
|||||||
vecPos.z += 32;
|
vecPos.z += 32;
|
||||||
|
|
||||||
// now spawn a shockroach.
|
// 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…
x
Reference in New Issue
Block a user