[DECORATE] Powerups over riding/stacking?

Discuss all aspects related to modding Zandronum here.
User avatar
FranckyFox2468
Topic author
 
Offline
Posts: 48
Joined: Sat May 07, 2016 8:30 pm

[DECORATE] Powerups over riding/stacking?

Post#1 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
 
Offline
Posts: 45
Joined: Mon Jun 04, 2012 2:25 pm
Contact:

[DECORATE] Re: Powerups over riding/stacking?

Post#2 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
Topic author
 
Offline
Posts: 48
Joined: Sat May 07, 2016 8:30 pm

[DECORATE] Re: Powerups over riding/stacking?

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

alright thanks!


Return to “Editing Help & Discussion”



Who is online

Users browsing this forum: No registered users and 1 guest