Exile 1.0.4 compatibility and readme updates

2 construction overrides with changes.
This was to get it in the hands of all that use before the weekend.
Testing is still being done to ensure full function but should be fine
as these changes should not effect the vector!

btw, I noticed some added escape mission stuff in the keyUp file.
These changes were added to keep all building functions compatible with
your mission files and modes
This commit is contained in:
DESKTOP-UH65DCE\MusTanG 2018-03-14 11:22:44 -05:00
parent 895acd9cdb
commit 4d433a6df6
4 changed files with 29 additions and 20 deletions

View File

@ -1,4 +1,4 @@
![ArmA 1.74](https://img.shields.io/badge/ArmA%203-1.74-blue.svg) ![Exile 1.0.3+](https://img.shields.io/badge/Exile-1.0.3+%20Kohlrabi-yellowgreen.svg) ![Build Status](https://img.shields.io/badge/Custom%20Build-passing-38AA38.svg) ![ArmA 1.80+](https://img.shields.io/badge/ArmA%203-1.80+-blue.svg) ![Exile 1.0.4+](https://img.shields.io/badge/Exile-1.0.4+%20Pineapple-yellowgreen.svg) ![Build Status](https://img.shields.io/badge/Custom%20Build-passing-38AA38.svg)
# To the User: # To the User:
####NEW Disclaimer: ####NEW Disclaimer:

View File

@ -41,8 +41,7 @@ else
ExileClientConstructionIsInSelectSnapObjectMode = true; ExileClientConstructionIsInSelectSnapObjectMode = true;
ExileClientConstructionSupportSnapMode = count(ExileClientConstructionSnapToObjectClassNames) > 0; ExileClientConstructionSupportSnapMode = count(ExileClientConstructionSnapToObjectClassNames) > 0;
ExileClientConstructionCurrentSnapToObject = objNull; ExileClientConstructionCurrentSnapToObject = objNull;
ExileClientConstructionPosition = [getPosATL player, ExileClientConstructionOffset select 1, getDir player] call ExileClient_util_math_getPositionInDirection; ExileClientConstructionPosition = ASLtoATL ([getPosASL player, 5, getDir player] call ExileClient_util_math_getPositionInDirection);
ExileClientConstructionPosition set[2, ExileClientConstructionOffset select 2];
{ {
player reveal _x; player reveal _x;
} }
@ -53,7 +52,7 @@ else
} }
else else
{ {
["buildTerritoryRequest", [_previewObjectClassName, (ASLtoAGL (ATLtoASL ExileClientConstructionPosition)),_this select 1,_this select 2]] call ExileClient_system_network_send; ["buildTerritoryRequest", [_previewObjectClassName,ExileClientConstructionPosition,_this select 1,_this select 2]] call ExileClient_system_network_send;
}; };
}; };
true true

View File

@ -228,7 +228,7 @@ while {ExileClientConstructionResult isEqualTo 0} do
_objectColor = "#(argb,2,2,1)color(0.91,0,0,0.6,ca)"; _objectColor = "#(argb,2,2,1)color(0.91,0,0,0.6,ca)";
}; };
}; };
if !(([configName ExileClientConstructionConfig, ASLtoAGL (getPosASL ExileClientConstructionObject), getPlayerUID player] call ExileClient_util_world_canBuildHere) isEqualTo 0) then if !(([configName ExileClientConstructionConfig, getPosASL ExileClientConstructionObject, getPlayerUID player] call ExileClient_util_world_canBuildHere) isEqualTo 0) then
{ {
ExileClientConstructionCanPlaceObject = false; ExileClientConstructionCanPlaceObject = false;
_simulatePhysics = false; _simulatePhysics = false;

View File

@ -208,30 +208,40 @@ switch (_keyCode) do
}; };
case 0x07: case 0x07:
{ {
if (ExileClientIsInConstructionMode) then if (getText(missionConfigFile >> "Header" >> "gameType") isEqualTo "Escape") then
{ {
if(ExileClientConstructionLock)then if (alive player) then
{ {
ExileClientConstructionLock = false; [] call ExileClient_gui_hud_toggleEscapeStats;
_posObject = position ExileClientConstructionObject;
ExileClientConstructionOffset = player worldToModel _posObject;
ExileClientConstructionRotation = (getDir ExileClientConstructionObject) - (getDir player);
}
else
{
ExileClientConstructionLock = true;
}; };
} }
else else
{ {
if (!ExileClientXM8IsVisible) then if (ExileClientIsInConstructionMode) then
{ {
if ("Exile_Item_XM8" in (assignedItems player)) then if(ExileClientConstructionLock)then
{ {
if (alive player) then ExileClientConstructionLock = false;
_posObject = position ExileClientConstructionObject;
ExileClientConstructionOffset = player worldToModel _posObject;
ExileClientConstructionRotation = (getDir ExileClientConstructionObject) - (getDir player);
}
else
{
ExileClientConstructionLock = true;
};
}
else
{
if (!ExileClientXM8IsVisible) then
{
if ("Exile_Item_XM8" in (assignedItems player)) then
{ {
[] call ExileClient_gui_xm8_show; if (alive player) then
}; {
[] call ExileClient_gui_xm8_show;
};
};
}; };
}; };
}; };