More stuff with tooltips.

Add commands to reset cvars.
Show progress counters in achievement menu.
This commit is contained in:
Mari the Deer 2021-09-16 18:52:43 +02:00
commit 10bab27e36
14 changed files with 231 additions and 57 deletions

View file

@ -36,7 +36,6 @@ Class SWWMStats : Thinker
Array<MonsterKill> mstats;
Array<LevelStat> lstats;
Array<Class<Weapon> > alreadygot;
Array<Class<SWWMWeapon> > sawtooltip;
int favweapon;
// these two are used for mission updates
Array<int> clustervisit;
@ -61,19 +60,6 @@ Class SWWMStats : Thinker
return false;
}
void SendTooltip( Class<SWWMWeapon> which )
{
if ( !swwm_weapontooltips ) return;
for ( int i=0; i<sawtooltip.Size(); i++ )
{
if ( sawtooltip[i] == which ) return;
}
sawtooltip.Push(which);
// this is kinda hacky but hey, as long as it works
if ( myplayer == players[consoleplayer] )
Console.MidPrint(null,"swwmwpntooltip."..which.GetClassName());
}
private Class<Weapon> WeaponFromInflictor( Actor inflictor, Name damagetype )
{
Class<Weapon> which = myplayer.ReadyWeapon?myplayer.ReadyWeapon.GetClass():null;