Page 1 of 1

Armor class with cheats

PostPosted: Sat Jul 24, 2021 8:07 am
by NightFright
I am trying to determine current armor class via ACS in Doom with GetArmorInfo(ARMORINFO_CLASSNAME). It works with "ArmorBonus", "GreenArmor", "BlueArmor" and "BlueArmorForMegasphere". This covers all "legal" cases. However, if I use the IDFA cheat or "give armor" in console, things get screwed up. Which armor class does ZDoom give when cheating?

Re: Armor class with cheats

PostPosted: Sat Jul 24, 2021 7:03 pm
by Blue Shadow
It gives you an instance of the base class of armor pickups, altered on the fly to behave like a blue armor.

Re: Armor class with cheats

PostPosted: Tue Jul 27, 2021 3:21 pm
by NightFright
I guess that's why it doesn't work. Anyway, I found a different and better way via SAVEPERCENT which doesn't require armor class names.