Tweaks to compat code (again).

This commit is contained in:
Mari the Deer 2021-03-28 12:30:45 +02:00
commit b54bbd0170
5 changed files with 20 additions and 46 deletions

View file

@ -1808,6 +1808,18 @@ Class SWWMUtility
victim.DamageMobj(null,null,victim.Health,'EndLevel',DMG_FORCED|DMG_THRUSTLESS);
}
// for Equinox
static play void SpawnVanillaBossBrain( int tid )
{
let ai = Level.CreateActorIterator(tid);
Actor a;
while ( a = ai.Next() )
{
let bb = a.Spawn("BossBrain",a.pos,NO_REPLACE);
bb.angle = a.angle;
}
}
// checks if we're playing in doom 1
// this is used so we can sometimes replace the shotgun with a SSG slot weapon
static bool IsDoomOne()