Export P_GetOffsetPosition & ADynamicLight::SetOffset to ZSC

Moderator: GZDoom Developers

Post Reply
Cacodemon345
Posts: 419
Joined: Fri Dec 22, 2017 1:53 am
Graphics Processor: ATI/AMD (Modern GZDoom)
Contact:

Export P_GetOffsetPosition & ADynamicLight::SetOffset to ZSC

Post by Cacodemon345 »

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
Posts: 419
Joined: Fri Dec 22, 2017 1:53 am
Graphics Processor: ATI/AMD (Modern GZDoom)
Contact:

Re: Export P_GetOffsetPosition & ADynamicLight::SetOffset to

Post by Cacodemon345 »

Now with direct native JIT support.
User avatar
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Export P_GetOffsetPosition & ADynamicLight::SetOffset to

Post by Major Cooke »

Oooh, both of those will definitely come in handy. Especially the dynamic lights. Thanks for this! :mrgreen:
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Export P_GetOffsetPosition & ADynamicLight::SetOffset to

Post by Nash »

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
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Export P_GetOffsetPosition & ADynamicLight::SetOffset to

Post by Marisa the Magician »

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Export P_GetOffsetPosition & ADynamicLight::SetOffset to

Post by Graf Zahl »

Ah, then I'll remove it again.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”