WorldLineActivated: event fired after line special execution

Moderator: GZDoom Developers

Post Reply
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:

WorldLineActivated: event fired after line special execution

Post by Marisa the Magician »

Pull Request with example wad

I know this is kind of a "personal necessity" submission, but I'm sure others would agree it may have other potential uses. With this addition there's a new event handler virtual function that gets called after a line is activated and its special is successfully executed. In addition, "ActivatedLine" is added to the WorldEvent struct, and Thing holds the actor that activated the line (if any).

Please tell me if any adjustments are necessary.
User avatar
gwHero
Posts: 360
Joined: Mon May 08, 2017 3:23 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: The Netherlands

Re: WorldLineActivated: event fired after line special execu

Post by gwHero »

This is very interesting. In fact, I had given thoughts about having similar events with another objective, namely to ged rid of this: viewtopic.php?f=122&t=59858

Actually, you have made this possible with WorldLinePreActivated while assigning on the map to un unknown action.
Now this is of course a hack, but it is working...
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: WorldLineActivated: event fired after line special execu

Post by _mental_ »

There is no guarantee that currently unused action special will remain so forever.
User avatar
gwHero
Posts: 360
Joined: Mon May 08, 2017 3:23 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: The Netherlands

Re: WorldLineActivated: event fired after line special execu

Post by gwHero »

_mental_ wrote:There is no guarantee that currently unused action special will remain so forever.
Yes, so I figured too. It's a bit of hack what I just tested. Plus I don't know yet for sure if I would prefer this in a future neat solution above some kind of ScriptCall. Nevertheless, it's an interesting approach.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”