It's about time this tired joke was put down.

This commit is contained in:
Mari the Deer 2022-08-11 23:39:58 +02:00
commit 5e54940069
7 changed files with 5 additions and 91 deletions

View file

@ -8,14 +8,6 @@ extend Class SWWMHandler
transient ui int rss;
ui bool nostalgic;
ui Font CheatFont;
transient int sewercnt;
private ui void CheatUITick()
{
if ( !sewercnt || (sewercnt < gametic) ) return;
let m = new("SWWMSewerCount").Init();
StatusBar.AttachMessage(m,-1111);
}
private void CheatEvent( ConsoleEvent e )
{
@ -350,51 +342,6 @@ extend Class SWWMHandler
}
else cc.Init(players[e.Args[0]].mo);
}
else if ( e.Name ~== "swwmsewercountcheat" )
{
if ( consoleplayer == e.Args[0] )
{
let cv = CVar.FindCVar('swwm_sewercount');
int cur = max(0,cv.GetInt());
if ( cur == 0 ) Console.Printf("\cyIt begins.\c-");
else switch ( Random[HudStuff](0,9) )
{
case 0:
Console.Printf("\cyAnother one?\c-");
break;
case 1:
Console.Printf("\cyOh hi Civvie.\c-");
break;
case 2:
Console.Printf("\cyIt does stink.\c-");
break;
case 3:
Console.Printf("\cyGod, imagine the smell...\c-");
break;
case 4:
Console.Printf("\cyObligatory sewer level?\c-");
break;
case 5:
Console.Printf("\cyYup! It's another sewer.\c-");
break;
case 6:
Console.Printf("\cyOh boy here we go...\c-");
break;
case 7:
Console.Printf("\cyIt smells, boy does it smell.\c-");
break;
case 8:
Console.Printf("\cyPlease don't sue me, Civvie.\c-");
break;
case 9:
Console.Printf("\cyOnce more, from the top!\c-");
break;
}
S_StartSound("menu/buyinv",CHAN_ITEM,CHANF_UI);
cv.SetInt(cur+1);
sewercnt = gametic;
}
}
else if ( e.Name ~== "swwmonfirecheat" )
{
let ti = ThinkerIterator.Create("Actor");
@ -426,7 +373,7 @@ extend Class SWWMHandler
static const String cht[] =
{
"swwmlodsofemone", "swwmdeeplore", "swwmfroggygang", "swwmforgetaboutit",
"swwmmisterproper", "swwmstinky", "swwmpantsonfire",
"swwmmisterproper", "swwmpantsonfire",
// SWWM Platinum cheats
"swwmimstuck", "swwmarmojumbo", "swwmdangimhealthy",
"swwmwarriorofzaemonath", "swwmpowerparp", "swwmcannotseemyhands",
@ -439,7 +386,7 @@ extend Class SWWMHandler
static const String cmd[] =
{
"swwmmoneycheat", "swwmlorecheat", "swwmfroggycheat", "swwmamnesiacheat",
"swwmjanitorcheat", "swwmsewercountcheat", "swwmonfirecheat",
"swwmjanitorcheat", "swwmonfirecheat",
// SWWM Platinum cheats
"swwmsafecheat", "swwmweaponcheat", "swwmhealcheat",
"swwmynykroncheat", "swwmgravcheat", "swwminvischeat",
@ -461,7 +408,7 @@ extend Class SWWMHandler
matchany = true;
if ( kstr != cht[i] ) continue;
let s = SWWMStats.Find(players[consoleplayer]);
if ( (i > 6) && !swwm_nomapmsg && (!s || !s.oldcheat) )
if ( (i > 5) && !swwm_nomapmsg && (!s || !s.oldcheat) )
{
let m = new("SWWMDirectMessage").Init(StringTable.Localize("$SWWM_ZNVSNAME"),StringTable.Localize("$SWWM_ZNVNAME"),"Znv");
m.seqname = "ZNVTXT";