Go to file
Coder12a 5e3f61043b Initial commit 2021-09-05 18:35:06 -05:00
.gitattributes Initial commit 2021-09-05 18:35:06 -05:00
LICENSE Initial commit 2021-09-05 18:35:06 -05:00
README.md Initial commit 2021-09-05 18:35:06 -05:00
init.lua Initial commit 2021-09-05 18:35:06 -05:00
mod.conf Initial commit 2021-09-05 18:35:06 -05:00
settingtypes.txt Initial commit 2021-09-05 18:35:06 -05:00

README.md

Latency Protection

Latency protection mod attempts to prevent players from glitching through protected nodes.
By either teleporting the player or damaging them.

Installation

  • Unzip the archive, rename the folder to latency_protection and place it in .. minetest/mods/

  • GNU/Linux: If you use a system-wide installation place it in ~/.minetest/mods/.

  • If you only want this to be used in a single world, place the folder in .. worldmods/ in your world directory.

For further information or help, see:
https://wiki.minetest.net/Installing_Mods

Damage mode

This mode attempts to prevent players from glitching through protected nodes. By damaging players who interact with a protected position too fast.

Teleport mode

This mode attempts to prevent players from glitching through protected nodes. By recording position every 20 seconds (This can be changed in settings) and teleporting them if the protection interaction happens in a very quick time frame. If a player interacts with a protected node the position will not be recorded for an extra cycle. Before recording a position, the players avg_jitter is checked to make sure the player is not lagging out.

Setting types

The timer for when to record a player position.
This only works if punishment is set to teleport.

latency_protection.timer = 20

The max jitter a player can have before refusing the position update.
This only works if punishment is set to teleport.

latency_protection.jitter_max = 1.5

The time limit between is_protected calls.
If the function is called too fast the player will be teleport or damaged.
time_max is read in microseconds.

latency_protection.time_max = 10000

Damage amount to apply to the player.
This only works if punishment is set to damage.

latency_protection.damage = 16

Set what type of punishment will be given to a player:

  • Teleport the player.
  • Damage the player.
latency_protection.punishment = "damage"