Hey,
I've been thinking lately how to replicate A_RadiusGive function, to add my own limits/parameters, and perform additional operation on successfully given item. For instance, having an AoE given Immolation debuff, that deals damage over time, and stacks with each other, so each inventory item needs to have a source pointer. Or simply an AoE granted slow, where i test for special flags of an actor, if a target is immune or not.
I believe this should be done with iterators (maybe even ActorIterators), but I wasn't really able to fully understand how to do so "the good way", as in many places i read that they are resource intensive, and are fairly dangerous to stability.
So the question is - How would one go working on such Iterators to replicate that function?