As graf once said, having this feature would be a win for performance. So here's what I'm thinking. 3 new parameters:
- Pointer: The actor to be the center of checking for distance. Defaults to null. If null, ignores the mindist and maxdist parameters.
- Mindist: Just like A_JumpIfTargetInLOS's. If the actor is closer than this, the iterator will skip it.
- Maxdist: Any actors outside this range will be skipped.
Internal dist and mindist for iterators
Moderator: GZDoom Developers
-
Major Cooke
- Posts: 8218
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
-
krokots
- Posts: 296
- Joined: Tue Jan 19, 2010 5:07 pm
Re: Internal dist and mindist for iterators
An ActorIterator within a radius of some actor? That would be awesome, I use ActorIterators all the time, and with Distance2D inside.
-
Major Cooke
- Posts: 8218
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
Re: Internal dist and mindist for iterators
All iterators if applicable.