Add for scriptcore 3 Tactiveplayer.Tbonus RW.
Tbonus:
- BonusID
- BonusTime
- Additional (If berserk a percentage of the additional damage, If predator percentage transparency, if cluster number of grenades, If vest the value of the vest, IF medkit the value of treatment, If granadekit number of grenades)
Example write use:
var
NewBonus: TNewBonus;
begin
NewBonus := TNewBonus.Create;
try
NewBonus.ID := 1; //Predator
NewBonus.Time := 15; //15 seconds
NewBonus.Additional := 90; //Transparency player 90%
Players[ID].AddBonus(NewBonus); //Assign bonus
finally
NewBonus.Free;
end;
end;
TActivePlayer.TBonus
Example read/write use:
//Write
players[ID].Bonus[1].Time:=20;
//Read
var
PredTime:integer;
PredTime:=players[ID].Bonus[1].Time;