Buff Questions

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Buff Questions

Post by skelltor »

I have some buff questions
1. do negetive buff values work ie BuffDefenseMult = "-2.5" (I tried it ingame but it made the enemys invulnerable) did I do somethintg wrong?
2. How do I make a buff (or weapon) that gives only my unit as a hero tons of health?
3. Can I make buffs that work without other units being there
4. does this
BuffDefenseMult = "2.5"
BuffDefenseTimer = "40" mean the unit gets 2.5 times as much health for 40 seconds?
5. does this
BuffOffenseTimer = "30"
BuffOffenseMult = "4.5"
the units do 4.5 times as much damage for 30 seconds?
6. What does this refer to? BonusAmplification = "0.25" someone said that it meant how much extra damage the weapon does from damage buffs.

Any anwsers would be great :).
Ninja
Master Sergeant
Master Sergeant
Posts: 172
Joined: Thu Jan 07, 2010 9:49 pm
Projects :: Ghostmark
Location: Inside your sandwich

Re: Buff Questions

Post by Ninja »

I think that BuffDefenseMult is what incoming damage is multiplied by, for example "0.5" means that the unit takes half of the normal damage when it gets hit. I think that a positive value over 1 may make damage multiply to "weaken" enemies units, but I'm not sure.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Buff Questions

Post by skelltor »

Ok but if thats true why would this

Code: Select all

[OrdnanceClass]

ClassParent      = "com_weap_inf_buff_ord"

[Properties]

BuffDefenseTimer    = "40"
BuffDefenseMult     = "-2.5"

PlayEffectOnOwner   = "com_sfx_buff_dark_red"

AffectFriends = "0"  // default is 1. should the ordnance affect friends. 
AffectEnemies = "1"  // default is 1. should the ordnance affect enemies.
ApplyOnOwnerIfOnOthers = "0"


make enemies invulerable instead of weeker like I want?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Buff Questions

Post by Fiodis »

Because of this.
skelltor wrote:BuffDefenseMult = "-2.5"

Try it with positive 2.5. If that works you can safely assume that negative defense values convey invincibility.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Buff Questions

Post by skelltor »

Ok I will try that thanks you both.

EDIT that works thanks :) 4 and 6 are done anybody know anything about the others?
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Buff Questions

Post by Dakota »

skelltor wrote:I have some buff questions
1. do negetive buff values work ie BuffDefenseMult = "-2.5" (I tried it ingame but it made the enemys invulnerable) did I do somethintg wrong?
2. How do I make a buff (or weapon) that gives only my unit as a hero tons of health?
3. Can I make buffs that work without other units being there
4. does this
BuffDefenseMult = "2.5"
BuffDefenseTimer = "40" mean the unit gets 2.5 times as much health for 40 seconds?
5. does this
BuffOffenseTimer = "30"
BuffOffenseMult = "4.5"
the units do 4.5 times as much damage for 30 seconds?
6. What does this refer to? BonusAmplification = "0.25" someone said that it meant how much extra damage the weapon does from damage buffs.

Any anwsers would be great :).
heres the list of answers:
1. negative values don't work unless u want it invincible. you can weaken units with a positive value over one and u can strengthen units with a value between 0 and 1 (decimal)
2. what do u mean exactly? do u want it to make only your unit and not others invincible or regan or higher defense. if u wanted it to have more health you can set the defense up high and put a long timer on it so it for the unit's life span or to any amount of time
3. i am not really sure but it may be possible
4. no it means you get 2.5 more damage taken per hit (health is never changed on it only the damage amount for the gun as u can see when u heal while the buff is active)
5. yes it does mean that
6. that is for the galactic conquest when you buy the upgrade
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Buff Questions

Post by skelltor »

Thanks :D and "2. what do u mean exactly? do u want it to make only your unit and not others invincible or regan or higher defense. if u wanted it to have more health you can set the defense up high and put a long timer on it so it for the unit's life span or to any amount of time"

I mean I am trying to make a buff or weapon that when activated would make the hero and only that hero temperaly invulnerable or get a huge health boost.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Buff Questions

Post by Dakota »

that would tie into the number 3 question of can a buff work on just one unit when not on others. i would have to look into it. i may do some testing later but i got to go to my grandma's house now.

EDIT: i am back now and have been testing but i haven't found anything that would help, maybe someone else knows.
User avatar
TGB
Private Third Class
Posts: 58
Joined: Sun Oct 25, 2009 2:21 am
Games I'm Playing :: LoL SWBF2 BF3 CNC3
xbox live or psn: pfff xbox
Location: New Zealand

Re: Buff Questions

Post by TGB »

have you tried creating a new parent buff odf and removing the line
"ApplyOnOwnerIfOnOthers = "1"" then referencing this file as the parent odf instead of the normal one?
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Buff Questions

Post by Dakota »

TGB wrote:have you tried creating a new parent buff odf and removing the line
"ApplyOnOwnerIfOnOthers = "1"" then referencing this file as the parent odf instead of the normal one?

i always thought that that code was not going to work because of when i read the magna guard's poison move it replaces the 1 with a 0 (aka turning it off) but when you use that it still effects others and not your unit. i am still not entirely sure but if someone could find a way to test it it may work

(wow lots of repeated thats and its...)
Ninja
Master Sergeant
Master Sergeant
Posts: 172
Joined: Thu Jan 07, 2010 9:49 pm
Projects :: Ghostmark
Location: Inside your sandwich

Re: Buff Questions

Post by Ninja »

Dakota wrote:
TGB wrote:have you tried creating a new parent buff odf and removing the line
"ApplyOnOwnerIfOnOthers = "1"" then referencing this file as the parent odf instead of the normal one?

i always thought that that code was not going to work because of when i read the magna guard's poison move it replaces the 1 with a 0 (aka turning it off) but when you use that it still effects others and not your unit. i am still not entirely sure but if someone could find a way to test it it may work

(wow lots of repeated thats and its...)
I don't know it an actual buff affecting only the owner can work, but the KOTOR era uses a powerup dispenser to substitute for a buff and only affect the owner.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Buff Questions

Post by skelltor »

That might work if I really decrease the throw range so as soon as its dropped he gets it. offtopic
I just wanted to thank everybody for the great help here and with my other problems and everything gametoast really is a great community :)
Post Reply