WorldLine(Pre)Activated: Retrieve means of Activation

Moderator: GZDoom Developers

Post Reply
XxMiltenXx
Posts: 219
Joined: Wed Jan 08, 2014 8:40 am
Graphics Processor: nVidia with Vulkan support
Location: Germany

WorldLine(Pre)Activated: Retrieve means of Activation

Post by XxMiltenXx »

For the events WorldLineActivated and WorldLinePreActivated I think it would be useful to be able to check how the line was activated (e.g. by bumping, using, projectile impact etc.), so you can check against it.

Would be useful if a line has multiple activation flags, so you can let it do different things depending on how the line was activated.

Unless this is already possible? I checked the Line struct but I couldn't find anything redarging this (only the activation flags themself, which doesn't help me there)
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: WorldLine(Pre)Activated: Retrieve means of Activation

Post by Major Cooke »

That actually sounds like a good idea. I agree.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: WorldLine(Pre)Activated: Retrieve means of Activation

Post by _mental_ »

Added in ba4cc1a.
XxMiltenXx
Posts: 219
Joined: Wed Jan 08, 2014 8:40 am
Graphics Processor: nVidia with Vulkan support
Location: Germany

Re: WorldLine(Pre)Activated: Retrieve means of Activation

Post by XxMiltenXx »

Great, thank you!

I think in addition to this an enum definition for all the activation types should be added. At least I couldn't find one.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: WorldLine(Pre)Activated: Retrieve means of Activation

Post by _mental_ »

On ZScript side activation types enum is here.
XxMiltenXx
Posts: 219
Joined: Wed Jan 08, 2014 8:40 am
Graphics Processor: nVidia with Vulkan support
Location: Germany

Re: WorldLine(Pre)Activated: Retrieve means of Activation

Post by XxMiltenXx »

Thank you.

I assume "player pushes" is "bumping?" That is why I couldn't find it then.
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: WorldLine(Pre)Activated: Retrieve means of Activation

Post by Marisa the Magician »

Heh, I really should have added this from the beginning.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”