Shield Recharge Delay

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
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Shield Recharge Delay

Post by wishihadaname »

I've been playing around with different methods for balancing the units. One of my ideas was to balance out for the Imperials heavy armour and health regeneration by giving the rebels energy shields. It really irks me though that if I give them recharging shields, the shield will recharge all of the time. I want to make a different game mechanic for the alliance, one where you have to take cover after being shot and wait for your shield to come back, not just avoid getting hit too often like the health regenerating imperials. I couldn't find any example of this so I just added a "AddShieldDelay = 15" line to my odf's. Big surprise, nothing happend. Does anyone know of an actual script command that would force the shield to stop regenerating for 15 seconds after being hit?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Shield Recharge Delay

Post by DarthD.U.C.K. »

there is no scriptcommand which can do that, the only values you can use are "MaxShield", "AddShield" and for lua "CurShield". you could possibly use a timer and stuff to set the regenerationrate to 0 for a certain amaount of time and then change it back but im not sure if that would be practical, since you needed one for every unit with shield.
Post Reply