Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- : Vector3 ( x y z -- v ) create , , ;
- : Vector3_length ( v -- len ) 3 cells + @ * swap @ * + swap @ * + sqrt ;
- variable player-pos
- variable player-vel
- : update-anticheat
- player-pos @ player-vel @ Vector3_length max-vel @ > if
- player-vel ! ( Vector3 ) 0 0 0 Vector3 player-vel !
- "Cheat detected! Your velocity has been reset." player-send-message
- then
- ;
Add Comment
Please, Sign In to add comment