Armor class with cheats

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Armor class with cheats

Postby NightFright » Sat Jul 24, 2021 8:07 am

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?
User avatar
NightFright
Spotlight Team
 
Joined: 02 May 2008
Location: Germany

Re: Armor class with cheats

Postby Blue Shadow » Sat Jul 24, 2021 7:03 pm

It gives you an instance of the base class of armor pickups, altered on the fly to behave like a blue armor.
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Armor class with cheats

Postby NightFright » Tue Jul 27, 2021 3:21 pm

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.
User avatar
NightFright
Spotlight Team
 
Joined: 02 May 2008
Location: Germany


Return to Scripting

Who is online

Users browsing this forum: No registered users and 3 guests