Instant Health Buff [Solved]

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
Glitch25
Sergeant Major
Sergeant Major
Posts: 222
Joined: Mon May 07, 2012 1:01 pm
Projects :: [ISM] [BFU]
Games I'm Playing :: [SWBFII] [SWBFI]
Location: Baktoid Combat Automata
Contact:

Instant Health Buff [Solved]

Post by Glitch25 »

What if instead of the health and ammo dispenser, give the engineer a "Bacta Wave Emitter" or "Power Cell Recharge" powerup. I've looked at the assets and have been experimenting with this in game. I can never get the health to regain instantly. It's always within a certain time or not at all.
Hidden/Spoiler:
[code][OrdnanceClass]

ClassParent = "com_weap_inf_buff_ord"

[Properties]

BuffHealthTimer = "30" <--------How long it heals for
BuffHealthRate = "20" <--------How much it heals

PlayEffectOnOwner = "com_sfx_buff_regen"

AffectEnemies = "0"[/code]
Once I figure this out I'll disable the effect on owner (No more engineers healing themselves)
100-200 HP given to a maximum of 10 people each time this powerup is used
No animation will be used when this is activated
All effected droid players will be given a short electric effect attached to the hip
All effected organic player will be given a short bacta mist effect (Similar to bothan spy buff)
Last edited by Glitch25 on Mon Dec 03, 2012 11:01 pm, edited 1 time in total.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Instant Health Buff

Post by Noobasaurus »

Have you tried setting BuffHealthTimer to a small value (0.00001) and BuffHealthRate to a high value/desired value?
User avatar
Glitch25
Sergeant Major
Sergeant Major
Posts: 222
Joined: Mon May 07, 2012 1:01 pm
Projects :: [ISM] [BFU]
Games I'm Playing :: [SWBFII] [SWBFI]
Location: Baktoid Combat Automata
Contact:

Re: Instant Health Buff

Post by Glitch25 »

Yep. No effect in game. :( I'll try and increase the BuffHealthTimer a bit.

Code: Select all

[OrdnanceClass]

ClassParent      = "com_weap_inf_buff_ord"

[Properties]

BuffHealthRate = "200"
BuffHealthTimer = "0.00001"

PlayEffectOnOwner = "com_sfx_buff_regen"

AffectEnemies = "0"

LightningEffect       = "1"
LightningEffectScale = "0.25"
NoTargetLightningEffectCount = "5"  // The number of ligthning effects to display when the ordinance has no targets to hit
NoTargetLightningEffectRandomSpread = "0.4"  // The random rotation spread the ligthning effects does when the ordinance has no targets to hit
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Instant Health Buff

Post by Noobasaurus »

Try increasing the BuffHealthRate to something massive...in the millions.
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: Instant Health Buff

Post by Nedarb7 »

Doesn't the bufftimer set the amount of time the reciever has the buff health?
I say this because I made a dispenser armor and strength which only lasted
for thirty seconds so I changed it to 60 seconds.
User avatar
Glitch25
Sergeant Major
Sergeant Major
Posts: 222
Joined: Mon May 07, 2012 1:01 pm
Projects :: [ISM] [BFU]
Games I'm Playing :: [SWBFII] [SWBFI]
Location: Baktoid Combat Automata
Contact:

Re: Instant Health Buff

Post by Glitch25 »

Yep, that's exactly what it does. I'm attempting to find a way to give the affected players/bots instant health gain of around 100-200 instead of the bothan spy buff where it heals slowly. (This is in place of the health and ammo dispenser)

So far nothing I've done has accomplished that goal. (Millions did not work) :?
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: Instant Health Buff

Post by Nedarb7 »

The units are being healed though correct?
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: Instant Health Buff

Post by Marth8880 »

Noobasaurus wrote:Try increasing the BuffHealthRate to something massive...in the millions.
Setting it too high will probably tell the game that it's a nil value that should be disregarded, thus making it ignored.

Remember, the total health healed is the product of the regain rate and the timer value. So if you wanted it to take 0.1 seconds to heal 1000 health, you'd set the timer to 0.1 and the health regain to 10000. In your case, 0.1 seconds is honestly instant enough; a value much smaller than that won't really be noticeable at all.
User avatar
Glitch25
Sergeant Major
Sergeant Major
Posts: 222
Joined: Mon May 07, 2012 1:01 pm
Projects :: [ISM] [BFU]
Games I'm Playing :: [SWBFII] [SWBFI]
Location: Baktoid Combat Automata
Contact:

Re: Instant Health Buff

Post by Glitch25 »

You were right Marth. :D That got it to work. I set it to 1000 but that didn't heal enough in the given time. I've increased the BuffHealthRate to 5000 this time. Thanks guys! Really quick help.
Post Reply