Alternate HUD style partially implemented.

This commit is contained in:
Mari the Deer 2022-06-03 19:17:33 +02:00
commit 4e29d1c2fe
18 changed files with 913 additions and 30 deletions

View file

@ -3,6 +3,8 @@ extend Class SWWMHandler
{
// for menu events
transient Array<MenuTransaction> checklist;
// for the compact hud
transient int WeaponFlash[10];
override void ConsoleProcess( ConsoleEvent e )
{
@ -617,6 +619,12 @@ extend Class SWWMHandler
}
else if ( e.Name ~== "swwmgamelore" )
SWWMLoreLibrary.Add(players[e.Args[0]],"Madcat");
else if ( e.Name ~== "swwmweaponreceive" )
{
if ( e.Args[1] != consoleplayer ) return;
if ( (e.Args[0] < 0) || (e.Args[0] > 9) ) return;
WeaponFlash[e.Args[0]] = gametic+25;
}
// cheats go here
else CheatEvent(e);
}