CC Romero boss death special.
This commit is contained in:
parent
d30600a185
commit
fe9f6dcb3f
2 changed files with 26 additions and 2 deletions
|
|
@ -56,6 +56,29 @@ Class ROM3R0Message : Inventory
|
|||
}
|
||||
}
|
||||
}
|
||||
Class ROM3R0Death : Inventory
|
||||
{
|
||||
override void OwnerDied()
|
||||
{
|
||||
// copied from boss brain
|
||||
let ti = ThinkerIterator.Create("Actor");
|
||||
Actor a;
|
||||
while ( a = Actor(ti.Next()) )
|
||||
{
|
||||
if ( a is 'BossEye' ) a.SetStateLabel("Null");
|
||||
else if ( a is 'SpawnShot' )
|
||||
{
|
||||
a.Spawn("SpawnFire",a.pos,ALLOW_REPLACE);
|
||||
a.SetStateLabel("Null");
|
||||
}
|
||||
else if ( (a.Health > 0) && (a.bBossSpawned || a.bCOUNTKILL) )
|
||||
a.DamageMobj(self,self,a.Health,'EndMii',DMG_FORCED|DMG_THRUSTLESS);
|
||||
}
|
||||
DepleteOrDestroy();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
extend Class SWWMHandler
|
||||
{
|
||||
String bosstag;
|
||||
|
|
@ -422,6 +445,7 @@ extend Class SWWMHandler
|
|||
e.Thing.GiveInventory('BossMarker',1);
|
||||
e.Thing.GiveInventory('EndgameBossMarker',1);
|
||||
e.Thing.GiveInventory('ROM3R0Message',1);
|
||||
e.Thing.GiveInventory('ROM3R0Death',1);
|
||||
}
|
||||
}
|
||||
private void VanillaBossTick()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue