From e092ab2ae563af7b91ab1f8f786542c37aaa5455 Mon Sep 17 00:00:00 2001 From: Defent <martin-hj@tele2.se> Date: Tue, 1 Sep 2015 22:38:58 +0200 Subject: [PATCH 1/3] Fixed asd --- @ExileServer/addons/a3_dms/FSM/missions.fsm | 5 +++-- Pre-Packed PBO/a3_dms.pbo | Bin 115275 -> 115354 bytes 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/@ExileServer/addons/a3_dms/FSM/missions.fsm b/@ExileServer/addons/a3_dms/FSM/missions.fsm index d21dd70..b4db3e6 100644 --- a/@ExileServer/addons/a3_dms/FSM/missions.fsm +++ b/@ExileServer/addons/a3_dms/FSM/missions.fsm @@ -45,7 +45,7 @@ link20[] = {17,18}; link21[] = {18,19}; link22[] = {19,16}; globals[] = {0.000000,0,0,0,0,640,480,2,454,6316128,1,70.838631,1581.788208,823.258911,-305.297394,1217,909,1}; -window[] = {2,-1,-1,-1,-1,890,156,1450,156,3,1235}; +window[] = {2,-1,-1,-32000,-32000,890,156,1450,156,3,1235}; *//*%FSM</HEAD>*/ class FSM { @@ -255,7 +255,8 @@ class FSM "};" \n "" \n "_aiLocality = diag_tickTime;" \n - "call DMS_AILocalityManager;"/*%FSM</STATEINIT""">*/; + "//call DMS_AILocalityManager;" \n + "// Just looping without function atm."/*%FSM</STATEINIT""">*/; precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/; class Links { diff --git a/Pre-Packed PBO/a3_dms.pbo b/Pre-Packed PBO/a3_dms.pbo index e2d6a8a77f6f14eee0c55a9a8110624b0c357dba..b083a12809425a6639819f9e5d39d0623c9a5286 100644 GIT binary patch delta 131 zcmX@z!al2&eZphjuQm)|@Id2P=+})Of+~58jSLJ7bacVgX1A&!Jtlqq$um~SOm3bk zucEK7;8j{&qL7oHUyzxXu27y?l969pqL5aamt2yWpQn&mk~?{B!>7$!)88;PPgt{k f!Wzcqq9Re>j(J?*b4a{@EbX8v%Z*flNy*{>Z;Uf* delta 91 zcmbQ$%6__qeZphjWi||8ut4%z=(3F;f+|@Ib#x6k`&9+$2`4A!<S4lK2FE*k`s4#S tnI)B*EvG$YZoa=}`~5YH%SA=FW-Qw!G@(^5`0D?;u_x~5cR0Dm0{|GkB?ABe From eeb6ad0903cb44b5f48076422333223af4551fdd Mon Sep 17 00:00:00 2001 From: Zupa <jonas_windmolders@hotmail.com> Date: Tue, 1 Sep 2015 23:24:15 +0200 Subject: [PATCH 2/3] Spawns a non persistence vehicle in the closest open spot. --- @ExileServer/addons/a3_dms/fn_DMS_preInit.sqf | 1 + .../scripts/SpawnNonPersistentVehicle.sqf | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 @ExileServer/addons/a3_dms/scripts/SpawnNonPersistentVehicle.sqf diff --git a/@ExileServer/addons/a3_dms/fn_DMS_preInit.sqf b/@ExileServer/addons/a3_dms/fn_DMS_preInit.sqf index c5e1443..da7c571 100644 --- a/@ExileServer/addons/a3_dms/fn_DMS_preInit.sqf +++ b/@ExileServer/addons/a3_dms/fn_DMS_preInit.sqf @@ -34,6 +34,7 @@ DMS_CreateMarker = compileFinal preprocessFileLineNumbers "\x\addons\dms\sc DMS_FindSuppressor = compileFinal preprocessFileLineNumbers "\x\addons\dms\scripts\FindSuppressor.sqf"; DMS_SpawnCrate = compileFinal preprocessFileLineNumbers "\x\addons\dms\scripts\SpawnCrate.sqf"; DMS_SetAILocality = compileFinal preprocessFileLineNumbers "\x\addons\dms\scripts\SetAILocality.sqf"; +DMS_SpawnNonPersistentVehicle = compileFinal preprocessFileLineNumbers "\x\addons\dms\scripts\SpawnNonPersistentVehicle.sqf"; //Load config call compileFinal preprocessFileLineNumbers "\x\addons\dms\config.sqf"; \ No newline at end of file diff --git a/@ExileServer/addons/a3_dms/scripts/SpawnNonPersistentVehicle.sqf b/@ExileServer/addons/a3_dms/scripts/SpawnNonPersistentVehicle.sqf new file mode 100644 index 0000000..af283bc --- /dev/null +++ b/@ExileServer/addons/a3_dms/scripts/SpawnNonPersistentVehicle.sqf @@ -0,0 +1,20 @@ +/* + Spawn a non-saved vehicle in Exile + Created by Zupa +*/ + +private ["_vehicleClass","_position","_vehpos","_maxDistance","_vehObj"]; + +_vehicleClass = _this select 0; +_position = _this select 1; +_vehpos = []; +_maxDistance = 40; + +while{count _vehpos < 1} do { + _vehpos = _position findEmptyPosition[20,_maxDistance,_vehicleClass]; + _maxDistance = (_maxDistance + 15); +}; + +_vehObj = ObjNull; +_vehObj = [_vehicleClass, _vehpos, (random 360), true] call ExileServer_object_vehicle_createNonPersistentVehicle; +_vehObj From f63eda8e870f372203d12f3df25462deed3e0a8b Mon Sep 17 00:00:00 2001 From: Zupa <jonas_windmolders@hotmail.com> Date: Tue, 1 Sep 2015 23:29:46 +0200 Subject: [PATCH 3/3] Spawns a non persistence vehicle in the closest open spot &Added example --- .../addons/a3_dms/scripts/SpawnNonPersistentVehicle.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/@ExileServer/addons/a3_dms/scripts/SpawnNonPersistentVehicle.sqf b/@ExileServer/addons/a3_dms/scripts/SpawnNonPersistentVehicle.sqf index af283bc..581b563 100644 --- a/@ExileServer/addons/a3_dms/scripts/SpawnNonPersistentVehicle.sqf +++ b/@ExileServer/addons/a3_dms/scripts/SpawnNonPersistentVehicle.sqf @@ -1,5 +1,8 @@ /* Spawn a non-saved vehicle in Exile + + _exampleVeh = ['Exile_Chopper_Hummingbird_Green',_pos] call DMS_SpawnNonPersistentVehicle; + Created by Zupa */