Implement alternate, less visually intense All Clear fx.

This commit is contained in:
Mari the Deer 2023-12-02 13:47:00 +01:00
commit e53b6c1ca7
8 changed files with 13 additions and 4 deletions

View file

@ -180,7 +180,8 @@ extend Class SWWMHandler
mapclear = true;
if ( mapclearagain ) Console.Printf(StringTable.Localize("$SWWM_ALLCLEARAGAIN"),500);
else Console.Printf(StringTable.Localize("$SWWM_ALLCLEAR"),5000);
S_StartSound("misc/wow",CHAN_VOICE,CHANF_UI|CHANF_NOPAUSE|CHANF_OVERLAP,1,ATTN_NONE);
bool altclear = swwm_altclear;
S_StartSound(altclear?"misc/yippeee":"misc/wow",CHAN_VOICE,CHANF_UI|CHANF_NOPAUSE|CHANF_OVERLAP,1,ATTN_NONE);
lastmus = musplaying.name;
lastorder = musplaying.baseorder;
lastloop = musplaying.loop;
@ -190,7 +191,8 @@ extend Class SWWMHandler
{
if ( !playeringame[i] || !players[i].mo ) continue;
let f = Actor.Spawn("PartyTime",players[i].mo.pos);
f.bAMBUSH = true;
if ( altclear ) f.bSTANDSTILL = true;
else f.bAMBUSH = true;
if ( mapclearagain )
{
SWWMCredits.Give(players[i],500);