Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed the money penalty on death to 15% instead of 10% + 5% #319

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions A3-Antistasi/onPlayerRespawn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ if (side group player == teamPlayer) then
_score = _oldUnit getVariable ["score",0];
_punish = _oldUnit getVariable ["punish",0];
_moneyX = _oldUnit getVariable ["moneyX",0];
_moneyX = round (_moneyX - (_moneyX * 0.1));
_moneyX = round (_moneyX - (_moneyX * 0.15));
_eligible = _oldUnit getVariable ["eligible",true];
_rankX = _oldUnit getVariable ["rankX","PRIVATE"];

_moneyX = round (_moneyX - (_moneyX * 0.05));
if (_moneyX < 0) then {_moneyX = 0};

_newUnit setVariable ["score",_score -1,true];
Expand Down Expand Up @@ -172,7 +171,7 @@ if (side group player == teamPlayer) then
deleteVehicle (_this select 6);
if (_typeX == "Put") then
{
if (player distance petros < 10) then
if (player distance petros < 10) then
{
[player, 20, 0.34] remoteExec ["A3A_fnc_punishment",player];
};
Expand All @@ -181,7 +180,7 @@ if (side group player == teamPlayer) then
};
};
player addEventHandler ["Fired", _firedHandlerTk];
if (hasACE) then
if (hasACE) then
{
["ace_firedPlayer", _firedHandlerTk ] call CBA_fnc_addEventHandler;
};
Expand Down