Skip to content

Commit

Permalink
disable vehicle simulation handler
Browse files Browse the repository at this point in the history
changed var name to force change, new variable is: simulationHandlerOld
  • Loading branch information
vbawol committed Jul 8, 2016
1 parent 1f17430 commit 1310098
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Binary file modified Server_Install_Pack/@epochhive/addons/epoch_server.pbo
Binary file not shown.
2 changes: 1 addition & 1 deletion Server_Install_Pack/@epochhive/epochconfig.hpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/epoch_server/build.hpp
@@ -1 +1 @@
build=560;
build=561;
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/epoch_server/system/server_monitor.fsm
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build.txt
@@ -1 +1 @@
560
561

0 comments on commit 1310098

Please sign in to comment.