LevelLocals vec2/3Offset(Z) functions

Moderator: GZDoom Developers

Post Reply
User avatar
Gutawer
Posts: 469
Joined: Sat Apr 16, 2016 6:01 am
Preferred Pronouns: She/Her

LevelLocals vec2/3Offset(Z) functions

Post by Gutawer »

PR: https://github.com/coelckers/gzdoom/pull/463

For cases where you need to get a position offsetted from a location, have it go through portals, and actors are either not available, such as in UI scope, or impractical for performance reasons, much like the previous vec2/3Diff pull request.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: LevelLocals vec2/3Offset(Z) functions

Post by Major Cooke »

Perhaps exporting all of them like this might be a good idea? That is, if there remains anymore to be done.
User avatar
Gutawer
Posts: 469
Joined: Sat Apr 16, 2016 6:01 am
Preferred Pronouns: She/Her

Re: LevelLocals vec2/3Offset(Z) functions

Post by Gutawer »

Bumping since this hasn't gotten any attention, I need this for something I'm working on currently.
User avatar
Gutawer
Posts: 469
Joined: Sat Apr 16, 2016 6:01 am
Preferred Pronouns: She/Her

Re: LevelLocals vec2/3Offset(Z) functions

Post by Gutawer »

Bumping this again to (hopefully) get a response. I do need this for something I'm working on so I'd appreciate getting an answer.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: LevelLocals vec2/3Offset(Z) functions

Post by Matt »

What's the difference between this and vec2/3diff?
User avatar
Gutawer
Posts: 469
Joined: Sat Apr 16, 2016 6:01 am
Preferred Pronouns: She/Her

Re: LevelLocals vec2/3Offset(Z) functions

Post by Gutawer »

That one finds difference between vectors through portals, this one offsets a vector by another through a portal. They're pretty much the reverse of each other.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: LevelLocals vec2/3Offset(Z) functions

Post by Matt »

Understood.

Yes this would be very useful.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”