mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-27 10:11:51 +03:00
Fix spawn marker count for non-cherno maps
This commit is contained in:
@@ -104,7 +104,7 @@ AllowedVehiclesList = [
|
||||
["VWGolf",3]
|
||||
];
|
||||
|
||||
if ((toLower worldName) in ["caribou","chernarus","cmr_ovaron","dingor","fallujah","fapovo","fdf_isle1_a","isladuala","lingor","mbg_celle2","namalsk","napf","oring","panthera2","sara","sauerland","smd_sahrani_a2","tavi","trinity","utes"]) then {
|
||||
if (toLower worldName in ["caribou","chernarus","cmr_ovaron","dingor","fallujah","fapovo","fdf_isle1_a","isladuala","lingor","mbg_celle2","namalsk","napf","oring","panthera2","sara","sauerland","smd_sahrani_a2","tavi","trinity","utes"]) then {
|
||||
// water map, add boats
|
||||
|
||||
{AllowedVehiclesList set [count AllowedVehiclesList,_x];} count [
|
||||
|
||||
@@ -381,4 +381,15 @@ _debugMarkerPosition = getMarkerPos "respawn_west";
|
||||
_debugMarkerPosition = [(_debugMarkerPosition select 0),(_debugMarkerPosition select 1),1];
|
||||
_vehicle_0 = createVehicle ["DebugBox_DZ", _debugMarkerPosition, [], 0, "CAN_COLLIDE"];
|
||||
_vehicle_0 setPos _debugMarkerPosition;
|
||||
_vehicle_0 setVariable ["ObjectID","1",true];
|
||||
_vehicle_0 setVariable ["ObjectID","1",true];
|
||||
|
||||
actualSpawnMarkerCount = 0;
|
||||
// count valid spawn markers, since different maps have different amounts
|
||||
for "_i" from 0 to 10 do {
|
||||
if !([(getMarkerPos format["spawn%1",_i]), [0,0,0]] call BIS_fnc_areEqual) then {
|
||||
actualSpawnMarkerCount = actualSpawnMarkerCount + 1;
|
||||
} else {
|
||||
_i = 11; // exit since we did not find any further markers
|
||||
};
|
||||
};
|
||||
diag_log format["Total Number of spawn locations %1", actualSpawnMarkerCount];
|
||||
Reference in New Issue
Block a user