doom-mods icon indicating copy to clipboard operation
doom-mods copied to clipboard

GZAP: DehackedPickups can have their type determined with GetReplacee

Open zhs2 opened this issue 5 months ago • 1 comments

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.

zhs2 avatar Jul 21 '25 14:07 zhs2

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.

ToxicFrog avatar Sep 16 '25 20:09 ToxicFrog