Some easter egg tweaks.

Backport placeholder textures from common library.
This commit is contained in:
Mari the Deer 2022-03-07 23:24:13 +01:00
commit 7a4ec53e16
28 changed files with 301 additions and 213 deletions

View file

@ -436,7 +436,8 @@ extend Class SWWMHandler
if ( kstr != cht[i].Left(kstr.length()) ) continue;
matchany = true;
if ( kstr != cht[i] ) continue;
if ( (i > 5) && !swwm_nomapmsg && !swwm_oldcheat )
let s = SWWMStats.Find(players[consoleplayer]);
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";
@ -446,7 +447,7 @@ extend Class SWWMHandler
m.enddelay = 90;
m.pausedelay = 40;
StatusBar.AttachMessage(m,-1232);
CVar.FindCVar('swwm_oldcheat').SetBool(true);
SendNetworkEvent("swwmsetoldcheat",consoleplayer);
}
if ( SWWMUtility.CheatsDisabled(consoleplayer) )
{

View file

@ -694,6 +694,11 @@ extend Class SWWMHandler
s.realpuzzlecnt = e.Args[2];
}
}
else if ( e.Name ~== "swwmsetoldcheat" )
{
let s = SWWMStats.Find(players[e.Args[0]]);
if ( s ) s.oldcheat = true;
}
// cheats go here
else CheatEvent(e);
}