2015-12-07 16:24:52 +00:00
|
|
|
/*
|
|
|
|
Author: Aaron Clark - EpochMod.com
|
|
|
|
|
|
|
|
Contributors:
|
|
|
|
|
|
|
|
Description:
|
|
|
|
Initalize variables used client side and start login FSM
|
|
|
|
|
|
|
|
Licence:
|
|
|
|
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
|
|
|
|
|
|
|
Github:
|
2016-06-13 16:54:19 +00:00
|
|
|
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/init/client_init.sqf
|
2015-12-07 16:24:52 +00:00
|
|
|
*/
|
2017-07-31 16:28:18 +00:00
|
|
|
EPOCH_Vehicle_MaintainLock = false;
|
2015-09-28 22:04:43 +00:00
|
|
|
EPOCH_CraftingItem = "";
|
2015-09-14 20:55:36 +00:00
|
|
|
EPOCH_ESP_TARGETS = [];
|
|
|
|
EPOCH_ESPMAP_TARGETS = [];
|
|
|
|
EPOCH_ESPGROUPS = [];
|
|
|
|
EPOCH_ESPGROUPCOLORS = [];
|
|
|
|
EPOCH_ESP_PLAYER = false;
|
|
|
|
EPOCH_ESP_VEHICLES = false;
|
|
|
|
EPOCH_ESP_VEHICLEPLAYER = [];
|
2016-04-28 16:59:12 +00:00
|
|
|
EPOCH_group_level_img = ["x\addons\a3_epoch_code\data\owner.paa", "x\addons\a3_epoch_code\data\mod.paa", "x\addons\a3_epoch_code\data\member.paa"];
|
2015-09-14 20:55:36 +00:00
|
|
|
if (isNil 'EPOCH_diag_fps') then {
|
|
|
|
EPOCH_diag_fps = 0;
|
|
|
|
};
|
|
|
|
EPOCH_lastTrash = diag_tickTime;
|
|
|
|
EPOCH_tradeDone = false;
|
|
|
|
EPOCH_bankBalance = 0;
|
|
|
|
EPOCH_antiWallCount = 0;
|
|
|
|
EPOCH_lastTargetTime = diag_tickTime;
|
|
|
|
EPOCH_arr_countdown = [];
|
|
|
|
EP_light = objNull;
|
|
|
|
EPOCH_p2ptradeTarget = objNull;
|
|
|
|
EPOCH_Holstered = "";
|
|
|
|
Epoch_invited_GroupUID = "";
|
|
|
|
Epoch_invited_GroupName = "";
|
|
|
|
Epoch_invited_GroupUIDs = [];
|
|
|
|
Epoch_invited_GroupUIDsPrev = [];
|
2016-04-08 20:21:46 +00:00
|
|
|
Epoch_my_Group = [];
|
2017-08-30 07:43:37 +00:00
|
|
|
Epoch_invited_tempGroupUID = "";
|
|
|
|
Epoch_invited_tempGroupName = "";
|
|
|
|
Epoch_invited_tempGroupUIDs = [];
|
|
|
|
Epoch_invited_tempGroupUIDsPrev = [];
|
|
|
|
Epoch_my_tempGroup = [];
|
2015-09-14 20:55:36 +00:00
|
|
|
EPOCH_prevOffer = [];
|
|
|
|
EPOCH_drawIcon3d = false;
|
|
|
|
EPOCH_velTransform = false;
|
|
|
|
EPOCH_stabilityTarget = objNull;
|
|
|
|
EPOCH_currentTarget = objNull;
|
2016-05-05 16:06:12 +00:00
|
|
|
EPOCH_currentTargetMode = 0;
|
2015-09-14 20:55:36 +00:00
|
|
|
EPOCH_LootedBlds = [];
|
2016-04-08 20:21:46 +00:00
|
|
|
EPOCH_lootObjects = [];
|
2015-09-14 20:55:36 +00:00
|
|
|
EPOCH_soundLevel = 1;
|
|
|
|
EPOCH_arr_interactedObjs = [];
|
|
|
|
EPOCH_buildOption = 0;
|
|
|
|
EPOCH_nearestLocations = [];
|
2016-05-18 16:48:48 +00:00
|
|
|
EPOCH_lastFiredLocation = [];
|
2018-01-18 20:40:18 +00:00
|
|
|
EPOCH_IsAutoRunning = false;
|
2018-06-21 19:59:37 +00:00
|
|
|
EPOCH_Earplugsin = false;
|
2018-01-18 20:40:18 +00:00
|
|
|
EPOCH_LastAutoRunKeyPressed = diag_ticktime;
|
2018-06-12 18:22:37 +00:00
|
|
|
EPOCH_PlayerMarkerOn = false;
|
|
|
|
EPOCH_DeathMarkerOn = false;
|
2016-08-08 19:45:39 +00:00
|
|
|
|
2017-10-21 22:35:53 +00:00
|
|
|
//Radiation
|
|
|
|
EPOCH_geiger_shown = false;
|
2017-10-22 16:28:51 +00:00
|
|
|
EPOCH_geiger_mute_counter = true;
|
|
|
|
EPOCH_geiger_mute_warning = true;
|
2017-10-21 22:35:53 +00:00
|
|
|
EPOCH_ambientRadiation = 0; //TODO: needs to go server side. Adds constant incremental radiation to all players. Use in special events.
|
|
|
|
|
2016-06-29 22:32:57 +00:00
|
|
|
rmx_var_drag_MouseDown = false;
|
2016-08-08 19:45:39 +00:00
|
|
|
rmx_var_dynamicHUD_groups = [];
|
|
|
|
rmx_var_dynamicHUD_groupCTRL = [];
|
2016-04-08 20:21:46 +00:00
|
|
|
|
2017-08-01 02:00:28 +00:00
|
|
|
//Favorites bar
|
2017-08-02 22:16:50 +00:00
|
|
|
EPOCH_favBar_itemConsumed = false;
|
2017-08-01 02:00:28 +00:00
|
|
|
rmx_var_favBar_Item = "";
|
|
|
|
EPOCH_modKeys = [false,false,false];
|
|
|
|
|
2016-04-08 20:21:46 +00:00
|
|
|
["EPOCH_onEachFrame", "onEachFrame", EPOCH_onEachFrame] call BIS_fnc_addStackedEventHandler;
|
2015-09-14 20:55:36 +00:00
|
|
|
|
|
|
|
// Custom Keys
|
2015-10-28 15:16:00 +00:00
|
|
|
EPOCH_keysActionPressed = false; //prevents EH spam
|
2015-10-05 18:40:04 +00:00
|
|
|
0 call EPOCH_clientKeyMap;
|
2015-09-14 20:55:36 +00:00
|
|
|
|
2017-07-12 14:53:53 +00:00
|
|
|
// load some frequently used configs to variables
|
2017-11-15 20:53:14 +00:00
|
|
|
EPOCH_maxBuildingHeight = ["CfgEpochClient", "maxBuildingHeight", 100] call EPOCH_fnc_returnConfigEntryV2;
|
2018-04-07 21:52:22 +00:00
|
|
|
EPOCH_MaxBuildingTilt = ["CfgEpochClient", "MaxBuildingTilt", 180] call EPOCH_fnc_returnConfigEntryV2;
|
2017-11-15 20:53:14 +00:00
|
|
|
Epoch_NuisanceMulti = ["CfgEpochClient", "NuisanceMulti", 0.5] call EPOCH_fnc_returnConfigEntryV2;
|
2017-07-12 14:53:39 +00:00
|
|
|
|
2015-09-14 20:55:36 +00:00
|
|
|
//ON INIT and RESPAWN
|
|
|
|
call EPOCH_clientInit;
|
|
|
|
|
2016-04-08 20:21:46 +00:00
|
|
|
[] execFSM "epoch_code\system\player_login.fsm";
|
2015-09-14 20:55:36 +00:00
|
|
|
|
2019-01-11 15:51:58 +00:00
|
|
|
if (isclass (configFile >> "CfgPatches" >> "ace_common")) then {
|
|
|
|
if (["CfgEpochClient", "DisableDoorInteractForACE", true] call EPOCH_fnc_returnConfigEntryV2) then {
|
|
|
|
[] spawn {
|
|
|
|
private _start = diag_ticktime;
|
|
|
|
waituntil {!isnil "MACRO_DOOR_REACH_DISTANCE" || diag_ticktime - _start > 90};
|
|
|
|
MACRO_DOOR_REACH_DISTANCE = -1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-09-14 20:55:36 +00:00
|
|
|
true
|