Page 1 of 1

AddBleedThreshold lua command

Posted: Tue Mar 15, 2011 2:47 pm
by deagle
hello,

I created a mod map, where every team is starting with one cp. theres also a "team 0" cp (grey). I want that, if this cp is taken by one team, that the reinforcement tickets of the other team starts slowly to bleed. how do I correctly set the AddBleedThreshold command in lua?

thanks in advance!

Re: AddBleedThreshold lua command

Posted: Tue Mar 15, 2011 7:43 pm
by jdee/barc
here. try tweaking these stats and adding them to you lua to replace what ever would be using these commands.
-- Attacker Stats
SetUnitCount(ATT, 25)
SetReinforcementCount(ATT, 250)
AddBleedThreshold(ATT, 31, 0.0)
AddBleedThreshold(ATT, 21, 0.75)
AddBleedThreshold(ATT, 11, 2.25)
AddBleedThreshold(ATT, 1, 3.0)

-- Defender Stats
SetUnitCount(DEF, 25)
SetReinforcementCount(DEF, 250)
AddBleedThreshold(DEF, 31, 0.0)
AddBleedThreshold(DEF, 21, 0.75)
AddBleedThreshold(DEF, 11, 2.25)
AddBleedThreshold(DEF, 1, 3.0)