Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.registerModule({
- name: "Packetfly",
- description: "for shit ncp",
- category: "Movement",
- }, function (module) {
- Math.rad = function(degrees) {
- return degrees * Math.PI / 180;
- }
- module.on("update", function () {
- var playerYaw = Math.rad(mc.thePlayer.rotationYaw);
- var x = -Math.sin(playerYaw) * 0.2873;
- var z = Math.cos(playerYaw) * 0.2873;
- mc.getNetHandler().addToSendQueue(new C04(mc.thePlayer.posX+x, mc.thePlayer.posY, mc.thePlayer.posZ+z, false));
- mc.getNetHandler().addToSendQueue(new C04(mc.thePlayer.posX+x, mc.thePlayer.posY+490, mc.thePlayer.posZ+z, true));
- mc.thePlayer.motionY = 0.0
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement