doom-mods
doom-mods copied to clipboard
GZAP: DehackedPickups can have their type determined with GetReplacee
This tripped me up for a long time too. Per the comment in the DehackedPickupProber file, the internal method for determining original type may be private, but DehackedPickups are automatically assigned with the type they replace and this can be retrieved by calling GetReplacee with their class type as the parameter. Good enough for determining whether a DehackedPickup should count as a check I should think.
I just want to put a note here that I have seen this and I just haven't had the bandwidth to thoroughly test it yet. It looks like a promising approach, though.