Skip to content

Commit

Permalink
bonus money should work first time now too
Browse files Browse the repository at this point in the history
  • Loading branch information
nomisum committed Jan 22, 2016
1 parent a60911c commit 2799fff
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions init.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,24 @@ if (isServer) then {
REPLAY_STEPS_PER_TICK = 1;


_playercount = count allPlayers;
_bonusPerPlayer = _playercount * 100;


russianCredits = OPFOR_MONEY + _bonusPerPlayer;
USCredits = BLUFOR_MONEY + _bonusPerPlayer;
russianCredits = OPFOR_MONEY;
USCredits = BLUFOR_MONEY;

0 = [russianCredits,USCredits] execVM "spawn\gui\addPublicVariableEventhandler.sqf";

[] spawn {
waitUntil {count allPlayers > 0};
_playercount = count allPlayers;
_bonusPerPlayer = _playercount * 100;

russianCredits = OPFOR_MONEY + _bonusPerPlayer;
USCredits = BLUFOR_MONEY + _bonusPerPlayer;

0 = [russianCredits,USCredits] execVM "spawn\gui\addPublicVariableEventhandler.sqf";

};

if (isClass (configFile >> "CfgPatches" >> "task_force_radio")) then {
[] execVM "tfarsettings.sqf";
Expand Down

0 comments on commit 2799fff

Please sign in to comment.