[Added] LevelLocals vec2/3Offset(Z) functions

Moderator: Developers

LevelLocals vec2/3Offset(Z) functions

Postby Gutawer » Mon Apr 16, 2018 4:48 pm

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
Gutawer
User Accounts Assistant
 
Joined: 16 Apr 2016
Discord: Gutawer#3431

Re: LevelLocals vec2/3Offset(Z) functions

Postby Major Cooke » Wed Apr 18, 2018 4:28 pm

Perhaps exporting all of them like this might be a good idea? That is, if there remains anymore to be done.
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: LevelLocals vec2/3Offset(Z) functions

Postby Gutawer » Mon Apr 23, 2018 2:09 pm

Bumping since this hasn't gotten any attention, I need this for something I'm working on currently.
User avatar
Gutawer
User Accounts Assistant
 
Joined: 16 Apr 2016
Discord: Gutawer#3431

Re: LevelLocals vec2/3Offset(Z) functions

Postby Gutawer » Tue May 15, 2018 2:24 pm

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
Gutawer
User Accounts Assistant
 
Joined: 16 Apr 2016
Discord: Gutawer#3431

Re: LevelLocals vec2/3Offset(Z) functions

Postby Matt » Tue May 15, 2018 5:52 pm

What's the difference between this and vec2/3diff?
User avatar
Matt
Putting the XD into *xdeath since 2007
 
 
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: LevelLocals vec2/3Offset(Z) functions

Postby Gutawer » Wed May 16, 2018 2:38 am

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
Gutawer
User Accounts Assistant
 
Joined: 16 Apr 2016
Discord: Gutawer#3431

Re: LevelLocals vec2/3Offset(Z) functions

Postby Matt » Wed May 16, 2018 12:41 pm

Understood.

Yes this would be very useful.
User avatar
Matt
Putting the XD into *xdeath since 2007
 
 
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest