From 199d503f4bc85669788e85ecc07eee695345dc24 Mon Sep 17 00:00:00 2001 From: He-Man Date: Mon, 26 Nov 2018 21:57:00 +0100 Subject: [PATCH 1/2] Random dir for static wpns --- .../Missions/GMS_fnc_spawnGarrisonInsideBuilding_relPos.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/@GMS/addons/custom_server/Compiles/Missions/GMS_fnc_spawnGarrisonInsideBuilding_relPos.sqf b/@GMS/addons/custom_server/Compiles/Missions/GMS_fnc_spawnGarrisonInsideBuilding_relPos.sqf index 1f80d2c..f95fae8 100644 --- a/@GMS/addons/custom_server/Compiles/Missions/GMS_fnc_spawnGarrisonInsideBuilding_relPos.sqf +++ b/@GMS/addons/custom_server/Compiles/Missions/GMS_fnc_spawnGarrisonInsideBuilding_relPos.sqf @@ -37,6 +37,7 @@ for "_i" from 1 to _statics do _allBldPsn = _allBldPsn - [_pos]; _staticClassName = selectRandom _typesStatics; _obj = [_staticClassName, [0,0,0], true] call blck_fnc_spawnVehicle; + _obj setdir (random 359); _obj setVariable["GRG_vehType","emplaced"]; _staticsSpawned pushBack _obj; //diag_log format["_fnc_spawnGarrisonInsideBuilding_relPos: _obj = %1 | _staticsSpawned = %2",_obj,_staticsSpawned]; From bbe3287ccadce771ad569e0a9ad12c1353ef6d08 Mon Sep 17 00:00:00 2001 From: He-Man Date: Mon, 26 Nov 2018 21:59:52 +0100 Subject: [PATCH 2/2] Random dir for static wpns --- .../Compiles/Missions/GMS_fnc_spawnEmplacedWeaponArray.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/@GMS/addons/custom_server/Compiles/Missions/GMS_fnc_spawnEmplacedWeaponArray.sqf b/@GMS/addons/custom_server/Compiles/Missions/GMS_fnc_spawnEmplacedWeaponArray.sqf index 9aed887..5f8d3b2 100644 --- a/@GMS/addons/custom_server/Compiles/Missions/GMS_fnc_spawnEmplacedWeaponArray.sqf +++ b/@GMS/addons/custom_server/Compiles/Missions/GMS_fnc_spawnEmplacedWeaponArray.sqf @@ -116,7 +116,8 @@ if (blck_debugLevel > 1) then }; #endif - _wep setVariable["GRG_vehType","emplaced"]; + _wep setVariable["GRG_vehType","emplaced"]; + _wep setdir (random 359); _wep setPos _pos; [_wep,false] call blck_fnc_configureMissionVehicle; _emplacedWeps pushback _wep;