Advertisement
Mister_Stefan

Velocity Based DT TELEPORT (LWv4)

Sep 27th, 2021
1,213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. -- Made by Lazarus#4454
  2.  
  3. -- Menu
  4. local menu_set_bool = menu.set_bool
  5.  
  6. -- Console
  7. console_set_int = console.set_int
  8.  
  9. -- Callback
  10. local client_add_callback = client.add_callback
  11.  
  12. -- Entitylist
  13. entitylist_get_local_player = entitylist.get_local_player
  14.  
  15. client_add_callback("create_move", function()
  16.  
  17.     local local_player = entitylist_get_local_player()
  18.     local velocity = local_player:get_velocity()
  19.     local speed = velocity:length_2d()
  20.  
  21.     if (speed <= 10) then
  22.         menu_set_bool("rage.weapon[3].extended_teleport", false)
  23.     elseif (speed > 10) then
  24.         menu_set_bool("rage.weapon[3].extended_teleport", true)
  25.     end
  26.  
  27.     console_set_int("cl_clock_correction", 0)
  28.  
  29. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement