Regeneration delay in shields?

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
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Regeneration delay in shields?

Post by Marth8880 »

I've done some digging on here but I cannot seem to find out how to make a unit's shields have a regeneration delay after they are damaged. For instance, in Mass Effect, when your shields are damaged, they don't start regenerating right away; they have to be free from attack for a length of time before regenerating. The same thing happens in Republic Commando.

What would I need do to this unit's script in order to obtain this effect?

Code: Select all

[GameObjectClass]
ClassParent         = "rep_inf_default"


[Properties]

MaxHealth           = 300.0
MaxShield           = 400.0
AddShield           = 4.5

WEAPONSECTION = 1
WeaponName         = "rep_weap_inf_rifle_disruptor"
WeaponAmmo         = 0

WEAPONSECTION = 2
WeaponName         = "rep_weap_inf_rifle_cryo"
WeaponAmmo         = 0

WEAPONSECTION = 3
WeaponName         = "rep_weap_inf_pistol_disruptor"
WeaponAmmo         = 0

WEAPONSECTION = 4
WeaponName         = "rep_weap_inf_thermaldetonator"
WeaponAmmo         = 4
WeaponChannel      = 1

VOUnitType        	= 121
User avatar
DarthFannel
Private Second Class
Posts: 60
Joined: Tue Jul 20, 2010 9:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City

Re: Regeneration delay in shields?

Post by DarthFannel »

I think is not possible for units, I tried but there is no AddShieldDelay command or anything, I think is possible with buildings via LUA.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Regeneration delay in shields?

Post by Marth8880 »

DarthFannel wrote:...I tried but there is no AddShieldDelay command or anything...
I was actually just thinking about that. :lol:

Well I'll just try some stuff in the meantime to see if I can make this work.
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....

Re: Regeneration delay in shields?

Post by wishihadaname »

I tried doing the same thing for my Correlian Resistance map, never could get it to work. Let me know if you find a workaround.
Post Reply