EPOCH_server_publicEH = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\init\server_publicEH.sqf"; EPOCH_server_triggerEvent = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_antagonists\EPOCH_server_triggerEvent.sqf"; EPOCH_server_upgradeGroup = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_group\EPOCH_server_upgradeGroup.sqf"; EPOCH_server_updatePlayerGroup = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_group\EPOCH_server_updatePlayerGroup.sqf"; EPOCH_server_createGroup = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_group\EPOCH_server_createGroup.sqf"; EPOCH_server_deleteGroup = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_group\EPOCH_server_deleteGroup.sqf"; EPOCH_server_invitePlayer = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_group\EPOCH_server_invitePlayer.sqf"; EPOCH_server_loadBuildings = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_bases\EPOCH_server_loadBuildings.sqf"; EPOCH_server_saveBuilding = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_bases\EPOCH_server_saveBuilding.sqf"; // EPOCH_server_saveBuildingDamage = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_bases\EPOCH_server_saveBuildingDamage.sqf"; EPOCH_server_upgradeBUILD = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_bases\EPOCH_server_upgradeBUILD.sqf"; EPOCH_server_removeBUILD = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_bases\EPOCH_server_removeBUILD.sqf"; EPOCH_server_paintBUILD = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_bases\EPOCH_server_paintBUILD.sqf"; EPOCH_server_maintBUILD = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_bases\EPOCH_server_maintBUILD.sqf"; EPOCH_server_simulSwap = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_bases\EPOCH_server_simulSwap.sqf"; EPOCH_server_simToStatic = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_bases\EPOCH_server_simToStatic.sqf"; EPOCH_server_unsuppported = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_bases\EPOCH_server_unsuppported.sqf"; EPOCH_server_handle_say3D = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_antagonists\EPOCH_server_handle_say3D.sqf"; EPOCH_server_handle_switchMove = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_antagonists\EPOCH_server_handle_switchMove.sqf"; EPOCH_server_lootContainer = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_looting\EPOCH_server_lootContainer.sqf"; EPOCH_server_spawnBoatLoot = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_looting\EPOCH_server_spawnBoatLoot.sqf"; EPOCH_server_destroyTrash = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_looting\EPOCH_server_destroyTrash.sqf"; EPOCH_server_knockDownTree = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_looting\EPOCH_server_knockDownTree.sqf"; EPOCH_server_mineRocks = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_looting\EPOCH_server_mineRocks.sqf"; EPOCH_server_lootAnimal = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_looting\EPOCH_server_lootAnimal.sqf"; EPOCH_server_savePlayer = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_player\EPOCH_server_savePlayer.sqf"; EPOCH_server_loadPlayer = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_player\EPOCH_server_loadPlayer.sqf"; EPOCH_server_checkPlayer = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_player\EPOCH_server_checkPlayer.sqf"; EPOCH_server_respawnPlayer = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_player\EPOCH_server_respawnPlayer.sqf"; EPOCH_server_onPlayerDisconnect = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_player\EPOCH_server_onPlayerDisconnect.sqf"; EPOCH_server_deadPlayer = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_player\EPOCH_server_deadPlayer.sqf"; EPOCH_server_revivePlayer = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_player\EPOCH_server_revivePlayer.sqf"; EPOCH_server_storeCrypto = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_player\EPOCH_server_storeCrypto.sqf"; EPOCH_server_equippedItem = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_player\EPOCH_server_equippedItem.sqf"; EPOCH_server_unpackBackpack = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_player\EPOCH_server_unpackBackpack.sqf"; EPOCH_server_loadTraders = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_traders\EPOCH_server_loadTraders.sqf"; EPOCH_server_spawnTraders = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_traders\EPOCH_server_spawnTraders.sqf"; EPOCH_server_makeTrade = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_trading\EPOCH_server_makeTrade.sqf"; EPOCH_server_tradeRequest = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_trading\EPOCH_server_tradeRequest.sqf"; EPOCH_server_makeNPCTrade = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_trading\EPOCH_server_makeNPCTrade.sqf"; EPOCH_server_takeCrypto = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_trading\EPOCH_server_takeCrypto.sqf"; EPOCH_server_save_vehicles = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_save_vehicles.sqf"; EPOCH_server_save_vehicle = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_save_vehicle.sqf"; EPOCH_server_save_killedVehicle = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_save_killedVehicle.sqf"; EPOCH_server_save_killedStorage = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_save_killedStorage.sqf"; EPOCH_server_save_killedBuilding = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_save_killedBuilding.sqf"; EPOCH_load_vehicles = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_load_vehicles.sqf"; EPOCH_load_storage = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_load_storage.sqf"; EPOCH_server_save_storage = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_save_storage.sqf"; EPOCH_spawn_vehicles = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_spawn_vehicles.sqf"; EPOCH_server_lockVehicle = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_server_lockVehicle.sqf"; EPOCH_server_fillVehicle = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_server_fillVehicle.sqf"; EPOCH_server_repairVehicle = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_server_repairVehicle.sqf"; EPOCH_server_lockStorage = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_server_lockStorage.sqf"; EPOCH_server_packStorage = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_server_packStorage.sqf"; EPOCH_server_packJack = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_vehicle\EPOCH_server_packJack.sqf"; EPOCH_serverLootObject = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_server\EPOCH_serverLootObject.sqf"; EPOCH_server_vehicleInit = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_server\EPOCH_server_vehicleInit.sqf"; EPOCH_server_storageInit = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_server\EPOCH_server_storageInit.sqf"; EPOCH_server_buildingInit = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_server\EPOCH_server_buildingInit.sqf"; EPOCH_server_traderKilled = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_server\EPOCH_server_traderKilled.sqf"; // EPOCH_server_setWeather = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_server\EPOCH_server_setWeather.sqf"; EPOCH_localCleanup = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_server\EPOCH_localCleanup.sqf"; EPOCH_server_createTeleport = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_server\EPOCH_server_createTeleport.sqf"; EPOCH_server_teleportPlayer = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_server\EPOCH_server_teleportPlayer.sqf"; EPOCH_Server_createObject = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_missions\EPOCH_Server_createObject.sqf"; EPOCH_server_airDropCrate = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_missions\EPOCH_server_airDropCrate.sqf"; EPOCH_server_fillContainer = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_missions\EPOCH_Server_fillContainer.sqf"; EPOCH_server_handle_sapperObjs = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_antagonists\EPOCH_server_handle_sapperObjs.sqf"; EPOCH_Server_createAirDrop = compileFinal preprocessFileLineNumbers "\x\addons\a3_epoch_server\compile\epoch_missions\EPOCH_Server_createAirDrop.sqf"; EPOCH_weightedArray = compileFinal ' private["_return","_lootTableArray","_weightedArray","_keyName","_configName","_arrayName"]; _keyName = _this select 0; _configName = _this select 1; _arrayName = _this select 2; _return = missionNamespace getVariable[format["EPOCH_LT_%1_%2_%3",_configName,_keyName,_arrayName],[]]; if(_return isEqualTo[]) then { _lootTableArray = []; _weightedArray = []; { if(typeName _x == "ARRAY") then { _lootTableArray pushBack(_x select 0); for "_i" from 1 to(_x select 1) do { _weightedArray pushBack _forEachIndex; }; } else { _lootTableArray pushBack _x; _weightedArray pushBack _forEachIndex; }; }forEach getArray(configFile >> _configName >> _keyName >> _arrayName); _return = [_lootTableArray,_weightedArray,count _weightedArray]; missionNamespace setVariable[format["EPOCH_LT_%1_%2_%3",_configName,_keyName,_arrayName],_return]; }; _return '; EPOCH_returnConfig = compileFinal ' private["_return", "_config"]; _return = (configfile >> _this); _config = (missionConfigFile >> _this); if (isClass _config) then{ _return = _config; }; _return '; EPOCH_precisionPos = compileFinal ' private["_low", "_high"]; _low = [ (_this select 0) - ((_this select 0) % 1), (_this select 1) - ((_this select 1) % 1), (_this select 2) - ((_this select 2) % 1) ]; _high = _this vectorDiff _low; [_low, _high] ';