What is Deh_Actor_250?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Shadow Hog
Posts: 173
Joined: Fri Aug 14, 2015 8:56 pm

What is Deh_Actor_250?

Post by Shadow Hog »

So I know what the Deh_Actor_### line in general is for - DEHEXTRA added 100 new thingdefs, and they needed some kind of name internally for DECORATE and ZScript, and that name worked as well as anything. The issue is more this specific slot; those 100 DEHEXTRA slots are 150-249¹. This is borne out in a few tests I made in WhackEd4 (which also caps out at 249²); I cloned some of the low-tier monsters into the lowest and highest of the new slots, and then linetargeted them to see what names came up³. So, this all establishes an upper bound of 249 - then why do we have a definition for a slot index 250? Is this some kind of buffer in case somebody does a dumb? Does another source port already have a thingdef there that I wasn't aware of? Is its presence just an error (in which case I guess this is a bug report)?

As for why I'm asking, I want to expand the list of actors that could trigger the BossAction lines in UMAPINFO in PrBoom+, and I'm trying to figure out if I should include this extra definition or not, seeing as I have no idea what uses it. I already have said feature working, I just want to pre-empt any questions about this slot the repo maintainers might have when I submit a PR.

(¹There's also a few extra beforehand, starting from 145 - but WhackEd4 says they're for things like gib death animations, different blood colors and rocket trails, presumably in Crispy Doom, so I can account for them. I can't say the same for 250.)
(²At least, it caps at 249 once you account for how it offsets all numbers by one - DoomPlayer being index 1 there but index 0 in GZDoom. Taken at face value, it'd cap at 250.)
(³I've attached the WAD in question so you can try it yourself; the fast/translucent enemies that don't drop anything on dying are the DEHEXTRA ones.)
TestingExtraThings.wad
(2.63 KiB) Downloaded 18 times
[/size]
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: What is Deh_Actor_250?

Post by Gez »

I suppose this was just unwittingly added in due to the off-by-one issue you point out in note ².

You should just ignore it.
User avatar
Shadow Hog
Posts: 173
Joined: Fri Aug 14, 2015 8:56 pm

Re: What is Deh_Actor_250?

Post by Shadow Hog »

Sounds like a plan; went ahead and removed it from PrBoom+UM's array and submitted the PR without it.
Post Reply

Return to “Scripting”