Tweakin' things.
This commit is contained in:
parent
a8fa4e5a79
commit
52bf9704a3
8 changed files with 90 additions and 34 deletions
|
|
@ -573,15 +573,7 @@ extend Class SWWMHandler
|
|||
else if ( e.Replacee is 'TeleportFog' ) e.Replacement = 'SWWMTeleportFog';
|
||||
else if ( (e.Replacee is 'CommanderKeen') && (!e.Replacement || (e.Replacement == 'CommanderKeen')) )
|
||||
{
|
||||
let def = GetDefaultByType(e.Replacee);
|
||||
bool dehackery = false;
|
||||
for ( State s=def.SpawnState; s; s=s.NextState )
|
||||
{
|
||||
if ( s.bDEHACKED ) dehackery = true;
|
||||
// keep checking until we hit a loop, just in case
|
||||
if ( s.NextState && (s.DistanceTo(s.NextState) <= 0) ) break;
|
||||
}
|
||||
if ( dehackery )
|
||||
if ( SWWMUtility.CheckDehackery(e.Replacee) )
|
||||
{
|
||||
if ( profiling ) checkreplacement_ms += MSTime()-curms;
|
||||
return;
|
||||
|
|
@ -590,15 +582,7 @@ extend Class SWWMHandler
|
|||
}
|
||||
else if ( (e.Replacee is 'BossBrain') && (!e.Replacement || (e.Replacement == 'BossBrain')) )
|
||||
{
|
||||
let def = GetDefaultByType(e.Replacee);
|
||||
bool dehackery = false;
|
||||
for ( State s=def.SpawnState; s; s=s.NextState )
|
||||
{
|
||||
if ( s.bDEHACKED ) dehackery = true;
|
||||
// keep checking until we hit a loop, just in case
|
||||
if ( s.NextState && (s.DistanceTo(s.NextState) <= 0) ) break;
|
||||
}
|
||||
if ( dehackery )
|
||||
if ( SWWMUtility.CheckDehackery(e.Replacee) )
|
||||
{
|
||||
if ( profiling ) checkreplacement_ms += MSTime()-curms;
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -265,6 +265,7 @@ extend Class SWWMHandler
|
|||
SWWMInterest.Spawn(thekey:Key(e.Thing));
|
||||
}
|
||||
if ( indoomvacation == -1 ) indoomvacation = SWWMUtility.InDoomVacation();
|
||||
if ( inultdoom2 == -1 ) inultdoom2 = SWWMUtility.IsUltDoom2();
|
||||
if ( e.Thing.GetClass() == 'Pig' )
|
||||
e.Thing.SetTag("$FN_PIG"); // missing in gzdoom
|
||||
// eviternity stuff
|
||||
|
|
@ -367,6 +368,16 @@ extend Class SWWMHandler
|
|||
HeadpatTracker(hp).dvacationarghack = true;
|
||||
}
|
||||
}
|
||||
else if ( inultdoom2 && (e.Thing.GetClassName() == "WolfensteinSS") )
|
||||
{
|
||||
e.Thing.SetTag("$FN_ELITEZOMBIE");
|
||||
//e.Thing.Obituary = "$OB_ELITEZOMBIE";
|
||||
e.Thing.SeeSound = "grunt/sight";
|
||||
e.Thing.AttackSound = "grunt/attack";
|
||||
e.Thing.PainSound = "grunt/pain";
|
||||
e.Thing.DeathSound = "grunt/death";
|
||||
e.Thing.ActiveSound = "grunt/active";
|
||||
}
|
||||
if ( SWWMUtility.IdentifyingDog(e.Thing) || SWWMUtility.IdentifyingCaco(e.Thing)
|
||||
|| SWWMUtility.IdentifyingDrug(e.Thing) || SWWMUtility.IdentifyingDoubleBoi(e.Thing) )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue