From 13100982641a9dcbe063cfbbc799f0eb1a9f9a58 Mon Sep 17 00:00:00 2001 From: vbawol Date: Fri, 8 Jul 2016 09:51:47 -0500 Subject: [PATCH] disable vehicle simulation handler changed var name to force change, new variable is: simulationHandlerOld --- .../@epochhive/addons/epoch_server.pbo | Bin 429660 -> 429669 bytes .../@epochhive/epochconfig.hpp | 2 +- Sources/epoch_server/build.hpp | 2 +- .../epoch_vehicle/EPOCH_load_vehicles.sqf | 4 ++-- .../epoch_server/system/server_monitor.fsm | 2 +- build.txt | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Server_Install_Pack/@epochhive/addons/epoch_server.pbo b/Server_Install_Pack/@epochhive/addons/epoch_server.pbo index 1b19fe2726167a5c1dffb52d0f5e49629c04be94..9b7093457f0753ea925cbbf3d927a5f962edca38 100644 GIT binary patch delta 205 zcmcaJN9ySusR0c&1Ql>h($ delta 198 zcmaDlN9xWTsRThOm+~KnP-k(&OnUi8` zYHB&Xv7RZcxl*dVQi^eVr4&=)is>?wnKh@2A7%<;E-5N)FFecy#LPgPh_F)D)qe+7rAumZuu(vRMC2#$d`BkZOKRC diff --git a/Server_Install_Pack/@epochhive/epochconfig.hpp b/Server_Install_Pack/@epochhive/epochconfig.hpp index f34d3869..b70263a0 100644 --- a/Server_Install_Pack/@epochhive/epochconfig.hpp +++ b/Server_Install_Pack/@epochhive/epochconfig.hpp @@ -28,7 +28,7 @@ antagonistChanceLoot = 0.09; //9% chance when player click "SEARCH" on a loot ob cloneCost = 100; // debt incurred on player death // vehicles - Max vehicle slots is calculated from per vehicle limits below. Warning! Higher the number lower the performance. -simulationHandler = true; // When enabled this feature disables simulation on vehicles that are not nea players. Can help improve client fps at the cost of server fps. +simulationHandlerOld = false; // When enabled this feature disables simulation on vehicles that are not nea players. Can help improve client fps at the cost of server fps. vehicleLockTime = 1800; // Controls how many seconds it takes to allow another person/group to unlock vehicle. // Traders diff --git a/Sources/epoch_server/build.hpp b/Sources/epoch_server/build.hpp index 5f31ef30..5db56ac3 100644 --- a/Sources/epoch_server/build.hpp +++ b/Sources/epoch_server/build.hpp @@ -1 +1 @@ -build=560; +build=561; diff --git a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf index b418b101..6b49f1d1 100644 --- a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf +++ b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf @@ -222,8 +222,8 @@ for "_i" from 1 to _maxVehicleLimit do { }; // re-enable damage and apply to vehicles after we wait some time. -[_vehicleDamages,([_serverSettingsConfig, "immuneVehicleSpawnTime", 120] call EPOCH_fnc_returnConfigEntry),([_serverSettingsConfig, "simulationHandler", true] call EPOCH_fnc_returnConfigEntry)] spawn { - params [["_vehicleDamages",[]],["_immuneTime",120],["_simulationHandler",true]]; +[_vehicleDamages,([_serverSettingsConfig, "immuneVehicleSpawnTime", 120] call EPOCH_fnc_returnConfigEntry),([_serverSettingsConfig, "simulationHandlerOld", false] call EPOCH_fnc_returnConfigEntry)] spawn { + params [["_vehicleDamages",[]],["_immuneTime",120],["_simulationHandler",false]]; // wait for some time to let all vehicles settle. sleep _immuneTime; // set final damages diff --git a/Sources/epoch_server/system/server_monitor.fsm b/Sources/epoch_server/system/server_monitor.fsm index 86aa9232..98422c15 100644 --- a/Sources/epoch_server/system/server_monitor.fsm +++ b/Sources/epoch_server/system/server_monitor.fsm @@ -50,7 +50,7 @@ class FSM "_serverSettingsConfig = configFile >> ""CfgEpochServer"";" \n "_ahInitAuthCfg = [_serverSettingsConfig, ""antihack_ahInitAuthCfg"", [0,180]] call EPOCH_fnc_returnConfigEntry;" \n "_events = [_serverSettingsConfig, ""events"", []] call EPOCH_fnc_returnConfigEntry;" \n - "_simulationHandler = [_serverSettingsConfig, ""simulationHandler"", true] call EPOCH_fnc_returnConfigEntry;" \n + "_simulationHandler = [_serverSettingsConfig, ""simulationHandlerOld"", false] call EPOCH_fnc_returnConfigEntry;" \n "" \n "_initAhInitBanOrLog = _ahInitAuthCfg select 0;" \n "_initTimeLimit = _ahInitAuthCfg select 1;" \n diff --git a/build.txt b/build.txt index f8d2d902..ed5e6e8f 100644 --- a/build.txt +++ b/build.txt @@ -1 +1 @@ -560 +561