Internal dist and mindist for iterators

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Internal dist and mindist for iterators

Post by Major Cooke »

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.
User avatar
krokots
Posts: 266
Joined: Tue Jan 19, 2010 5:07 pm

Re: Internal dist and mindist for iterators

Post by krokots »

An ActorIterator within a radius of some actor? That would be awesome, I use ActorIterators all the time, and with Distance2D inside.
User avatar
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Internal dist and mindist for iterators

Post by Major Cooke »

All iterators if applicable.
Post Reply

Return to “Feature Suggestions [GZDoom]”