GiveBonus

From Soldat Community Wiki
Revision as of 09:45, 15 August 2012 by Freeman (talk | contribs) (Created page with " procedure GiveBonus(ID, Bonus: byte); '''Parameter Info:''' ID (Byte): ID of the player. Bonus (Byte): Type of the bonus to give: 1 - Predator 2 - Berserker ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
procedure GiveBonus(ID, Bonus: byte);

Parameter Info:
 ID (Byte): ID of the player.
 Bonus (Byte): Type of the bonus to give:
   1 - Predator
   2 - Berserker
   3 - Bulletproof vest
   4 - Grenades
   5 - Cluster grenades

Description:
 Gives the bonus directly to the specified player. No kits are spawned, so this thing always works. You can also give the bonus even
 if the old effect hasn't ended yet (like with pred)
 This procedure isn't documented in the eC manual, the IDs are got experimentally.
 Also note, that you can't give a medkit using this function (afaik), you can instead do negative damage with the DoDamage procedure.