[Feature] Make DehackedPickup.DetermineType() public
ToxicFrog opened this issue · 0 comments
GZDoom version
4.13.2
Which game are you running with GZDoom?
Doom 2
What Operating System are you using?
Linux x86_64
If Other OS, please describe
No response
Relevant hardware info
No response
Is your feature request related to a problem? Please describe.
In zscript, it is often convenient to be able to answer questions like "what weapons are there in this level, and how many of each?" Unfortunately, in WADs like Eviternity or Going Down Turbo that include DEHACKED patches, the weapons are replaced with DehackedPickupN actors which are not part of the normal Inventory heirarchy.
DehackedPickups are aware of what their "real" type is, and can access it via DetermineType(), but this is marked private, so it's not usable by external code to query what the backing type of the DehackedPickup is.
Querying the RealPickup field doesn't work either, because it's only populated in TryPickup().
Describe the solution you'd like
The private qualifier should be removed from DehackedPickup.DetermineType() so that pk3 zscript code can call it to find out what DEHACKED items "really are".
Describe alternatives you've considered
No response
Add any other context or screenshots about the feature request here.
No response