Sheen HMG fully functional. May need touchups later.

This commit is contained in:
Mari the Deer 2022-07-22 20:19:57 +02:00
commit 57253d5434
36 changed files with 528 additions and 94 deletions

View file

@ -598,6 +598,19 @@ Class DemolitionistMenuStoreItem : DemolitionistMenuListItem
master.tmsgtic = Menu.MenuTime()+70;
return;
}
if ( (inv is 'SWWMWeapon') && swwm_swapweapons )
{
// check swapweapon
let wpn = GetDefaultByType((Class<SWWMWeapon>)(inv));
let sw = wpn.HasSwapWeapon(players[consoleplayer].mo);
if ( sw )
{
master.MenuSound("menu/noinvuse");
master.tmsg = String.Format(StringTable.Localize("$SWWM_STORESWAP"),sw.GetTag());
master.tmsgtic = Menu.MenuTime()+70;
return;
}
}
let cur = players[consoleplayer].mo.FindInventory(inv);
int camt, max;
if ( cur )