Skip to content
Closed
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
1 change: 1 addition & 0 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/def/mission.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ if (isServer) then {
btc_spect_emp = []; publicVariable "btc_spect_emp"; //Preserve reference

//Cache
btc_cache_cityID = []; // List of city ID visible in debug mode for custom cache location
btc_cache_type = [
_allClassSorted select {
_x isKindOf "ReammoBox_F" &&
Expand Down
2 changes: 2 additions & 0 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/find_pos.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ if (_useful isEqualTo []) then {_useful = _city_all;};

private _city = selectRandom _useful;

if (!(btc_cache_cityID isEqualTo []) && count btc_cache_cityID > btc_cache_n) then {_city = btc_city_all get (btc_cache_cityID select btc_cache_n)};

if (_city getVariable ["type", ""] in ["NameLocal", "Hill", "NameMarine"]) exitWith {
[] call btc_cache_fnc_find_pos;
};
Expand Down