by XLightningStormL » Thu Jul 04, 2024 1:12 am
HandleDecrement would be the reversed version of HandlePickup; in the sense that HandlePickup is tied to A_GiveInventory (and GiveInventory) HandleDecrement would be tied to A_TakeInventory (and TakeInventory)
Such a virtual bool would be useful for things like a dynamic weight system (no longer requiring unnecessary code bloat in custom actions and the like) there's probably other examples as well.
UPDATE: Thread no longer necessary.
Refer to
This code submission instead
HandleDecrement would be the reversed version of HandlePickup; in the sense that HandlePickup is tied to A_GiveInventory (and GiveInventory) HandleDecrement would be tied to A_TakeInventory (and TakeInventory)
Such a virtual bool would be useful for things like a dynamic weight system (no longer requiring unnecessary code bloat in custom actions and the like) there's probably other examples as well.
[b]UPDATE:[/b] Thread no longer necessary.
Refer to [Url=https://forum.zdoom.org/viewtopic.php?t=79273]This code submission instead[/url]