mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Epoch Survival 0.4 build:654
increased anti teleport distance limit to 30 and configureable via epochah.hpp antihack_maxTravelDistance
This commit is contained in:
parent
9d54517986
commit
9fa278e04a
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +1,7 @@
|
|||||||
// Anti Hack
|
// Anti Hack
|
||||||
antihack_Enabled = true; // built-in Anti-Hack
|
antihack_Enabled = true; // built-in Anti-Hack
|
||||||
|
antihack_maxTravelDistance = 30; // anti-teleport max travel distance
|
||||||
|
antihack_TPcenterDistance = 30; // anti-teleport distance from start
|
||||||
antihack_cfgPatchesCheck = true; // cfgPatches (AddOn Check)
|
antihack_cfgPatchesCheck = true; // cfgPatches (AddOn Check)
|
||||||
antihack_PVSPrefix = "EPAH_"; // used to help whitelist pveh variables in BE without BEC and watchdog, leave blank to use no prefix.
|
antihack_PVSPrefix = "EPAH_"; // used to help whitelist pveh variables in BE without BEC and watchdog, leave blank to use no prefix.
|
||||||
antihack_cfgPatchesMode[] = {2}; // 0 == BAN - 1 = LOG, 2 = KICK
|
antihack_cfgPatchesMode[] = {2}; // 0 == BAN - 1 = LOG, 2 = KICK
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
build=653;
|
build=654;
|
||||||
|
@ -1 +1 @@
|
|||||||
build=653;
|
build=654;
|
||||||
|
@ -507,7 +507,8 @@ for "_i" from 1 to 3 do {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_skn_spawnPointCenter = getMarkerPos "respawn_west";
|
_skn_spawnPointCenter = getMarkerPos "respawn_west";
|
||||||
_centerDistance = 30;
|
_centerDistance = [_serverSettingsConfig, "antihack_TPcenterDistance", 30] call EPOCH_fnc_returnConfigEntry;
|
||||||
|
_maxTravelDistance = [_serverSettingsConfig, "antihack_maxTravelDistance", 30] call EPOCH_fnc_returnConfigEntry;
|
||||||
|
|
||||||
// Only set these if prefix is not used since we can filter for it
|
// Only set these if prefix is not used since we can filter for it
|
||||||
if (_skn_PVSPrefix == "") then {
|
if (_skn_PVSPrefix == "") then {
|
||||||
@ -869,8 +870,8 @@ _skn_code_antihack = compileFinal ("
|
|||||||
_curPos = getPosATL vehicle player;
|
_curPos = getPosATL vehicle player;
|
||||||
_distance = _lastPos distance _curPos;
|
_distance = _lastPos distance _curPos;
|
||||||
|
|
||||||
if ((_curTime-_lastTime)>1 || _distance>10) then {
|
if ((_curTime-_lastTime) > 1 || _distance > "+str _maxTravelDistance+") then {
|
||||||
if (((_distance/(_curTime-_lastTime)) > 16) && _notNearbySpawn && (player == vehicle player)) then {
|
if (((_distance/(_curTime-_lastTime)) > "+str _maxTravelDistance+") && _notNearbySpawn && (player == vehicle player)) then {
|
||||||
if (isNil '"+_skn_antiTeleportPVC+"') then {
|
if (isNil '"+_skn_antiTeleportPVC+"') then {
|
||||||
[format['[TEST] TP from %1 to %2, %3 meters, now at %4', _lastPos, _curPos, round _distance, getPosATL player],1] call "+_sknBanANDSleep+";
|
[format['[TEST] TP from %1 to %2, %3 meters, now at %4', _lastPos, _curPos, round _distance, getPosATL player],1] call "+_sknBanANDSleep+";
|
||||||
vehicle player setPosATL _lastPos;
|
vehicle player setPosATL _lastPos;
|
||||||
|
@ -1 +1 @@
|
|||||||
build=653;
|
build=654;
|
||||||
|
@ -1 +1 @@
|
|||||||
build=653;
|
build=654;
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user