Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :- dynamic player_pos/1, player_vel/1.
- vector_length(vector(X, Y, Z), L) :- L is sqrt(X * X + Y * Y + Z * Z).
- update_anticheat :-
- player_pos(Pos), player_vel(Vel),
- vector_length(Vel, VelLen), VelLen > 10.0,
- retractall(player_vel(_)),
- assertz(player_vel(vector(0, 0, 0))),
- send_message("Cheat detected! Your velocity has been reset.").
- update_anticheat.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement