Advertisement
Guest User

Untitled

a guest
Oct 11th, 2022
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. script.registerModule({
  2. name: "Packetfly",
  3. description: "for shit ncp",
  4. category: "Movement",
  5. }, function (module) {
  6. Math.rad = function(degrees) {
  7. return degrees * Math.PI / 180;
  8. }
  9. module.on("update", function () {
  10. var playerYaw = Math.rad(mc.thePlayer.rotationYaw);
  11. var x = -Math.sin(playerYaw) * 0.2873;
  12. var z = Math.cos(playerYaw) * 0.2873;
  13. mc.getNetHandler().addToSendQueue(new C04(mc.thePlayer.posX+x, mc.thePlayer.posY, mc.thePlayer.posZ+z, false));
  14. mc.getNetHandler().addToSendQueue(new C04(mc.thePlayer.posX+x, mc.thePlayer.posY+490, mc.thePlayer.posZ+z, true));
  15. mc.thePlayer.motionY = 0.0
  16. });
  17. });
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement