NeoArmageddon 958 Posted March 16, 2019 Maybe a bit big. Not sure it will fit all playes of previous comcenters. But besides that, it looks gorgeous! Share this post Link to post Share on other sites
topden 62 Posted March 17, 2019 Yes, its big. for those who can and will want to insert it into the mission, and for you there is a smaller option). 3 1 Share this post Link to post Share on other sites
NeoArmageddon 958 Posted March 17, 2019 Nice! You can upload the templates somewhere? Share this post Link to post Share on other sites
topden 62 Posted March 17, 2019 ok. i send u to gitlub later Share this post Link to post Share on other sites
faistaff 0 Posted March 21, 2019 On 3/11/2019 at 10:02 AM, aussie battler said: @NeoArmageddon Love the escape missions, bring on the pain. Thanks for keeping it updated, nice work. Hi aussie, what add-on are you using to get the compass on the top of your screen? Share this post Link to post Share on other sites
topden 62 Posted March 22, 2019 1 hour ago, faistaff said: Hi aussie, what add-on are you using to get the compass on the top of your screen? https://steamcommunity.com/sharedfiles/filedetails/?id=1138842442&searchtext=compass 1 Share this post Link to post Share on other sites
faistaff 0 Posted March 22, 2019 1 hour ago, topden said: https://steamcommunity.com/sharedfiles/filedetails/?id=1138842442&searchtext=compass Thanks topden! Share this post Link to post Share on other sites
aussie battler 94 Posted March 25, 2019 @faistaff with the latest compass version you can press alt & look over your shoulder to get a compass reading from behind: init.sqf Spoiler //_____________________________ Voyager Compass _____________________________ [] execVM "Scripts\fn_voyagerCompass1_1.sqf"; In Scripts\fn_voyagerCompass1_1.sqf Spoiler fnc_removeString = { params ["_from", "_to", "_string"]; _stringArray = _string splitString ""; _stringArray deleteRange [_from, _to]; _stringArray = _stringArray joinString ""; private _returnMe = _stringArray; _returnMe }; fnc_loadSettings = { systemchat "init fnc_loadSettings"; _nc_settings = profileNamespace getVariable "nc_settings"; if (isNil "_nc_settings") then { _nc_settings = [0.499889,0.0346965,3.16098,1.86439,0,1.18143,"C0",0.753254,"PuristaLight",0,1,1,-0.0340903,5,1,0,"B1B1","FFFFFF"]; }; private _returnMe = _nc_settings; _returnMe; }; fnc_saveSettings = { systemchat "init fnc_saveSettings"; params ["_ncX", "_ncY","_ncW","_ncSpan","_ncType","_ncFontSize","_ncAlpha","_ncAlphaNr","_ncFontOption","_ncInvert","_ncShadow","_ncMarkerVisibility","_ncMarkerY","_ncFontOptionNr","_ncColorNr","_ncTypeNr","_ncColorCustom","_ncColor"]; profileNamespace setVariable ["nc_settings",[_ncX,_ncY,_ncW,_ncSpan,_ncType,_ncFontSize,_ncAlpha,_ncAlphaNr,_ncFontOption,_ncInvert,_ncShadow,_ncMarkerVisibility,_ncMarkerY,_ncFontOptionNr,_ncColorNr,_ncTypeNr,_ncColorCustom,_ncColor]]; saveProfileNamespace; systemchat "saving complete"; }; fnc_showSettings = { systemchat "init fnc_showSettings"; disableSerialization; ncColorOption = "f9f9f9"; nc_lb_colorOption = [ ncColorOption, "FFFFFF", "000000"]; nc_lb_fontOption = [ "EtelkaMonospacePro", "EtelkaMonospaceProBold", "EtelkaNarrowMediumPro", "LucidaConsoleB", "PuristaBold", "PuristaLight", "PuristaMedium", "PuristaSemiBold", "RobotoCondensed", "RobotoCondensedBold", "RobotoCondensedLight", "TahomaB"]; folder = [] call fnc_loadSettings; if (isNil "folder") then { folder = [0.499889,0.0346965,3.16098,1.86439,0,1.18143,"C0",0.753254,"PuristaLight",0,1,1,-0.0340903,5,1,0,"B1B1","FFFFFF"]; }; ncX = folder select 0; ncY = folder select 1; ncW = folder select 2; ncSpan = folder select 3; ncType = folder select 4; ncFontSize = folder select 5; ncAlpha = folder select 6; ncAlphaNr = folder select 7; ncFontOption = folder select 8; ncInvert = folder select 9; ncShadow = folder select 10; ncMarkerVisibility = folder select 11; ncMarkerY = folder select 12; ncFontOptionNr = folder select 13; ncColorNr = folder select 14; ncTypeNr = folder select 15; ncColor = folder select 17; nc_barOffsetX = (ncX * safezoneW + safezoneX); nc_barOffsetY = (ncY * safezoneH + safezoneY); nc_marker_offset = ncMarkerY + nc_barOffsetY; nc_dialog_controls = [ [1000,"nc_background",[1,"",[0.29375 * safezoneW + safezoneX,0.225 * safezoneH + safezoneY,0.170156 * safezoneW,0.759 * safezoneH],[-1,-1,-1,-1],[0.07,0.07,0.07,1],[-1,-1,-1,-1],"","RscText"],[]], [1004,"nc_background_char",[1,"",[0.304062 * safezoneW + safezoneX,0.489 * safezoneH + safezoneY,0.149531 * safezoneW,0.264 * safezoneH],[-1,-1,-1,-1],[0.03,0.03,0.03,1],[-1,-1,-1,-1],"","RscText"],[]], [1001,"nc_background_pos",[1,"",[0.304062 * safezoneW + safezoneX,0.28 * safezoneH + safezoneY,0.149531 * safezoneW,0.154 * safezoneH],[-1,-1,-1,-1],[0.03,0.03,0.03,1],[-1,-1,-1,-1],"","RscText"],[]], [1007,"nc_background_features",[1,"",[0.304062 * safezoneW + safezoneX,0.808 * safezoneH + safezoneY,0.149531 * safezoneW,0.11 * safezoneH],[-1,-1,-1,-1],[0.03,0.03,0.03,1],[-1,-1,-1,-1],"","RscText"],[]], [1002,"nc_background_title_pos",[1,"STAND & SPOT",[0.304062 * safezoneW + safezoneX,0.247 * safezoneH + safezoneY,0.149531 * safezoneW,0.033 * safezoneH],[-1,-1,-1,-1],[0.11,0.11,0.11,1],[-1,-1,-1,-1],"","RscText"],[]], [1103,"nc_background_pos_x",[1,"X",[0.314375 * safezoneW + safezoneX,0.291 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[0,0,0,0],[-1,-1,-1,-1],"HORIZONTAL POSITION. Set the correct horizontal position you desire.","RscStructuredText"],[]], [1104,"nc_background_pos_y",[1,"Y",[0.314375 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[0,0,0,0],[-1,-1,-1,-1],"VERTICAL POSITION. Set the correct vertical position you desire.","RscStructuredText"],[]], [1106,"nc_background_pos_w",[1,"W",[0.314375 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[0,0,0,0],[-1,-1,-1,-1],"WIDTH. Exact range of visibility for points.","RscStructuredText"],[]], [1107,"nc_background_pos_s",[1,"S",[0.314375 * safezoneW + safezoneX,0.39 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[0,0,0,0],[-1,-1,-1,-1],"SPAN. Change the distance between the points.","RscStructuredText"],[]], [1003,"nc_background_title_char",[1,"CHARACTERISTICS",[0.304062 * safezoneW + safezoneX,0.456 * safezoneH + safezoneY,0.149531 * safezoneW,0.033 * safezoneH],[-1,-1,-1,-1],[0.11,0.11,0.11,1],[-1,-1,-1,-1],"","RscText"],[]], [1100,"nc_background_fontSize",[1,"sS",[0.314375 * safezoneW + safezoneX,0.544 * safezoneH + safezoneY,0.020625 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[0,0,0,0],[-1,-1,-1,-1],"SIZE-FONT. Determines the size of the individual cardinal points.","RscStructuredText"],[]], [1102,"nc_background_fontAlpha",[1,"A",[0.314375 * safezoneW + safezoneX,0.577 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH],[1,1,1,0.5],[0,0,0,0],[-1,-1,-1,-1],"TRANSPARENCY. Set the visibility of the whole compass.","RscStructuredText"],[]], [1109,"nc_background_fontColor",[1,"#",[0.314375 * safezoneW + safezoneX,0.621 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH],[1,0,0,1],[0,0,0,0],[-1,-1,-1,-1],"COLOR-CODE. put #HEX color here for custom color.","RscStructuredText"],[]], [1110,"nc_background_shadow",[1,"Shadow",[0.402031 * safezoneW + safezoneX,0.709 * safezoneH + safezoneY,0.0360937 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[0,0,0,0],[-1,-1,-1,-1],"SHADOW. Enable the dropshadow for the cardinal points.","RscStructuredText"],[]], [1111,"nc_background_invert",[1,"Invert",[0.355625 * safezoneW + safezoneX,0.709 * safezoneH + safezoneY,0.0309375 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[0,0,0,0],[-1,-1,-1,-1],"INVERT. Switch between the option of the needles being at the top or bottom of the cardinal points.","RscStructuredText"],[]], [1006,"nc_background_title_features",[1,"MARKERS & FEATURES",[0.304062 * safezoneW + safezoneX,0.775 * safezoneH + safezoneY,0.149531 * safezoneW,0.033 * safezoneH],[-1,-1,-1,-1],[0.11,0.11,0.11,1],[-1,-1,-1,-1],"","RscText"],[]], [1112,"nc_background_pos_markerY",[1,"Y",[0.314375 * safezoneW + safezoneX,0.83 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[0,0,0,0],[-1,-1,-1,-1],"VERTICAL OFFSET. Set the correct vertical offset you desire.","RscStructuredText"],[]], [1113,"nc_background_visibility",[1,"Visbility",[0.402031 * safezoneW + safezoneX,0.874 * safezoneH + safezoneY,0.0360937 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[0,0,0,0],[-1,-1,-1,-1],"VISIBILITY. Toggle it.","RscStructuredText"],[]], [1114,"nc_background_info_soon",[1,"more features soon",[0.314375 * safezoneW + safezoneX,0.874 * safezoneH + safezoneY,0.0825 * safezoneW,0.022 * safezoneH],[1,1,1,0.3],[0,0,0,0],[-1,-1,-1,-1],"INFO. Future updates coming. Stay tuned","RscText"],[]], [1115,"nc_background_impressum",[1,"Voyager Compass 1.1",[0.304062 * safezoneW + safezoneX,0.94 * safezoneH + safezoneY,0.0825 * safezoneW,0.022 * safezoneH],[1,1,1,0.3],[0,0,0,0],[-1,-1,-1,-1],"Creator: Unknown_GTX & Flax","RscText"],[]], [2400,"nc_save",[1,"SAVE",[0.412344 * safezoneW + safezoneX,0.94 * safezoneH + safezoneY,0.04125 * safezoneW,0.022 * safezoneH],[0.07,0.07,0.07,1],[0.93,0.93,0.93,1],[0.07,0.07,0.07,1],"Permanently save changes. (stays even after restarting the game)","RscButton"],[], ["profileNamespace setVariable ['nc_settings',folder]; saveProfileNamespace;"]], [2401,"nc_close",[1,"X",[0.391719 * safezoneW + safezoneX,0.94 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH],[0.07,0.07,0.07,1],[0.93,0.93,0.93,1],[-1,-1,-1,-1],"Close without save.","RscButton"],[], ["(uiNamespace getVariable 'nc_dialogDisplay') closeDisplay 2"]], [2800,"ncShadow",[1,"",[0.391719 * safezoneW + safezoneX,0.709 * safezoneH + safezoneY,0.0103125 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"SHADOW. Enable the dropshadow for the cardinal points.","RscCheckBox"],[], [ncShadow, "folder set [10, (_this select 1)]; switch (_this select 1) do { case (0): { ncShadow = 0; }; case (1): { ncShadow = 2; };}; _comp = [ncType, ncInvert, ncFontSize, ncShadow, ncFontOption, ncAlpha, ncColorOption] call fnc_compileCompass;"]], [1901,"ncX",[1,"",[0.340156 * safezoneW + safezoneX,0.302 * safezoneH + safezoneY,0.0979687 * safezoneW,0.011 * safezoneH],[-1,-1,-1,-1],[1,1,1,1],[-1,-1,-1,-1],"HORIZONTAL POSITION. Set the correct horizontal position you desire.","RscSlider"],[], [[/*range*/0,1, ncX], "folder set [0, (_this select 1)]; nc_barOffsetX = ((_this select 1) * safezoneH + safezoneY)"]], [1900,"nc_y",[1,"",[0.340156 * safezoneW + safezoneX,0.335 * safezoneH + safezoneY,0.0979687 * safezoneW,0.011 * safezoneH],[-1,-1,-1,-1],[1,1,1,1],[-1,-1,-1,-1],"VERTICAL POSITION. Set the correct vertical position you desire.","RscSlider"],[], [[/*range*/0,1, ncY], "folder set [1, (_this select 1)]; nc_barOffsetY = ((_this select 1) * safezoneH + safezoneY); nc_marker_offset = ncMarkerY + nc_barOffsetY;"]], [1902,"nc_w",[1,"",[0.340156 * safezoneW + safezoneX,0.368 * safezoneH + safezoneY,0.0979687 * safezoneW,0.011 * safezoneH],[-1,-1,-1,-1],[1,1,1,1],[-1,-1,-1,-1],"WIDTH. Exact range of visibility for points.","RscSlider"],[], [[/*range*/0,5, ncW], "folder set [2, (_this select 1)]; ncW = (_this select 1)"]], [1903,"nc_s",[1,"",[0.340156 * safezoneW + safezoneX,0.401 * safezoneH + safezoneY,0.0979687 * safezoneW,0.011 * safezoneH],[-1,-1,-1,-1],[1,1,1,1],[-1,-1,-1,-1],"SPAN. Change the distance between the points.","RscSlider"],[], [[/*range*/1,3, ncSpan], "folder set [3, (_this select 1)]; ncSpan = (_this select 1)"]], [2100,"nc_type",[1,"",[0.319531 * safezoneW + safezoneX,0.511 * safezoneH + safezoneY,0.118594 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"TYPE. Work in progress.","RscCombo"],[], [["Battlegrounds","Arma 3"], "folder set [15, (_this select 1)]; ncType = (_this select 1)", ncTypeNr]], [1904,"nc_fontSize",[1,"",[0.340156 * safezoneW + safezoneX,0.555 * safezoneH + safezoneY,0.0979687 * safezoneW,0.011 * safezoneH],[-1,-1,-1,-1],[1,1,1,1],[-1,-1,-1,-1],"SIZE-FONT. Determines the size of the individual cardinal points.","RscSlider"],[], [[/*range*/0.8,1.4, ncFontSize], "folder set [5, (_this select 1)]; ncFontSize = (_this select 1); _comp = [ncType, ncInvert, ncFontSize, ncShadow, ncFontOption, ncAlpha, ncColorOption] call fnc_compileCompass;"]], [1905,"nc_fontAlpha",[1,"",[0.340156 * safezoneW + safezoneX,0.588 * safezoneH + safezoneY,0.0979687 * safezoneW,0.011 * safezoneH],[-1,-1,-1,-1],[1,1,1,1],[-1,-1,-1,-1],"TRANSPARENCY. Set the visibility of the whole compass.","RscSlider"],[], [[/*range*/0,1,ncAlphaNr], "folder set [7, (_this select 1)]; _clr = [0,0,0,(_this select 1)] call BIS_fnc_ColorRGBAtoHTML; _cutBelow = [0,1, _clr] call fnc_removeString; _cutAbove = [2,6, _cutBelow] call fnc_removeString; folder set [6, _cutAbove]; ncAlpha = _cutAbove; _comp = [ncType, ncInvert, ncFontSize, ncShadow, ncFontOption, ncAlpha, ncColorOption] call fnc_compileCompass;"]], [2103,"nc_font",[1,"",[0.319531 * safezoneW + safezoneX,0.665 * safezoneH + safezoneY,0.118594 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[1,1,1,1],[-1,-1,-1,-1],"FONT. Switch between different looks with the font.","RscCombo"],[], [["EtelkaMonospacePro","EtelkaMonospaceProBold","EtelkaNarrowMediumPro","LucidaConsoleB","PuristaBold","PuristaLight","PuristaMedium","PuristaSemiBold","RobotoCondensed","RobotoCondensedBold","RobotoCondensedLight","TahomaB"], "folder set [13, (_this select 1)];folder set [8, (nc_lb_fontOption select (_this select 1))]; ncFontOptionNr = (_this select 1); ncFontOption = nc_lb_fontOption select (_this select 1); _comp = [ncType, ncInvert, ncFontSize, ncShadow, ncFontOption, ncAlpha, ncColorOption] call fnc_compileCompass;", ncFontOptionNr]], [1005,"ncColor_code",[1,"",[0.326719 * safezoneW + safezoneX,0.621 * safezoneH + safezoneY,0.04125 * safezoneW,0.022 * safezoneH],[1,1,1,1],[0.03,0.03,0.03,1],[-1,-1,-1,-1],"","RscEdit"],[]], [2102,"ncColor",[1,"",[0.371094 * safezoneW + safezoneX,0.621 * safezoneH + safezoneY,0.0670312 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"COLOR. Choose between predefined colors.","RscCombo"],[], [["Custom","White","Black"], "folder set [14, (_this select 1)]; folder set [17, (nc_lb_colorOption select (_this select 1))]; ncColorOption = nc_lb_colorOption select (_this select 1); _comp = [ncType, ncInvert, ncFontSize, ncShadow, ncFontOption, ncAlpha, ncColorOption] call fnc_compileCompass;", ncColorNr]], [2801,"nc_invert",[1,"",[0.345312 * safezoneW + safezoneX,0.709 * safezoneH + safezoneY,0.0103125 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"INVERT. Switch between the option of the needles being at the top or bottom of the cardinal points.","RscCheckBox"],[], [ncInvert, "folder set [9, (_this select 1)]; ncInvert = (_this select 1); _comp = [ncType, ncInvert, ncFontSize, ncShadow, ncFontOption, ncAlpha, ncColorOption] call fnc_compileCompass;"]], [1906,"nc_markerY",[1,"",[0.340156 * safezoneW + safezoneX,0.841 * safezoneH + safezoneY,0.0979687 * safezoneW,0.011 * safezoneH],[-1,-1,-1,-1],[1,1,1,1],[-1,-1,-1,-1],"VERTICAL OFFSET. Set the correct vertical offset you desire.","RscSlider"],[], [[/*range*/-2,2, ncMarkerY], "folder set [12, (_this select 1)]; nc_marker_offset = (_this select 1) + nc_barOffsetY; ncMarkerY = (_this select 1);"]], [2802,"nc_visibility",[1,"",[0.391719 * safezoneW + safezoneX,0.874 * safezoneH + safezoneY,0.0103125 * safezoneW,0.022 * safezoneH],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"VISIBILITY. Toggle it.","RscCheckBox"],[], [ncMarkerVisibility, "folder set [11, (_this select 1)]; ncMarkerVisibility = (_this select 1)"]] ]; with uiNamespace do { nc_dialogDisplay = findDisplay 46 createDisplay "RscDisplayEmpty"; }; { _idc = _x select 0; _type = (_x select 2) select 7; _pos = (_x select 2) select 2; _tooltip = (_x select 2)select 6; _background_color = (_x select 2) select 4; _txt = (_x select 2) select 1; _display = uiNamespace getVariable "nc_dialogDisplay"; switch (_type) do { case ("RscText"): { _ctrl = _display ctrlCreate [_type, _idc]; _ctrl ctrlSetText _txt; //hint format ["x: %1, x: %2, x: %3, x: %4", _posx, _posy, _posw, _posh]; _ctrl ctrlSetTextColor [1, 1, 1, 1]; _ctrl ctrlSetBackgroundColor _background_color; }; case ("RscStructuredText"): { _ctrl = _display ctrlCreate [_type, _idc]; _ctrl ctrlSetText _txt; _ctrl ctrlSetTextColor [1, 1, 1, 1]; _ctrl ctrlSetBackgroundColor _background_color; }; case ("RscSlider"): { _sliderRange_start = ((_x select 4) select 0) select 0; _sliderRange_end = ((_x select 4) select 0) select 1; _sliderPos = ((_x select 4) select 0) select 2; _func = compile ((_x select 4) select 1); _ctrl = _display ctrlCreate [_type, _idc]; _ctrl sliderSetRange [_sliderRange_start, _sliderRange_end]; _ctrl sliderSetPosition _sliderPos; _ctrl ctrlAddEventHandler ["SliderPosChanged",_func]; }; case ("RscCombo"): { _ctrl = _display ctrlCreate [_type, _idc]; _func = compile ((_x select 4) select 1); for "_i" from 0 to (count ((_x select 4) select 0)-1) do { _lbItem = ((_x select 4) select 0) select _i; _index = _ctrl lbAdd _lbItem; }; _indexy = (_x select 4) select 2; _ctrl lbSetCurSel _indexy; _ctrl ctrlAddEventHandler ["LBSelChanged",_func]; }; case ("RscCheckBox"): { _ctrl = _display ctrlCreate [_type, _idc]; if ((_x select 4) select 0 == 1) then { _ctrl cbSetChecked true; }; _func = compile ((_x select 4) select 1); _ctrl ctrlAddEventHandler ["CheckedChanged",_func]; if (ncInvert == 1) then { _ctrl ctrlSetChecked true; }else{_ctrl ctrlSetChecked false;}; }; case ("RscButton"): { _ctrl = _display ctrlCreate [_type, _idc]; _ctrl ctrlSetText _txt; _func = compile ((_x select 4) select 0); _ctrl ctrlAddEventHandler ["ButtonClick",_func]; }; case ("RscEdit"): { _ctrl = _display ctrlCreate [_type, _idc]; _ctrl ctrlSetTextColor [1, 1, 1, 1]; _ctrl ctrlSetBackgroundColor [0, 0, 0, 1]; _ctrl ctrlAddEventHandler ["KeyUp",{ncColorOption = ctrlText ((uiNamespace getVariable "nc_dialogDisplay") displayCtrl 1005); _comp = [ncType, ncInvert, ncFontSize, ncShadow, ncFontOption, ncAlpha, ncColorOption] call fnc_compileCompass;}]; _ctrl ctrlSetText ncColorOption; }; }; _ctrl = _display displayCtrl _idc; _ctrl ctrlSetPosition _pos; _ctrl ctrlCommit 0; _ctrl ctrlSetTooltip _tooltip; } forEach nc_dialog_controls; }; fnc_showCompass = { systemchat "init fnc_showCompass"; disableSerialization; _nc_settings = [] call fnc_loadSettings; if (isNil "_nc_settings") then { _nc_settings = [0.499889,0.0346965,3.16098,1.86439,0,1.18143,"C0",0.753254,"PuristaLight",0,1,1,-0.0340903,5,1,0,"B1B1","FFFFFF"]; }; ncX = _nc_settings select 0; ncY = _nc_settings select 1; ncW = _nc_settings select 2; ncSpan = _nc_settings select 3; ncType = _nc_settings select 4; ncFontSize = _nc_settings select 5; ncAlpha = _nc_settings select 6; ncFontOption = _nc_settings select 8; ncInvert = _nc_settings select 9; ncShadow = _nc_settings select 10; ncMarkerVisibility = _nc_settings select 11; ncMarkerY = _nc_settings select 12; ncColorOption = "f9f9f9"; nc_barOffsetX = (ncX * safezoneW + safezoneX); nc_barOffsetY = (ncY * safezoneH + safezoneY); nc_marker_offset = ncMarkerY + nc_barOffsetY; ("compassTitle" call BIS_fnc_rscLayer) cutRsc ["RscTitleDisplayEmpty", "PLAIN"]; switch (ncShadow) do { case (0): { ncShadow = 0; }; case (1): { ncShadow = 2; };}; _comp = [ncType, ncInvert, ncFontSize, ncShadow, ncFontOption, ncAlpha, ncColorOption] call fnc_compileCompass; /// rendering of compass allUserMarkers = []; currentMarkers = []; combMarkers = []; ["0", "onEachFrame",{ _compassNeedle = ((uiNamespace getVariable "RscTitleDisplayEmpty") displayCtrl 3399); _compassNeedle ctrlSetPosition [nc_barOffsetX - (0.1/2),nc_barOffsetY,0.1,0.015 * safezoneH]; _compassNeedle ctrlCommit 0; { _ctrl = _x select 0; _pos = (_x select 1) / 100; _degreeControl = ((uiNamespace getVariable "RscTitleDisplayEmpty") displayCtrl _ctrl); _sPos = screenToWorld [0.5,0.5]; _pPos = getPos player; _playerDir = (((((_sPos select 0) - (_pPos select 0)) atan2 ((_sPos select 1) - (_pPos select 1))) + 360) % 360)/100; _controlPos = (ctrlPosition _degreeControl) select 0; if (_controlPos > ((ncW / 10 * safezoneW + safezoneX) - (0.1/2)) && _controlPos < (1 - ((ncW / 10 * safezoneW + safezoneX))- (0.1/2))) then { _degreeControl ctrlSetPosition [ nc_barOffsetX + ((_pos - _playerDir) / ncSpan) - (0.1/2),nc_barOffsetY,0.1,0.4]; }else{ _degreeControl ctrlSetPosition [ nc_barOffsetX + ((_pos - _playerDir) / ncSpan) - (0.1/2),nc_barOffsetY,0.0,0.4]; }; _degreeControl ctrlCommit 0; } forEach compass_pos; { _ctrl = _x select 0; _marker = _x select 1; _ctrl2 = _ctrl + 100; _playerDir = (getDir player)/100; _relativeDir = ([player, markerPos _marker] call BIS_fnc_relativeDirTo)/100; _MarkerControl = ((uiNamespace getVariable "RscTitleDisplayEmpty") displayCtrl _ctrl); _MarkerControl2 = ((uiNamespace getVariable "RscTitleDisplayEmpty") displayCtrl _ctrl2); _controlPos = (ctrlPosition _MarkerControl) select 0; _controlPos2 = (ctrlPosition _MarkerControl2) select 0; if (_controlPos > (((ncW / 10 * safezoneW + safezoneX) - (0.1/2)) * ncMarkerVisibility) && _controlPos < (((1 - (ncW / 10 * safezoneW + safezoneX))- (0.1/2)) * ncMarkerVisibility)) then { _MarkerControl ctrlSetPosition [ nc_barOffsetX + (_relativeDir / ncSpan) - (0.05/2),nc_marker_offset,0.05,0.09]; }else{ _MarkerControl ctrlSetPosition [ nc_barOffsetX + (_relativeDir / ncSpan) - (0.05/2),nc_marker_offset,0.00,0.09]; }; if (_controlPos2 > (((ncW / 10 * safezoneW + safezoneX) - (0.1/2)) * ncMarkerVisibility) && _controlPos2 < ((((1 - (ncW / 10 * safezoneW + safezoneX))- (0.1/2))) * ncMarkerVisibility)) then { _MarkerControl2 ctrlSetPosition [ nc_barOffsetX + (_relativeDir / ncSpan) - (3.6/ncSpan) - (0.05/2),nc_marker_offset,0.05,0.09]; }else{ _MarkerControl2 ctrlSetPosition [ nc_barOffsetX + (_relativeDir / ncSpan) - (3.6/ncSpan) - (0.05/2),nc_marker_offset,0.00,0.09]; }; _MarkerControl ctrlCommit 0; _MarkerControl2 ctrlCommit 0; } forEach combMarkers; //hint format ["degr: %1", getDir player]; }] call BIS_fnc_addStackedEventHandler; /// waitUntil {ncMarkerVisibility == 1;}; while {true} do { /// create user array [marker] { if !(_x in currentMarkers) then { _a = toArray _x; _a resize 15; if (toString _a == "_USER_DEFINED #") then { allUserMarkers pushBack _x; }; }; } forEach allMapMarkers; /// /// create double array ([marker], [idc,marker]) { if !(_x in currentMarkers) then { _display = uiNamespace getVariable "RscTitleDisplayEmpty"; _index = allUserMarkers find _x; _idc = 5500 + _index; _edit = _display ctrlCreate ["RscStructuredText", _idc]; _edit2 = _display ctrlCreate ["RscStructuredText", _idc + 100]; _edit ctrlSetPosition [-2, -2, 0.05, 0.05]; _edit2 ctrlSetPosition [-2, -2, 0.05, 0.05]; _img = getText (configfile >> "cfgMarkers" >> markerType _x >> "icon"); _txt = parseText format ["<img image='%1' align='center'/>", _img]; _edit ctrlSetStructuredText _txt; _edit2 ctrlSetStructuredText _txt; _edit ctrlCommit 0; _edit2 ctrlCommit 0; currentMarkers pushBack _x; combMarkers pushBack [_idc, _x]; //}; systemChat format ["created: %1", _x]; }; } forEach allUserMarkers; /// /// delete IF marker from [idc,marker] aint alive anymore { if !(_x in allMapMarkers) then { allUserMarkers = allUserMarkers - [_x]; currentMarkers = currentMarkers - [_x]; }; } forEach allUserMarkers; { if !((_x select 1) in allUserMarkers) then { _display = uiNamespace getVariable "RscTitleDisplayEmpty"; ctrlDelete (_display displayCtrl (_x select 0)); ctrlDelete (_display displayCtrl ((_x select 0)+100)); combMarkers = combMarkers - [_x]; }; } forEach combMarkers; /// sleep 0.2; }; }; fnc_compileCompass = { /// coordinates of compass angles compass_pos = [ [3400, -225 ,"SE" ], [3401, -210 ,"140"], [3402, -195 ,"165"], [3403, -180 ,"S" ], [3405, -165 ,"195"], [3406, -150 ,"210"], [3407, -135 ,"SW" ], [3408, -120 ,"240"], [3409, -105 ,"255"], [3410, -090 ,"W" ], [3421, -075 ,"285"], [3422, -060 ,"300"], [3423, -045 ,"NW" ], [3424, -030 ,"330"], [3425, -015 ,"345"], [3426, 0 ,"N" ], [3427, 015 ,"15" ], [3428, 030 ,"30" ], [3429, 045 ,"NE" ], [3430, 060 ,"60" ], [3431, 075 ,"75" ], [3432, 090 ,"E" ], [3433, 105 ,"105" ], [3434, 120 ,"120" ], [3435, 135 ,"SE" ], [3436, 150 ,"150" ], [3437, 165 ,"165" ], [3438, 180 ,"S" ], [3439, 195 ,"195" ], [3440, 210 ,"210" ], [3441, 225 ,"SW" ], [3442, 240 ,"240" ], [3443, 255 ,"255" ], [3445, 270 ,"W" ], [3446, 285 ,"285" ], [3447, 300 ,"300" ], [3448, 315 ,"NW" ], [3449, 330 ,"330" ], [3450, 345 ,"345" ], [3451, 360 ,"N" ], [3452, 375 ,"15" ], [3453, 390 ,"30" ], [3454, 405 ,"NE" ], [3455, 420 ,"60" ], [3456, 435 ,"75" ], [3457, 450 ,"E" ], [3458, 465 ,"105" ], [3459, 480 ,"120" ], [3460, 495 ,"SE" ], [3461, 510 ,"150" ], [3462, 525 ,"165" ], [3463, 540 ,"S" ], [3464, 555 ,"195" ], [3465, 570 ,"210" ], [3466, 585 ,"SW" ] ]; compass_pos_a3 = [ [3410, 0 ,"no" ] ]; /// _nc_lb_type = [compass_pos, compass_pos_a3]; disableSerialization; params ["_compassType", "_ncNeedle","_ncFontSize","_ncShadow","_ncFontOption", "_ncAlpha", "_ncColorOption"]; switch (_ncShadow) do { case (0): { _ncShadow = 0; }; case (1): { _ncShadow = 2; }; default { _ncShadow = 2; };}; _display = uiNamespace getVariable "RscTitleDisplayEmpty"; for "_i" from 3399 to 3499 do { ctrlDelete (_display displayCtrl _i); }; _compass = _nc_lb_type select _compassType; _compassNeedle = _display ctrlCreate ["RscStructuredText", 3399]; _compassNeedle ctrlSetPosition [-2, -2, 0.05, 0.05]; _compassNeedle ctrlSetStructuredText parseText format["<t shadow=2><t shadowColor='#ff0000' align='center' size='%1' color='#f9f9f9'>|</t>", 0.65]; for "_i" from 0 to (count _compass - 1) do { _idc = ((_compass select _i) select 0); _dir = ((_compass select _i) select 2); _arrayIndex = _i;//_compassType find _x; nc_sizeX = 0.65 * _ncFontSize; if (_arrayIndex % 6 == 3) then { nc_sizeX = 1 * _ncFontSize; }; if (_arrayIndex % 6 == 0) then { nc_sizeX = 0.8 * _ncFontSize; }; _edit = _display ctrlCreate ["RscStructuredText", _idc]; _edit ctrlSetPosition [-2, -2, 0.05, 0.05]; _var_needle = ""; switch (_ncNeedle) do { case (1): { _var_needle = _dir + "<br />|</t>"; }; case (0): { _var_needle = "|<br />" + _dir + "</t>"; }; }; _edit ctrlSetStructuredText parseText ("<t shadow=" + str _ncShadow + "><t shadowColor='#000000' align='center' size='" + str nc_sizeX + "' font='" + _ncFontOption + "' color='#" + _ncAlpha + _ncColorOption + "'>" + _var_needle); _edit ctrlCommit 0; }; }; waitUntil {!isNull player}; [] spawn fnc_showCompass; [] spawn { while {true} do { waitUntil {!isNull (findDisplay 49)}; disableSerialization; _display = findDisplay 49; _ctrl = _display ctrlCreate ["RscButton", 3399]; _ctrl ctrlSetPosition [ (1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)), (2.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + safezoneY), (15 * (((safezoneW / safezoneH) min 1.2) / 40)), (1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25))]; _ctrl ctrlSetActiveColor [0.204,0.286,0.369,1]; _ctrl ctrlSetText "COMPASS OPTIONS"; _ctrl ctrlCommit 0; _ctrl buttonSetAction "(findDisplay 49) closeDisplay 1; [] call fnc_showSettings;"; waitUntil{isNull (findDisplay 49)}; }; }; Credits to the great @Unknown_GTX Share this post Link to post Share on other sites
aussie battler 94 Posted March 25, 2019 @topden Are you exporting the escape base template with relative position & dropping them into the templates like this? Spoiler private _objects = [ ["Land_AncientHead_01_F",[-0.447754,-12.2441,0],180,[true,false]], ["Land_AncientStatue_01_F",[-14.0044,-0.165527,0],284.614,[true,false]], ["Land_AncientStatue_01_F",[12.9238,2.74658,0],80.3488,[true,false]], ["Land_AncientStatue_01_F",[0.0488281,15.7905,0],5.83839,[true,false]], ["Land_AncientStatue_02_F",[-6.80859,-12.3301,0],269.078,[true,false]], ["Land_AncientStatue_02_F",[7.09717,-13.1284,0],91.2094,[true,false]], ["CUP_A2_p_fiberplant_ep1",[12.9282,2.64453,0],0,[true,false]], ["CUP_A2_p_fiberplant_ep1",[-13.062,-0.0585938,0],0,[true,false]], ["CUP_A2_p_fiberplant_ep1",[-6.83789,-11.8901,0],0,[true,false]], ["CUP_A2_p_fiberplant_ep1",[0.144531,15.3569,0],0,[true,false]], ["CUP_A2_p_fiberplant_ep1",[6.91992,-13.3188,0],0,[true,false]], ["GraveCross1",[-9.59521,10.9609,0],0,[true,false]], ["GraveCross1",[8.21924,11.3696,0],0,[true,false]] ]; private _center = [_position select 0, _position select 1, 0]; { private _object = (_x select 0) createVehicle [0,0,0]; _object setDir (_x select 2); _object setPosATL (_center vectorAdd (_x select 1)); _object enableSimulationGlobal ((_x select 3) select 0); _object allowDamage ((_x select 3) select 1); } forEach _objects; }; Or are you using @NeoArmageddon's Arma3 Eden addon? Share this post Link to post Share on other sites
topden 62 Posted March 25, 2019 1 hour ago, aussie battler said: Or are you using @NeoArmageddon's Arma3 Eden addon? yes 1 Share this post Link to post Share on other sites
aussie battler 94 Posted March 25, 2019 Thanks @topden Add your custom logo to the base flags: + Create a folder "flag" in the root directory of your misson file. Drop in your paa logo & call it logo.paa (jpg might work, PAA is the best). + open each template in Escape.Ruha\functions\Templates + search for flag & add this line after the flag is created: _object forceFlagTexture "flag\logo.paa"; + Make sure you change the first word to _obj or _object (depending on what the flag is called). example: Spoiler _pos = [(_middlePos select 0) + 3.2, (_middlePos select 1) - 6.5, 0]; //_object = "Flag_CSAT_F" createVehicle _pos; _object = createVehicle ["FlagPole_F", _pos, [], 0, "NONE"]; _object setPos _pos; _object setDir 90; _object forceFlagTexture "flag\logo.paa"; or Spoiler _pos = [_center,_center vectorAdd [-0.351563,-4.73633,0],_rotation] call _fnc_rotatePos; _obj = "Flag_Altis_F" createvehicle _pos; _obj setVectorDirAndUp [[0.684954,-0.728586,0],[0,-0,1]]; _obj setdir ((getdir _obj) + _rotation); _obj setPosATL _pos; _obj forceFlagTexture "flag\logo.paa"; To create a flag .paa: + save your logo as a png 512x256px @ 72dpi. + open the png in Texture Viewer http://www.armaholic.com/page.php?id=14435 + Save the file as logo.paa 1 Share this post Link to post Share on other sites
jpmisme1998 0 Posted March 26, 2019 (edited) I am currently having an issue with the mod. I played this a while ago with my friend and decided to play it again. Reinstalled Arma and our mods. CUP, Arma Enhanced Movement, RHS, and CBA. I host the server on my pc. I load in to the game just fine. But my friend always ends up spawning in the air and falls to his death instantly. He even got stuck under the map a few times. Anyone have any possible reasons why this shit keeps happening? {-} Edit: Got it working by uninstaling the mods, reinstalling them on both my and my friends computer. Edited March 28, 2019 by jpmisme1998 Updating that I had the issue fixed Share this post Link to post Share on other sites
aussie battler 94 Posted March 27, 2019 7 hours ago, jpmisme1998 said: I am currently having an issue with the mod. I played this a while ago with my friend and decided to play it again. Reinstalled Arma and our mods. CUP, Arma Enhanced Movement, RHS, and CBA. I host the server on my pc. I load in to the game just fine. But my friend always ends up spawning in the air and falls to his death instantly. He even got stuck under the map a few times. Anyone have any possible reasons why this shit keeps happening? Did you copy the mission.sqm correctly, the part where players spawn in? Grab it here & compare the "groups" section to your own misson.sqm: http://escape.anzp.de/co10_Escape_1.9.7z What map are you playing? Does it happen every time he spawns in or sometimes? Some maps (like the rocks on Malden or around the underground tunnels in Esseker) are glitchy as fook. The game tries to get ground level but the maps ground level config is a bit messed up. I am guessing you have a map problem nothing to do with escape. 1 Share this post Link to post Share on other sites
jpmisme1998 0 Posted March 27, 2019 23 hours ago, aussie battler said: Did you copy the mission.sqm correctly, the part where players spawn in? Grab it here & compare the "groups" section to your own misson.sqm: http://escape.anzp.de/co10_Escape_1.9.7z What map are you playing? Does it happen every time he spawns in or sometimes? Some maps (like the rocks on Malden or around the underground tunnels in Esseker) are glitchy as fook. The game tries to get ground level but the maps ground level config is a bit messed up. I am guessing you have a map problem nothing to do with escape. Happens with Cherno, takistan, and Altis. I will defiantly give your suggestion with the Mission.sqm a go. Thanks for the help. I will edit this if it works. {-} Edit: Got it working by uninstaling the mods, reinstalling them on both my and my friends computer. Share this post Link to post Share on other sites
NeoArmageddon 958 Posted March 27, 2019 15 hours ago, jpmisme1998 said: I am currently having an issue with the mod. I played this a while ago with my friend and decided to play it again. Reinstalled Arma and our mods. CUP, Arma Enhanced Movement, RHS, and CBA. I host the server on my pc. I load in to the game just fine. But my friend always ends up spawning in the air and falls to his death instantly. He even got stuck under the map a few times. Anyone have any possible reasons why this shit keeps happening? Make sure your friend has the addon loaded correctly and that he has the same version of terrains (and core). If the problem persists use a dedicated server (or start a server in the background with "-server") and the problem should be gone. Also make sure you don't start Arma with -init commandline param. Some launchers add this automatically and it seems to break some eventhandlers ingame. 1 Share this post Link to post Share on other sites
aussie battler 94 Posted March 27, 2019 @NeoArmageddon Thanks for all the hard work you put into this mod, you have done a great job. I noticed that you had world configs for Tembelan Island. Just wondering if there is a mission.sqm for it?https://gitlab.anzp.de/escape/co10_Escape/blob/master/Islands/Tembelan/WorldConfig.sqf Share this post Link to post Share on other sites
NeoArmageddon 958 Posted March 27, 2019 1 hour ago, aussie battler said: @NeoArmageddon Thanks for all the hard work you put into this mod, you have done a great job. Thank you 😊 1 hour ago, aussie battler said: I noticed that you had world configs for Tembelan Island. Just wondering if there is a mission.sqm for it?https://gitlab.anzp.de/escape/co10_Escape/blob/master/Islands/Tembelan/WorldConfig.sqf We received config and mission.sqm as a donation but unfortunatly the sqm's were binarised and as such useless for us. I will give @scruffy a headsup about Tembelan. 1 Share this post Link to post Share on other sites
Tomka68 1 Posted March 31, 2019 WOW realy nice mod great work , can you make an version with IFA 3 ? like you had done it with RHS ? I had try to do an mission with the Init , Config´s ... files from your Repository at GitLab but i doesn't work 😞 ( or i can´t do it right ) 1 Share this post Link to post Share on other sites
aussie battler 94 Posted April 3, 2019 Hey @NeoArmageddon Loving Escape, we cycle through 7 maps at the moment on our server. I am testing out Diyala & everything works except for random town ai spawning in. I noticed that the VillageMarkers.sqf code was a bit different from other Escape 10 missions. Diyala code: a3e_villageMarkers set [0, [[517.986,555.911,0], 205.146, "RECTANGLE", [14.6549,35.8956]]]; Other code: a3e_villageMarkers set [0, [[5704.45,8215.09,0], -98.5552, "RECTANGLE", [40,40]]]; The [14.6549,35.8956] is rounded off in other missions. I tried to round it off to [80,80] but still no ai in towns. Would it be better to if I did the positions again or do you think that I am looking in the wrong place? The server log error: Spoiler _group createUnit [_infantryType, _spawnPos, []> Error position: <createUnit [_infantryType, _spawnPos, []> Error Type Number,Not a Number, expected Number File functions\DRN\fn_AmbientInfantry.sqf [drn_fnc_AmbientInfantry], line 129 Error in expression < units _this select 0; I would love to see the map port tutorial by scruffy, the first page link sends my back on a loop. Tipps, Tricks and Tutorials Port to another terrains by Scruffy EDIT: my bad..... I was using TADST to run the test server & it caused issues with ai spawning. Put the same files on the dedicated box & ai were everywhere 🙂 Share this post Link to post Share on other sites
DPM 8 Posted April 3, 2019 That confused me too, but if you scroll down the page to Scruffy's 3rd post it contains the porting information. Also the rounding up doesn't matter, just make sure you haven't deleted any of the needed comas, quotation marks etc when converting from the TE_villagemarkers mission. Sometimes when sending them to rpt the time code changes halfway through which goes unnoticed when copying the data into the villagemarkers.sqf and might get missed when fixing it in notepad, depending on how you do it. Edit: After reading that back I was under the impression you were porting the mission to Diyala. Having seen it's already been ported, I booted it up and teleported around a few towns and the AI were spawning fine for me. 1 1 Share this post Link to post Share on other sites
NeoArmageddon 958 Posted April 5, 2019 10 Internetpoints for the person locating the error with the AI spawn when mission is played with TADST and why only on DS everything runs as expected 😁😁😁 Share this post Link to post Share on other sites
Wurstkoffer 6 Posted April 5, 2019 Wow @topden, these com centers look absolutely sick! Would love to see them in the mission. The weapon depots may also be a bit larger. Sometimes I miss the possibility for close quarter combat. Often it is very easy to eliminate all enemies from a long distance. However, I realize that this is a bigger challenge for the code to find larger flats on the map. The mortars are another subject. A mortar launcher and a few sandbags somewhere in the wilderness I find quite unrealistic. I once played around with the Map Builder, but unfortunately I am too unimaginative. For the motor pools I would know a small improvement possibility. They should contain such a small repair station (Land_RepairDepot_01_tan_F) where you can repair your vehicle completely. This would make absolute sense and give the motor pools additional gameplay functionality. So, and to make not only demands, but also to contribute something small: My mates and I were a bit annoyed by other players (mostly strangers), who like to sit down in Ifrits or Marids and shoot everything until the rest of the troop has nothing more to do. That took some of the fun away from us. So we wrote a small script which minimizes the ammo of vehicles (but also turrets) as soon as a player occupies them. We are bloody beginners when it comes to Arma Scripting, but it works as intended. And I could imagine that it would be easy for @NeoArmageddon to embed it into the mission and perhaps give players the ability to set the amount of reduction per mission parameter. Spoiler /* AUTHOR: jaz, Pyrx NAME: reduceTurrAmmo.sqf VERSION: 0.2 DESCRIPTION: set ammo of turrets that can be entered to specific number USAGE: paste this into initPlayerLocal.sqf: [] execVM 'reduceTurrAmmo.sqf'; */ // exit if we are not a player if(!hasInterface) exitWith { }; fnc_reduceTurrAmmo = { _vehicle = vehicle player; // getVehicleAmmoDef ... found there: // https://forums.bohemia.net/forums/topic/157732-finding-a-vehicle-ammo-value-from-0-1/?do=findComment&comment=2664114 _magCount = 0; _mags = []; _totalCurAmmo = 0; _VehAmmoArray = []; _getVehicleAmmoDef = 0; _maxAmmoArray = []; _VehAmmoArray = []; _defAmmoCount = 0; _VehAmmoArray = getArray (configFile >> "CfgVehicles" >> typeOf _vehicle >> "Turrets" >> "MainTurret" >> "magazines"); _defAmmoCount = getNumber (configFile >> "CfgMagazines" >> ((magazines _vehicle) select 0) >> "count"); _defTotalAmmo = 0; { _defTotalAmmo = _defTotalAmmo + (getNumber (configFile >> "CfgMagazines" >> _x >> "count")); } forEach _VehAmmoArray; _magCount = count (magazines (_vehicle)); _totalCurAmmo = 0; { _totalCurAmmo = _totalCurAmmo + (_x select 1); } forEach (magazinesAmmo _vehicle); _VehicleAmmoDef = 0; _VehicleAmmoDef = (_totalCurAmmo/_defTotalAmmo); // set vehicle ammo to a specific amount if( _VehicleAmmoDef > 0.15 ) then { _vehicle setVehicleAmmo 0.15; hint "Shit, we lost 85% of our vehicle ammo! We have to save the rest until the shit really hits the fan."; }; }; player addEventHandler ["GetInMan", { params ["_unit", "_role", "_vehicle"]; _vehiclePos = _this select 1; if (_vehiclePos == "gunner") then { [] call fnc_reduceTurrAmmo; }; }]; player addEventHandler ["SeatSwitchedMan", { params[ "_unit", "", "_vehicle" ]; assignedVehicleRole _unit params[ "_vehiclePos", [ "_turretPath", [] ] ]; if (_vehiclePos == "turret") then { [] call fnc_reduceTurrAmmo; }; }]; The next thing I wanted to look at is to implement a functionality to punish players who shoot at the Evac helicopters or even kill the pilots to fly themselves. At least as a first step only punishment. However, it would be perfect if there was a non-violent possibility that players could fly the helicopters themselves. @NeoArmageddon: maybe you can give some tips on how to do this. Share this post Link to post Share on other sites
Tankbuster 1746 Posted April 5, 2019 On 3/17/2019 at 9:33 PM, topden said: ok. i send u to gitlub later How are the AI at moving around and inside these things, mate? Share this post Link to post Share on other sites
NeoArmageddon 958 Posted April 5, 2019 3 hours ago, Wurstkoffer said: The mortars are another subject. A mortar launcher and a few sandbags somewhere in the wilderness I find quite unrealistic. I once played around with the Map Builder, but unfortunately I am too unimaginative. Yes, that is something that bugged me aswell for quite some time. In an early version we had all random artillery vehicles be available for artillery, but we found that in most cases those vehicles are too close to the player to actually shoot indirectly. 3 hours ago, Wurstkoffer said: For the motor pools I would know a small improvement possibility. They should contain such a small repair station (Land_RepairDepot_01_tan_F) where you can repair your vehicle completely. This would make absolute sense and give the motor pools additional gameplay functionality. So, and to make not only demands, but also to contribute something small: My mates and I were a bit annoyed by other players (mostly strangers), who like to sit down in Ifrits or Marids and shoot everything until the rest of the troop has nothing more to do. That took some of the fun away from us. So we wrote a small script which minimizes the ammo of vehicles (but also turrets) as soon as a player occupies them. We are bloody beginners when it comes to Arma Scripting, but it works as intended. And I could imagine that it would be easy for @NeoArmageddon to embed it into the mission and perhaps give players the ability to set the amount of reduction per mission parameter. Reveal hidden contents /* AUTHOR: jaz, Pyrx NAME: reduceTurrAmmo.sqf VERSION: 0.2 DESCRIPTION: set ammo of turrets that can be entered to specific number USAGE: paste this into initPlayerLocal.sqf: [] execVM 'reduceTurrAmmo.sqf'; */ // exit if we are not a player if(!hasInterface) exitWith { }; fnc_reduceTurrAmmo = { _vehicle = vehicle player; // getVehicleAmmoDef ... found there: // https://forums.bohemia.net/forums/topic/157732-finding-a-vehicle-ammo-value-from-0-1/?do=findComment&comment=2664114 _magCount = 0; _mags = []; _totalCurAmmo = 0; _VehAmmoArray = []; _getVehicleAmmoDef = 0; _maxAmmoArray = []; _VehAmmoArray = []; _defAmmoCount = 0; _VehAmmoArray = getArray (configFile >> "CfgVehicles" >> typeOf _vehicle >> "Turrets" >> "MainTurret" >> "magazines"); _defAmmoCount = getNumber (configFile >> "CfgMagazines" >> ((magazines _vehicle) select 0) >> "count"); _defTotalAmmo = 0; { _defTotalAmmo = _defTotalAmmo + (getNumber (configFile >> "CfgMagazines" >> _x >> "count")); } forEach _VehAmmoArray; _magCount = count (magazines (_vehicle)); _totalCurAmmo = 0; { _totalCurAmmo = _totalCurAmmo + (_x select 1); } forEach (magazinesAmmo _vehicle); _VehicleAmmoDef = 0; _VehicleAmmoDef = (_totalCurAmmo/_defTotalAmmo); // set vehicle ammo to a specific amount if( _VehicleAmmoDef > 0.15 ) then { _vehicle setVehicleAmmo 0.15; hint "Shit, we lost 85% of our vehicle ammo! We have to save the rest until the shit really hits the fan."; }; }; player addEventHandler ["GetInMan", { params ["_unit", "_role", "_vehicle"]; _vehiclePos = _this select 1; if (_vehiclePos == "gunner") then { [] call fnc_reduceTurrAmmo; }; }]; player addEventHandler ["SeatSwitchedMan", { params[ "_unit", "", "_vehicle" ]; assignedVehicleRole _unit params[ "_vehiclePos", [ "_turretPath", [] ] ]; if (_vehiclePos == "turret") then { [] call fnc_reduceTurrAmmo; }; }]; The next thing I wanted to look at is to implement a functionality to punish players who shoot at the Evac helicopters or even kill the pilots to fly themselves. At least as a first step only punishment. However, it would be perfect if there was a non-violent possibility that players could fly the helicopters themselves. @NeoArmageddon: maybe you can give some tips on how to do this. Can you please make tickets in the gitlab for all this points? That would help me not to forget about it and bring it in some order. Also regarding the heli pilots I would say I add another ending where you escape in the helicopters but the mission is a fail for shooting your saviours 😄 Share this post Link to post Share on other sites
DPM 8 Posted April 5, 2019 Couldn't reproduce the TADST error, either from booting with it locally or on a standalone server box, both ran fine with AI in towns. The heli issue is a pain in the butt, doesn't stop it from happening, but adding a pilot script means everybody can point and sling abuse at the person that did it while they wait in the stationary heli for the mission to hopefully complete. Would also like to see some stiffer penalty for killing civs. Share this post Link to post Share on other sites