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 = [];
|
2016-08-08 19:45:39 +00:00
|
|
|
|
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
|
|
|
|
private _CfgEpochClient = 'CfgEpochClient' call EPOCH_returnConfig;
|
2017-07-12 14:53:39 +00:00
|
|
|
EPOCH_maxBuildingHeight = getNumber(_CfgEpochClient >> "maxBuildingHeight");
|
|
|
|
|
2015-09-14 20:55:36 +00:00
|
|
|
//ON INIT and RESPAWN
|
|
|
|
call EPOCH_clientInit;
|
|
|
|
|
2017-09-12 21:29:42 +00:00
|
|
|
// prevents use of group view, and maybe useful for other checks.
|
|
|
|
addMissionEventHandler ["PlayerViewChanged", {if (cameraView isEqualTo "GROUP") then {vehicle player switchCamera "Internal";};}];
|
|
|
|
|
2016-04-08 20:21:46 +00:00
|
|
|
[] execFSM "epoch_code\system\player_login.fsm";
|
2015-09-14 20:55:36 +00:00
|
|
|
|
|
|
|
true
|