From 481673bb0ed81e8c671f80650f6ffda8a93fdf8d Mon Sep 17 00:00:00 2001 From: ARMAzac Date: Sat, 8 Jun 2019 10:22:47 +1000 Subject: [PATCH] Vehicles were flooded after loading persistent save --- addons/overthrow_main.pbo | Bin 4238632 -> 4238700 bytes .../factions/NATO/fn_NATOGroundForces.sqf | 3 ++- .../functions/save/fn_loadGame.sqf | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/overthrow_main.pbo b/addons/overthrow_main.pbo index af2be08762be6a5c7064c385cb8ce0d64bbb4172..aa5c00396205479a7fa4c15c5cd0773417270d15 100644 GIT binary patch delta 401 zcmX}j&o4p&0KoC}$giFsC8VTBFGWvYsQk9>4z^qjHJiqTny8t#Ne|IR7TI=$^m`* zLDq_mstgY%;H@;OzOupi|GJ9hnh%qhf*%T|5x@*o1Tl*_%p-&_B3Qs8mavQ!tYWQF cuB~6yt@qjYyXH$iEIwPJyOGCS;qa^Z3nT%Z9smFU delta 332 zcmWN=xlY0W0D$3GK@RJIa*C}Ls@!tpRb*ynH0k2N?qEXfgeH9e1~w-KM-zsQ#8+q< z5*QqvT!;%MhVXyM_cQMc@BHZKLL)v1=&7-xKS_eGKKOi&zKDh?8XFY2Nf+JRqK97k z=;t;??r@iT+-HCXJYhB$ z@!aY;DQz{Jy=7%{YNwfDmO18G;022;vCImqtg+4pFL}jl-td+ho4m88cB?-RerF!< S7oLZ%Bmcjanv-SQ)|54B#)~Te diff --git a/addons/overthrow_main/functions/factions/NATO/fn_NATOGroundForces.sqf b/addons/overthrow_main/functions/factions/NATO/fn_NATOGroundForces.sqf index 20adf8d7..b33b2f0e 100644 --- a/addons/overthrow_main/functions/factions/NATO/fn_NATOGroundForces.sqf +++ b/addons/overthrow_main/functions/factions/NATO/fn_NATOGroundForces.sqf @@ -43,8 +43,9 @@ if !(_pos isEqualType []) then { _dir = [_frompos,_ao] call BIS_fnc_dirTo; }; _pos set [2,1]; -_veh = _vehtype createVehicle _pos; +_veh = createVehicle [_vehtype, [0,0,1000+random 1000], [], 0, "CAN_COLLIDE"]; _veh setDir (_dir); +_veh setPosATL _pos; _veh setVariable ["garrison","HQ",false]; clearWeaponCargoGlobal _veh; clearMagazineCargoGlobal _veh; diff --git a/addons/overthrow_main/functions/save/fn_loadGame.sqf b/addons/overthrow_main/functions/save/fn_loadGame.sqf index f21b133e..91015be0 100644 --- a/addons/overthrow_main/functions/save/fn_loadGame.sqf +++ b/addons/overthrow_main/functions/save/fn_loadGame.sqf @@ -150,7 +150,7 @@ sleep 0.3; _name = _x select 5; }; private _p = _pos; - _veh = createVehicle [_type, [0,0,0], [], 0, "CAN_COLLIDE"]; + _veh = createVehicle [_type, [0,0,1000], [], 0, "CAN_COLLIDE"]; _veh enableDynamicSimulation true; /* if !(_simulation) then {