GS - Anticheat
Server-side anti-cheat scoring for Godot 4.7+: a decaying suspicion score per player, escalation levels and command sanity checks, fed by GameSpice Server Security. Part of the GameSpice addon family.
Godot 4.7+ addon for server-side anti-cheat: speed, teleport and aim-snap detectors, command and state sanity checks, a suspicion score per player, and escalation through GameSpice Server Security. Nothing is trusted from the client and no driver is installed. Part of the GameSpice addon family.
The detectors that re-simulate movement and aim live in GameSpice Server Security. This addon is the layer on top: it adds up what they report into a score that decays, says when a player reaches a warning, kick or ban level, and offers pure sanity checks for the commands a client sends. It never acts by itself. Your game, or a Server Security rule, decides what a level means.
For review, history(id) returns a player's newest detections (kind, proof or suspicion, time; bounded by history_per_player, 0 is unlimited), reset(id) clears score and history after a person looked, and to_dict() / load_dict() let GameSpice Save keep the table. The addon still never acts: it says which level a player reached.
Install
- Copy
addons/dot_anticheat/andaddons/dot_core/into your project. - Enable GameSpice Anticheat in Project > Project Settings > Plugins.
Quick start
var watch := DotSuspicionWatch.new()
watch.config = DotSuspicionConfig.from_files().value # layered cfg, env and flags
add_child(watch)
# 1. Feed it from the Server Security detector (any node with a detected signal works).
watch.attach(anticheat_node)
# 2. Or report from your own checks.
var bad := watch.sanity.check_move(last_pos, new_pos, delta)
if bad != "":
watch.report(player_id, StringName(bad))
# 3. Decide what a level means.
watch.escalated.connect(func(id, level, score):
if level == DotSuspicion.Level.KICK:
kick(id))
DotSuspicion and DotCommandSanity are plain objects too, so a headless server can use them without the node. Pass the time in seconds to observe and score to make a run repeatable.
Settings
Every number is a field on DotSuspicionConfig. A value of 0 means unchecked or unlimited; the inspector ranges are slider limits, not enforced caps.
| Setting | Default | What it does |
|---|---|---|
enabled |
true | Off, nothing is scored and every check passes. |
default_weight |
1.0 | Points for a detection kind with no entry in weights. |
impossible_weight |
100 | Points for a detection that is proof, not suspicion. |
decay_per_second |
0.5 | Points forgiven each second; 0 never forgives. |
weights |
empty | Per-kind points as kind=weight. |
max_players |
0 | Players tracked; 0 is unlimited. At the limit the lowest score is dropped and counted. |
warn_at |
20 | Score for the warning level; 0 turns it off. |
kick_at |
60 | Score for the kick level; 0 turns it off. |
ban_at |
0 | Score for the ban level; 0 means never. |
max_speed |
0 | Legal units per second; 0 leaves it unchecked. |
max_turn_rate |
0 | Legal degrees per second; 0 leaves it unchecked. |
max_command_rate |
0 | Commands per second per player; 0 leaves it unchecked. |
world_extent |
0 | Largest legal coordinate on any axis; 0 leaves it unchecked. |
Layers, weakest first: the defaults, cfg/addon/dot_anticheat/*.yml, the game's files, the operator's files, DOT_ANTICHEAT_* environment variables, then --anticheat-* flags. A value that makes no sense, such as a warning level above the kick level, fails validate() with a reason.
What it is not
- Not the detectors: re-simulating movement and spotting speed, teleport and aim-snap is GameSpice Server Security's DotAntiCheat. Use it as the source and let this addon score what it reports. The configuration class here is called
DotSuspicionConfigso it never clashes with Server Security's. - Not a punishment system: bans, mutes and appeals are GameSpice Moderation. A level here is a signal for it, not a verdict.
- Not a client-side tool: there is no driver, no scanner and no kernel hook. Nothing the client says is trusted, and nothing runs on the player's machine.
- Not proof of cheating on its own: a high score is a reason for a human to look. The ban level is off by default for that reason.
Test
godot --headless --path . --import
godot --headless --path . res://examples/anticheat_selftest.tscn
The self-test is offline and exits non-zero on any failure.
Status
Built and maintained with Claude Code. The test suites pass, but little of this has been in front of real players yet. Please report rough edges by opening an issue.
Licence
MIT. See LICENSE. Only the TMC back-end web infrastructure is not open source.
時系列のエンゲージメント
GS - Anticheat はGodot 向けアセットです。0 回のダウンロード、3 回の閲覧、0 件のお気に入り があります。 このアイテムは 1 件のコレクション と 7 件のタグ に含まれています。
レビュー
レビューを投稿するにはログインしてください。
コメント (0)
コメントするにはログインしてください。

