by Major Cooke » Thu Jan 03, 2019 6:21 pm
EDIT: Reworked and renamed.
Pull Request
Items could pick and choose whom they can enter, but never the other way around.
This PR adds functionality to fix this issue, allowing those with the +PICKUP flag the ability to filter what items they can pick up.
Simply override the CanTouchItem(Inventory item) function. Return true to signify the actor can attempt to pick up the item, false if they cannot.
EDIT: Reworked and renamed.
[url=https://github.com/coelckers/gzdoom/pull/775]Pull Request[/url]
Items could pick and choose whom they can enter, but never the other way around.
This PR adds functionality to fix this issue, allowing those with the +PICKUP flag the ability to filter what items they can pick up.
Simply override the CanTouchItem(Inventory item) function. Return true to signify the actor can attempt to pick up the item, false if they cannot.