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.
WorldLineActivated: event fired after line special execution
Moderator: GZDoom Developers
- 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:
- 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
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...
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...
Re: WorldLineActivated: event fired after line special execu
There is no guarantee that currently unused action special will remain so forever.
- 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
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._mental_ wrote:There is no guarantee that currently unused action special will remain so forever.