[Added] Export P_GetOffsetPosition & ADynamicLight::SetOffset to ZSC

Moderator: GZDoom Developers

Export P_GetOffsetPosition & ADynamicLight::SetOffset to ZSC

Postby Cacodemon345 » Thu Dec 20, 2018 3:37 am

Pull Request

Exports:
    1. P_GetOffsetPosition: Useful for people writing their own functions utilizing LineTrace to spawn objects.
    2. ADynamicLight::SetOffset: Useful for people wanting to set offsets for Actor-Based Dynlights.
Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Windows Vista/7 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Export P_GetOffsetPosition & ADynamicLight::SetOffset to

Postby Cacodemon345 » Thu Dec 20, 2018 10:21 am

Now with direct native JIT support.
Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Windows Vista/7 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Export P_GetOffsetPosition & ADynamicLight::SetOffset to

Postby Major Cooke » Thu Dec 20, 2018 10:49 am

Oooh, both of those will definitely come in handy. Especially the dynamic lights. Thanks for this! :mrgreen:
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: Export P_GetOffsetPosition & ADynamicLight::SetOffset to

Postby Nash » Thu Dec 20, 2018 11:01 pm

Cacodemon345 wrote:P_GetOffsetPosition: Useful for people writing their own functions utilizing LineTrace to spawn objects.


Can you give a more specific example on how one would utilize this?
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Export P_GetOffsetPosition & ADynamicLight::SetOffset to

Postby Marisa Kirisame » Fri Dec 21, 2018 6:00 am

GetOffsetPosition is like Actor.Vec2Offset but using a vector rather than an actor. (In fact, Actor.Vec2Offset calls it internally)

In fact, I just realized this function is completely redundant and unnecessary. level.Vec2Offset already does this.
User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Export P_GetOffsetPosition & ADynamicLight::SetOffset to

Postby Graf Zahl » Fri Dec 21, 2018 6:12 am

Ah, then I'll remove it again.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest