Page 1 of 1

Instant Health Buff [Solved]

Posted: Mon Dec 03, 2012 9:02 pm
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)

Re: Instant Health Buff

Posted: Mon Dec 03, 2012 9:23 pm
by Noobasaurus
Have you tried setting BuffHealthTimer to a small value (0.00001) and BuffHealthRate to a high value/desired value?

Re: Instant Health Buff

Posted: Mon Dec 03, 2012 9:56 pm
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

Re: Instant Health Buff

Posted: Mon Dec 03, 2012 10:00 pm
by Noobasaurus
Try increasing the BuffHealthRate to something massive...in the millions.

Re: Instant Health Buff

Posted: Mon Dec 03, 2012 10:10 pm
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.

Re: Instant Health Buff

Posted: Mon Dec 03, 2012 10:16 pm
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) :?

Re: Instant Health Buff

Posted: Mon Dec 03, 2012 10:19 pm
by Nedarb7
The units are being healed though correct?

Re: Instant Health Buff

Posted: Mon Dec 03, 2012 10:22 pm
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.

Re: Instant Health Buff

Posted: Mon Dec 03, 2012 10:33 pm
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.