From 5d3a6b119990c1a8c4862034f59d255d9bcb11c5 Mon Sep 17 00:00:00 2001 From: He-Man Date: Sun, 28 Jul 2019 16:50:10 +0200 Subject: [PATCH] Private Workaround --- Tools/Export_EdenToArray.sqf | 7 ++++--- Tools/Export_EdenToCode.sqf | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Tools/Export_EdenToArray.sqf b/Tools/Export_EdenToArray.sqf index bf1cc65..2d511cc 100644 --- a/Tools/Export_EdenToArray.sqf +++ b/Tools/Export_EdenToArray.sqf @@ -1,11 +1,12 @@ -_allobj = (allmissionobjects "") select {!(isplayer _x) && !(_x iskindof "logic") && !(_x iskindof "CamCurator") && !(_x iskindof "CBA_NamespaceDummy") && !(_x iskindof "MAN")}; +_allobj = (allmissionobjects "") select {!(isplayer _x) && !(_x iskindof "logic") && !(_x iskindof "CamCurator") && !(_x iskindof "CBA_NamespaceDummy") && !(_x iskindof "MAN") && !(_x iskindof "Bird") && !(_x iskindof "ThingEffect") && !((typeof _x) isEqualTo "#mark")}; _offset = 0; +ExportObjects = []; { _pos = getposWorld _x; _pos set [2,(_pos select 2)+_offset]; _type = typeof _x; - if (_type isequalto "") then { - _type = _x; + if (_type isequalto "" || (_type find "_IG_Workaround" > -1)) then { + _type = (getmodelinfo _x) select 1; }; _obj = [_type,_pos,getdir _x,[vectorDir _x, vectorup _x]]; ExportObjects pushback _obj; diff --git a/Tools/Export_EdenToCode.sqf b/Tools/Export_EdenToCode.sqf index 704d554..5630f09 100644 --- a/Tools/Export_EdenToCode.sqf +++ b/Tools/Export_EdenToCode.sqf @@ -1,12 +1,12 @@ -_allobj = (allmissionobjects "") select {!(isplayer _x) && !(_x iskindof "logic") && !(_x iskindof "CamCurator") && !(_x iskindof "CBA_NamespaceDummy") && !(_x iskindof "MAN")}; +_allobj = (allmissionobjects "") select {!(isplayer _x) && !(_x iskindof "logic") && !(_x iskindof "CamCurator") && !(_x iskindof "CBA_NamespaceDummy") && !(_x iskindof "MAN") && !(_x iskindof "Bird") && !(_x iskindof "ThingEffect") && !((typeof _x) isEqualTo "#mark")}; _offset = 0; _ExportObjects = []; { _pos = getposWorld _x; _pos set [2,(_pos select 2)+_offset]; _type = typeof _x; - if (_type isequalto "") then { - _type = _x; + if (_type isequalto "" || (_type find "_IG_Workaround" > -1)) then { + _type = (getmodelinfo _x) select 1; }; _obj = [_type,_pos,getdir _x,[vectorDir _x, vectorup _x]]; _ExportObjects pushback _obj;