It's about time this tired joke was put down.
This commit is contained in:
parent
e97dd5d035
commit
5e54940069
7 changed files with 5 additions and 91 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -208,36 +208,6 @@ Class SWWMAchievementNotification : HUDMessageBase
|
|||
}
|
||||
}
|
||||
|
||||
Class SWWMSewerCount : HUDMessageBase
|
||||
{
|
||||
int tics;
|
||||
String str;
|
||||
|
||||
SWWMSewerCount Init()
|
||||
{
|
||||
tics = 200;
|
||||
str = String.Format("Sewer Count: %d",swwm_sewercount);
|
||||
return self;
|
||||
}
|
||||
|
||||
override bool Tick()
|
||||
{
|
||||
if ( tics == 100 ) S_StartSound("misc/sewercount",CHAN_VOICE,CHANF_UI,1.,0.);
|
||||
return (tics--<=0);
|
||||
}
|
||||
|
||||
override void Draw( int bottom, int visibility )
|
||||
{
|
||||
if ( tics > 100 ) return;
|
||||
double fractic = System.GetTimeFrac();
|
||||
double ftics = tics-fractic;
|
||||
double alph = clamp(ftics/20.,0.,1.);
|
||||
double x = (Screen.GetWidth()-(newsmallfont.StringWidth(str)*CleanXFac*2))/2;
|
||||
double y = int(Screen.GetHeight()*.75)-(newsmallfont.GetHeight()*CleanYFac*2)/2;
|
||||
Screen.DrawText(newsmallfont,Font.CR_GREEN,x,y,str,DTA_ScaleX,CleanXFac*2,DTA_ScaleY,CleanYFac*2,DTA_Alpha,alph);
|
||||
}
|
||||
}
|
||||
|
||||
// weapon tooltips
|
||||
Class SWWMWeaponTooltip : HUDMessageBase
|
||||
{
|
||||
|
|
|
|||
|
|
@ -199,7 +199,6 @@ Class SWWMHandler : EventHandler
|
|||
OnelinerUITick();
|
||||
FlashUITick();
|
||||
VanillaBossUITick();
|
||||
CheatUITick();
|
||||
MapstartUITick();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue