Notes
Notes - notes.io |
// @name Venge.io Mod 1.2
// @match *://venge.io*
// @author CrossFire
// @require https://cdn.jsdelivr.net/npm/[email protected]/dist/tweakpane.min.js
// @grant none
// ==/UserScript==
const pane=new Tweakpane;var PARAMS={Speed:2,ESP:!0,"No Grenade Cooldown":!0,Fly:!0,"OP Gun":!0,Author:"ALL HACKERS"};pane.addInput(PARAMS,"Speed",{min:1,max:10,step:1}),pane.addInput(PARAMS,"ESP"),pane.addInput(PARAMS,"No Grenade Cooldown"),pane.addInput(PARAMS,"Fly"),pane.addInput(PARAMS,"OP Gun"),pane.addInput(PARAMS,"Author");var _=setInterval((t="ALL HACKERS")=>{[window.Movement,window.VengeGuard,window.Label,window.Player].indexOf(void 0)>-1||(Movement.prototype.setMovement=function(){if(PARAMS.Author===t){if(this.player.isDeath)return!1;if(pc.isFinished)return!1;if(this.isDashing)return!1;var i=this.angleEntity.forward,e=this.angleEntity.right,a=1;this.isFocusing&&(a=this.focusSpeedFactor),a*=this.animation.movementFactor,a*=PARAMS.Speed,this.force.x=0,this.force.z=0,!this.isForward||this.isLeft||this.isRight?this.isForward&&(this.force.x+=i.x*this.strafingSpeed*a,this.force.z+=i.z*this.strafingSpeed*a):(this.force.x+=i.x*this.defaultSpeed*a,this.force.z+=i.z*this.defaultSpeed*a),this.isBackward&&(this.force.x-=i.x*this.strafingSpeed*a,this.force.z-=i.z*this.strafingSpeed*a),this.isLeft&&(this.force.x-=e.x*this.strafingSpeed*a,this.force.z-=e.z*this.strafingSpeed*a),this.isRight&&(this.force.x+=e.x*this.strafingSpeed*a,this.force.z+=e.z*this.strafingSpeed*a),this.entity.rigidbody.applyForce(this.currentForce)}},Movement.prototype.setKeyboard=function(){if(PARAMS.Author===t)return!this.player.isDeath&&!pc.isFinished&&!this.locked&&"INPUT"!=document.activeElement.tagName&&(this.jumpingTime+this.jumpLandTime<this.timestamp&&this.currentHeight<this.nearGround&&(this.isForward=!1,this.isBackward=!1,this.isLeft=!1,this.isRight=!1),(this.app.keyboard.isPressed(pc.KEY_W)||this.isMobileForward)&&(this.isForward=!0),(this.app.keyboard.isPressed(pc.KEY_S)||this.isMobileBackward)&&(this.isBackward=!0),(this.app.keyboard.isPressed(pc.KEY_A)||this.isMobileLeft)&&(this.isLeft=!0),(this.app.keyboard.isPressed(pc.KEY_D)||this.isMobileRight)&&(this.isRight=!0),this.app.keyboard.isPressed(pc.KEY_SPACE)&&this.jump(),this.app.keyboard.wasPressed(pc.KEY_R)&&this.reload(),this.app.keyboard.isPressed(pc.KEY_F)&&this.throw(),this.app.keyboard.wasPressed(pc.KEY_E)&&this.meleeSkill(),this.app.keyboard.wasPressed(pc.KEY_X)&&(this.leftMouse=!0),this.app.keyboard.wasReleased(pc.KEY_X)&&(this.leftMouse=!1),this.app.keyboard.wasPressed(pc.KEY_L)&&(this.app.mouse.enablePointerLock(),this.app.fire("Overlay:Pause",!1)),this.app.keyboard.wasPressed(pc.KEY_M),this.app.keyboard.wasPressed(pc.KEY_SHIFT)&&(this.isFocusing=!0),void(this.app.keyboard.wasReleased(pc.KEY_SHIFT)&&(this.isFocusing=!1)))},Movement.prototype.throw=function(){if(PARAMS.Author===t)return this.now()-this.lastThrowDate<1e3*this.player.throwCooldown&&!PARAMS["No Grenade Cooldown"]?(this.entity.sound.play("Error"),!1):!(this.isReloading>this.timestamp)&&!(this.isHitting>this.timestamp)&&(this.isFocusing=!1,this.player.throw(),this.stopFiring(),this.isThrowing=!0,"Lilium"==this.player.characterName?this.throwGrenadeAnimation():"Shin"==this.player.characterName&&this.throwShurikenAnimation(),void(this.lastThrowDate=this.now()))},Movement.prototype.jump=function(){if(PARAMS.Author===t){if(!PARAMS.Fly){if(!this.isLanded&&!this.isCollided)return!1;if(this.isDashing)return!1;if(this.bounceJumpTime>this.timestamp)return!1}if(this.jumpingTime=this.timestamp+this.jumpDuration,this.isJumping=!0,this.isLanded=!1,this.airTime=this.now(),this.randomDirection=Math.random()>.5?-1:1,this.previousVelocity,this.now()-this.lastImpactTime>3e3){var i="Jump-"+(Math.round(1*Math.random())+1);this.app.fire("Character:Sound",i,.1*Math.random()),this.entity.sound.play("Only-Jump"),this.entity.sound.slots["Only-Jump"].pitch=.1*Math.random()+1.1}if(this.dynamicGravity=0,this.app.fire("Overlay:Jump",!0),this.player.fireNetworkEvent("j"),this.isShooting>this.timestamp)return!1;this.app.tween(this.animation).to({jumpAngle:-11},.15,pc.BackOut).start()}},Movement.prototype.setShooting=function(i){if(PARAMS.Author===t)if(PARAMS["OP Gun"]){if(!this.isMouseLocked)return!1;if(!this.currentWeapon.isShootable)return!1;if(this.leftMouse||this.isShootingLocked||this.isFireStopped||this.stopFiring(),this.leftMouse&&!this.isShootingLocked&&!this.isThrowing&&this.isReloading<this.timestamp&&(this.isShooting=1e-8+this.timestamp),this.player.checkShooting(),this.isShooting>this.timestamp&&!this.isShootingLocked){var e=0,a=0,s=0,n=-0,h=2,o=0,r=0*(M=Math.cos(110*this.spreadCount));this.cancelInspect(!0),this.setShootDirection(),this.isFocusing&&"Rifle"==this.currentWeapon.type&&(a=-.05,s=.5,n=-.2,e*=.5,h=.05,o=0,r=0*M),"Sniper"!=this.currentWeapon.type&&"Shotgun"!=this.currentWeapon.type||(this.spreadNumber=0,this.isFocusing&&(this.spreadNumber=this.currentWeapon.focusSpread),n=-5,h=5.2),new Array(50).forEach(t=>this.currentWeapon.shoot());var p=new pc.Vec3(0,100,0).clone(),c=this.currentWeapon.bulletPoint.getEulerAngles().clone();"Sniper"==this.currentWeapon.type&&this.isFocusing||(this.app.fire("EffectManager:Bullet",p,c),this.entity.script.weaponManager.triggerShooting());var m=this.currentWeapon.muzzlePoint.getPosition().clone(),u=this.raycastShootFrom,d=Math.random()*this.spreadNumber-Math.random()*this.spreadNumber,l=Math.random()*this.spreadNumber-Math.random()*this.spreadNumber,g=Math.random()*this.spreadNumber-Math.random()*this.spreadNumber,S=this.raycastTo.clone().add(new pc.Vec3(d,l,g)),f=this.currentWeapon.damage,y=this.currentWeapon.distanceMultiplier;if("Shotgun"==this.currentWeapon.type){this.app.fire("EffectManager:Fire",u,S,m,this.player.playerId,f,"Shotgun",y);for(var b=0;b<6;b++)d=Math.cos(b/3*Math.PI)*this.spreadNumber,l=Math.sin(b/3*Math.PI)*this.spreadNumber,g=Math.cos(b/3*Math.PI)*this.spreadNumber,S=this.raycastTo.clone().add(new pc.Vec3(d,l,g)),this.app.fire("EffectManager:Fire",u,S,m,this.player.playerId,f,"Shotgun",y)}else this.app.fire("EffectManager:Fire",u,S,m,this.player.playerId,f);this.lookY+=.04*e,this.spreadNumber=pc.math.lerp(this.spreadNumber,o,.4),this.spreadCount+=i,this.currentWeapon.ammo--,this.app.fire("Overlay:Shoot",!0),this.app.tween(this.animation).to({bounceX:0,bounceZ:a,bounceAngle:s,shootSwing:h},.03,pc.BackOut).start(),this.app.tween(this.animation).to({cameraShootBounce:n,cameraBounce:this.animation.cameraBounce+.025*e},.09,pc.BackOut).start(),this.animation.activeBounce=pc.math.lerp(this.animation.activeBounce,-e,.05),this.animation.horizantalSpread=pc.math.lerp(this.animation.horizantalSpread,.04*r,.1),this.isShootingLocked=!0,this.isFireStopped=!1}this.isShooting<this.timestamp&&this.isShootingLocked&&(this.isShootingLocked=!1),this.isShooting>this.timestamp+.1&&(this.animation.jumpAngle=pc.math.lerp(this.animation.jumpAngle,0,.2)),this.animation.fov=pc.math.lerp(this.animation.fov,0,.1),this.animation.bounceX=pc.math.lerp(this.animation.bounceX,0,.3),this.animation.bounceZ=pc.math.lerp(this.animation.bounceZ,0,.1),this.animation.bounceAngle=pc.math.lerp(this.animation.bounceAngle,0,.2),this.animation.shootSwing=pc.math.lerp(this.animation.shootSwing,0,.01),this.animation.activeBounce=pc.math.lerp(this.animation.activeBounce,0,.1),this.animation.cameraShootBounce=pc.math.lerp(this.animation.cameraShootBounce,0,.1),this.animation.cameraBounce=pc.math.lerp(this.animation.cameraBounce,0,.1),this.animation.cameraImpact=pc.math.lerp(this.animation.cameraImpact,0,.1),this.spreadNumber=pc.math.lerp(this.spreadNumber,0,.2),this.animation.horizantalSpread=pc.math.lerp(this.animation.horizantalSpread,0,.01)}else{if(!this.isMouseLocked)return!1;if(!this.currentWeapon.isShootable)return!1;if(this.leftMouse||this.isShootingLocked||this.isFireStopped||(this.stopFiring(),0===this.currentWeapon.ammo&&this.reload()),this.leftMouse&&!this.isShootingLocked&&!this.isThrowing&&this.isReloading<this.timestamp&&this.isHitting<this.timestamp&&(this.currentWeapon.ammo>0?this.isShooting=this.currentWeapon.shootTime+this.timestamp:this.reload()),this.player.checkShooting(),this.isShooting>this.timestamp&&!this.isShootingLocked){s=this.currentWeapon.recoil,e=this.currentWeapon.cameraShake,o=.03*Math.random()-.03*Math.random(),n=-.15*s,h=6*s,a=-1.2;var M=2;r=this.currentWeapon.spread,p=Math.cos(110*this.spreadCount),m=this.currentWeapon.spread*p,this.cancelInspect(!0),this.setShootDirection(),this.isFocusing&&"Rifle"==this.currentWeapon.type&&(n=-.05,h=.5,a=-.2,e*=.5,M=.05,r=this.currentWeapon.focusSpread,m=this.currentWeapon.focusSpread*p),"Sniper"!=this.currentWeapon.type&&"Shotgun"!=this.currentWeapon.type||(this.spreadNumber=this.currentWeapon.spread,this.isFocusing&&(this.spreadNumber=this.currentWeapon.focusSpread),a=-5,M=5.2),this.currentWeapon.shoot(),c=this.currentWeapon.bulletPoint.getPosition().clone(),u=this.currentWeapon.bulletPoint.getEulerAngles().clone(),"Sniper"==this.currentWeapon.type&&this.isFocusing||(this.app.fire("EffectManager:Bullet",c,u),this.entity.script.weaponManager.triggerShooting()),d=this.currentWeapon.muzzlePoint.getPosition().clone(),l=this.raycastShootFrom;var w=Math.random()*this.spreadNumber-Math.random()*this.spreadNumber,A=(g=Math.random()*this.spreadNumber-Math.random()*this.spreadNumber,Math.random()*this.spreadNumber-Math.random()*this.spreadNumber),P=(y=this.raycastTo.clone().add(new pc.Vec3(w,g,A)),this.currentWeapon.damage);if(b=this.currentWeapon.distanceMultiplier,"Shotgun"==this.currentWeapon.type)for(this.app.fire("EffectManager:Fire",l,y,d,this.player.playerId,P,"Shotgun",b),f=0;f<6;f++)w=Math.cos(f/3*Math.PI)*this.spreadNumber,g=Math.sin(f/3*Math.PI)*this.spreadNumber,A=Math.cos(f/3*Math.PI)*this.spreadNumber,y=this.raycastTo.clone().add(new pc.Vec3(w,g,A)),this.app.fire("EffectManager:Fire",l,y,d,this.player.playerId,P,"Shotgun",b);else this.app.fire("EffectManager:Fire",l,y,d,this.player.playerId,P);this.lookY+=.04*e,this.spreadNumber=pc.math.lerp(this.spreadNumber,r,.4),this.spreadCount+=i,this.currentWeapon.ammo--,this.app.fire("Overlay:Shoot",!0),this.app.tween(this.animation).to({bounceX:o,bounceZ:n,bounceAngle:h,shootSwing:M},.03,pc.BackOut).start(),this.app.tween(this.animation).to({cameraShootBounce:a,cameraBounce:this.animation.cameraBounce+.025*e},.09,pc.BackOut).start(),this.animation.activeBounce=pc.math.lerp(this.animation.activeBounce,-e,.05),this.animation.horizantalSpread=pc.math.lerp(this.animation.horizantalSpread,.04*m,.1),this.isShootingLocked=!0,this.isFireStopped=!1}this.isShooting<this.timestamp&&this.isShootingLocked&&(this.isShootingLocked=!1),this.isShooting>this.timestamp+.1&&(this.animation.jumpAngle=pc.math.lerp(this.animation.jumpAngle,0,.2)),this.animation.fov=pc.math.lerp(this.animation.fov,0,.1),this.animation.bounceX=pc.math.lerp(this.animation.bounceX,0,.3),this.animation.bounceZ=pc.math.lerp(this.animation.bounceZ,0,.1),this.animation.bounceAngle=pc.math.lerp(this.animation.bounceAngle,0,.2),this.animation.shootSwing=pc.math.lerp(this.animation.shootSwing,0,.01),this.animation.activeBounce=pc.math.lerp(this.animation.activeBounce,0,.1),this.animation.cameraShootBounce=pc.math.lerp(this.animation.cameraShootBounce,0,.1),this.animation.cameraBounce=pc.math.lerp(this.animation.cameraBounce,0,.1),this.animation.cameraImpact=pc.math.lerp(this.animation.cameraImpact,0,.1),this.spreadNumber=pc.math.lerp(this.spreadNumber,0,.2),this.animation.horizantalSpread=pc.math.lerp(this.animation.horizantalSpread,0,.01)}},Movement.prototype.checkGlitches=(t=>t),VengeGuard.prototype.onCheck=function(){this.app.fire("Network:Guard",!0)},Label.prototype.update=function(i){if(PARAMS.Author===t){if(!this.isInitalized)return!1;if(!this.isEnabled)return this.labelEntity&&(this.labelEntity.enabled=!1),!1;if(!pc.isSpectator&&!PARAMS.ESP){if(this.player.isDeath)return this.labelEntity.enabled=!1,!1;if(Date.now()-this.player.lastDamage>1500){if(pc.currentTeam!=this.team||"PAYLOAD"!=pc.currentMode&&"TDM"!=pc.currentMode)return this.labelEntity.enabled=!1,!1;this.labelEntity.enabled=!0}}this.updateTeamColor();var e=new pc.Vec3,a=this.currentCamera,s=this.app.graphicsDevice.maxPixelRatio,n=this.screenEntity.screen.scale,h=this.app.graphicsDevice;a.worldToScreen(this.headPoint.getPosition(),e),e.x*=s,e.y*=s,e.x>0&&e.x<this.app.graphicsDevice.width&&e.y>0&&e.y<this.app.graphicsDevice.height&&e.z>0?(this.labelEntity.setLocalPosition(e.x/n,(h.height-e.y)/n,0),this.labelEntity.enabled=!0):this.labelEntity.enabled=!1}},clearInterval(_))},100);
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team