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

Allow statics to save in elevated buildings #217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions A3-Antistasi/statSave/saveLoop.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ _sitios = marcadores select {lados getVariable [_x,sideUnknown] == buenos};
_posicion = position _x;
if ((alive _x) and !(surfaceIsWater _posicion) and !(isNull _x)) then
{
_arrayEst pushBack [typeOf _x,getPos _x,getDir _x];
_arrayEst pushBack [typeOf _x,getPosATL _x,getDir _x];
/*
_cercano = [_sitios,_posicion] call BIS_fnc_nearestPosition;
if (_posicion inArea _cercano) then
Expand Down Expand Up @@ -277,4 +277,4 @@ _controles = controles select {(lados getVariable [_x,sideUnknown] == buenos) an

savingServer = false;
[[petros,"hint",format ["Savegame Done.\n\nYou won't lose your stats in the event of a game update.\n\nRemember: if you want to preserve any vehicle, it must be near the HQ Flag with no AI inside.\nIf AI are inside, you will save the funds you spent on it.\n\nAI will be refunded\n\nStolen and purchased Static Weapons need to be ASSEMBLED in order to be saved. You can save disassembled Static Weapons in the ammo box.\n\nMounted Statics (Mortar/AA/AT squads) won't get saved, but you will be able to recover the cost.\n\nSame for assigned vehicles more than 50m away from HQ.\n\n%1 fund count:\nHR: %2\nMoney: %3 €",nameBuenos,_hrFondo,_resFondo]],"A3A_fnc_commsMP"] call BIS_fnc_MP;
diag_log "Antistasi: Persistent Save Done";
diag_log "Antistasi: Persistent Save Done";