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

Paycheck during death fix #721

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Altis_Life.Altis/core/fn_survival.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ _fnc_water = {
};

private _fnc_paycheck = {
if (alive player) then {
if (life_is_alive) then {
private _paycheck = call life_paycheck;
if (player distance (getMarkerPos "fed_reserve") < 120 && playerSide isEqualTo west) then {
systemChat format [localize "STR_ReceivedPay",[_paycheck + 1500] call life_fnc_numberText];
Expand Down
1 change: 1 addition & 0 deletions Altis_Life.Altis/core/medical/fn_respawned.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ life_thirst = 100;
life_carryWeight = 0;
CASH = 0; //Make sure we don't get our cash back.
life_respawned = false;
life_is_alive = true;
player playMove "AmovPercMstpSnonWnonDnon";

life_corpse setVariable ["Revive",nil,true];
Expand Down