Author Topic: Add TBonus RW  (Read 1812 times)

0 Members and 1 Guest are viewing this topic.

Offline BaneOfDeath

  • Major(1)
  • Posts: 11
Add TBonus RW
« on: May 09, 2015, 09:28:12 am »
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:
Code: [Select]
  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:
Code: [Select]
//Write
players[ID].Bonus[1].Time:=20;

//Read
var
PredTime:integer;

PredTime:=players[ID].Bonus[1].Time;
« Last Edit: May 09, 2015, 09:32:29 am by BaneOfDeath »

Offline rOy

  • Soldier
  • **
  • Posts: 120
Re: Add TBonus RW
« Reply #1 on: May 10, 2015, 12:10:50 am »
Who are you? ;D

http://wiki.soldat.pl/index.php/Main_Page

Stop trolling please :D

Offline JotEmI

  • Soldier
  • **
  • Posts: 188
Re: Add TBonus RW
« Reply #2 on: May 10, 2015, 03:47:20 am »
Besides the fact that it's probably another one of dominikk's accounts and that it should go here it's not a bad idea.
Problem is, as far as I know, that things like predator duration or berserk bonus damage are hard coded into the source code.

Offline ExHunter

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 154
  • Speedy go!
Re: Add TBonus RW
« Reply #3 on: May 10, 2015, 08:37:50 am »
Yes, it is him. Also he spams me with PMs and creates multiple threads here in forums.

If we would keep everything in one place, that would be nice.

I will look into this anyways. :p
« Last Edit: May 10, 2015, 08:40:11 am by ExHunter »