[DECORATE] Powerups over riding/stacking?

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
FranckyFox2468
Forum Regular
Posts: 180
Joined: Sat May 07, 2016 8:30 pm

[DECORATE] Powerups over riding/stacking?

#1

Post by FranckyFox2468 » Wed Feb 15, 2017 11:58 pm

This might seem complicated so ill start with an exemple:

Let's say i make an item that is similar to, let's say, overwatch's lucio passive speed boost. Where it gives rapidly short lasting speed powerups to surrounding allies. But the same game also has a speed boost pickup that gives superior speed boost.

If both are received at the same time what happens? The more powerful one takes effect over the other one? the last received one over rides the other? they stack?

Just thought on asking so it avoid some trials and errors that ends up giving absolutely nothing.

User avatar
Cutman
 
Posts: 66
Joined: Mon Jun 04, 2012 2:25 pm
Contact:

[DECORATE] Re: Powerups over riding/stacking?

#2

Post by Cutman » Thu Feb 16, 2017 12:27 am

This can be answered with a simple test:

Code: Select all

actor Speedy : PowerSpeed
{
speed 2.0
}

actor BiggerSpeedy : PowerSpeed
{
speed 2.5
}
Then give yourself these actors one at a time with the console. The answer is powerups can indeed stack, but only if they are different actors. Giving yourself Speedy twice will just refresh the duration of your Speedy powerup.

User avatar
FranckyFox2468
Forum Regular
Posts: 180
Joined: Sat May 07, 2016 8:30 pm

[DECORATE] Re: Powerups over riding/stacking?

#3

Post by FranckyFox2468 » Thu Feb 16, 2017 12:38 am

alright thanks!

Post Reply