Variable raise and lower in DECORATE

Moderator: GZDoom Developers

Post Reply
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Variable raise and lower in DECORATE

Post by Nevander »

It might come it handy (and for ease of use) to have a way to give a speed multiplier to A_Raise and A_Lower like in the example on the wiki, except without needing to do two lines and make the first one a 0 tic. Something like A_Raise(2) to raise twice as fast and A_Lower(0.5) to lower at half speed.

So as an example, this:

Code: Select all

TNT1 A 0 A_Raise
TNT1 A 1 A_Raise
Loop
For twice as fast would become:

Code: Select all

TNT1 A 1 A_Raise(2)
Loop
Good? Bad? Useless?
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Variable raise and lower in DECORATE

Post by NeuralStunner »

I thought I'd seen this before: Old Topic
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: Variable raise and lower in DECORATE

Post by Nevander »

NeuralStunner wrote:I thought I'd seen this before: Old Topic
Oops. Sorry for not searching first... either way, any chance this could be implemented in the future?
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Variable raise and lower in DECORATE

Post by Gez »

Note that you can also do this:
TNT1 A 1 { A_Raise; A_Raise; }
User avatar
Major Cooke
Posts: 8209
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: Variable raise and lower in DECORATE

Post by Major Cooke »

Addendum: IF you are on 2.9pre aka devbuilds from the DRD team.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Variable raise and lower in DECORATE

Post by NeuralStunner »

Gez wrote:Note that you can also do this:
TNT1 A 1 { A_Raise; A_Raise; }
Yes, however it causes weird problems.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Variable raise and lower in DECORATE

Post by Graf Zahl »

Indeed. Calling these multiple times in the same state does not work right.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Variable raise and lower in DECORATE

Post by Graf Zahl »

Oops. This has been in for some time now, so this thread can go.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”