This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
ServerMod 3.5.0
Target Game Version: 8.0.1 (Revision III)
Rerereleased to make it not ban and instead just disallow it.
Rereleased to add anticheat_waiting_for_players
Plugins using Server.GetPlayers
using a playerid will have to be change to Server.GetPlayer
.
Game
Added Configs
- Added config float
096_trigger_range_always
, defaults to 1.5. This is the range that a player will always contribute to SCP-096's rage, if they are in it. Setting it to 0 or lower will disable the range check (only the angle check will be performed). - Added
096_trigger_angle
, defaults to 70. This is the angle that a player must be looking relative to SCP-096 to contribute to his rage. - Added config bool
ci_respawn_music
, defaults to true. Determines if the CI music should be played on a CI team respawn. - Added config float
lift_move_duration
, defaults to the base game value (which is 5 as of now). Raising or lowering this value will change the amount of time it takes between the doors closing and opening when using an elevator. Reducing this below 2 should either do nothing or do weird things, so don't bother. - Added config float
noclip_radius_multiplier
, defaults to 0.667. This defines what number to multiply the player radius by to get the sphere radius for the "Physics.Spherecast()" - Added config bool
anticheat_waiting_for_players
, defaults to true. If you use plugins that make players open doors during the waiting for players period, disable this. Alternatively, if it shits the bed also disable this.
Automatron (new antispeedhack system)
Added AUTOMATRON which watches over nasty players (currently has improved speedhack detection and "fellow hacker" ban system).
New config variables:
- int
automatron_sample_count
, defaults to 5, amount of ticks gathered data stay. - int
automatron_allowed_observed_ticks
, defaults to 5, amount of ticks of speedhacking until ban. Most of the time should stay equal toautomatron_sample_count
. - float
automatron_allowed_observed_speed_multiplier
, defaults to 1.04f, how much speedhack do you want to allow - bool
automatron_ban_observed_speed
, default to true, boolean to check if AUTOMATRON should ban for speedhacking or not. - int
automatron_bantime
, defaults to 1440, ban time to use for other ban time variables which are to -1 - int
automatron_bantime_observed_speed
, defaults to 5, amount of minutes to ban for speedhacking. - int
automatron_bantime_nickname
, defaults to 5, amount of minutes to ban for players using a cheat client's modified names used to identify fellow cheaters.
Fixes
- Fixed SmartCP including people who stayed spectator or not in a valid role (Overwatch mode)
- Fixed and cleaned up anti-noclip, using "Physics.Spherecast()" rather than "MoreCast.BeamCast()"
- Fixed the ability of clients to rotate the head past normal limits. (This doesn't really matter, but in case something weird starts happening to heads, this is probably why and you should let us know)
- Added new anticheat that prevents players from accessing doors or other things during the Waiting for Players period. This can be disabled with
anticheat_waiting_for_players
if you want to be able to do that or if it shits the bed.
API
- Added a new possible filter for
Server.GetPlayers
function which takes a Team value and returns all players of this team. - Added
Server.GetPlayer()
, this takes an int of the playerid of the player you want to get. Previously this was handled byServer.GetPlayers(string)
but it was rather unreliable since it would also check ips & player names there. In case no player is found, this will return null, so check for that. - Added
Player.GetCurrentRoom()
andMap.GetCurrentRoom(Vector3 position)
. These functions return the transform of the room the player or position is in. If no room is found, it will return null so check for this.