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

Fix for hc not spawning civilian vehicles on chernarus_summer #199

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 A3-Antistasi/CREATE/patrolCA.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ if (!_inWaves) then
{
_threatEvalLand = [_posDestino,_lado] call A3A_fnc_landThreatEval;
_aeropuertos = aeropuertos select {(lados getVariable [_x,sideUnknown] == _lado) and ([_x,true] call A3A_fnc_airportCanAttack) and (getMarkerPos _x distance2D _posDestino < distanceForAirAttack)};
if (hayIFA and (_threatEvalLand <= 15)) then {_aeropuertos = _areopuertos select {(getMarkerPos _x distance2D _posDestino < distanceForLandAttack)}};
if (hayIFA and (_threatEvalLand <= 15)) then {_aeropuertos = _aeropuertos select {(getMarkerPos _x distance2D _posDestino < distanceForLandAttack)}};
_puestos = if (_threatEvalLand <= 15) then {puestos select {(lados getVariable [_x,sideUnknown] == _lado) and ([_posDestino,getMarkerPos _x] call A3A_fnc_isTheSameIsland) and (getMarkerPos _x distance _posDestino < distanceForLandAttack) and ([_x,true] call A3A_fnc_airportCanAttack)}} else {[]};
_aeropuertos = _aeropuertos + _puestos;
if (_esMarcador) then
Expand Down

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion A3-Antistasi/initPlayerLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ if (isMultiplayer) then
};
if (!hasInterface) exitWith
{
if (worldName == "Tanoa") then {call compile preprocessFileLineNumbers "roadsDB.sqf"} else {if (worldName == "Altis") then {call compile preprocessFileLineNumbers "roadsDBAltis.sqf"}};
switch (worldName) do {
case "Tanoa": { call compile preprocessFileLineNumbers "roadsDB.sqf" };
case "Altis": { call compile preprocessFileLineNumbers "roadsDBAltis.sqf" };
case "chernarus_summer": { call compile preprocessFileLineNumbers "roadsDBcherna.sqf" };
default { diag_log format ["Error: No road database loaded for %1",worldName] };
};
[clientOwner] remoteExec ["A3A_fnc_addHC",2];
};
_isJip = _this select 1;
Expand Down
2 changes: 1 addition & 1 deletion A3-Antistasi/roadsDBcherna.sqf

Large diffs are not rendered by default.