Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Cacowad

power up class question

Recommended Posts

for the series: "how that work?" are there: the powerups classes!

quik question, what appen if i try to pickup a more powerful version of a power up that already have? thay will stack or the newer\more powerful will replace the older\less powerful item?

below there is a portion of a useless code just in case,ther are any changes if the duration differs or are ineriting from the class they are attempting to replace\being replaced?

ACTOR PowerDamage2 : PowerDamage
{
 powerup.duration -200
 damagefactor "normal", 4
 +INVENTORY.HUBPOWER
}
ACTOR PowerDamage3 : PowerDamage
{
 powerup.duration -200
 damagefactor "normal", 2
 +INVENTORY.HUBPOWER
}
ACTOR PowerDamage4 : PowerDamage2
{
 powerup.duration 0x7FFFFFFF
 damagefactor "normal", 3
 +INVENTORY.HUBPOWER
}
as usual thank you for your patience.

Share this post


Link to post
Cacowad said:

quik question, what appen if i try to pickup a more powerful version of a power up that already have? thay will stack or the newer\more powerful will replace the older\less powerful item?


It depends on the powerup type. Generally, the newer replaces the older.

However, for PowerDamage and PowerProtection items, they stack. So in your example, if you get all three items, your damage will be multiplied by 24.

Share this post


Link to post

good to hear! thank you. powerspeed act similar to powerdamage, so i guess it will stack... i'll try soon.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×