eliasku / 13

Fast-action P2P multiplayer game 13 (js13k-2022)
https://iioi.herokuapp.com/
93 stars 28 forks source link

Fly jump glitch #3

Closed 3kh0 closed 2 years ago

3kh0 commented 2 years ago

Using a pen and jumping, you can "fly" this makes you unable to hit people on the ground, but makes you invincible to others on the ground. While you fly, you can damage other players if they are flying through. First, get a pen, hold down space and your left mouse button. Do not release these buttons and you can fly.

This was me on the ground, and me on an alt, flying Screen recording 2022-10-13 16.06.52.webm

Using a corner, you can also glitch into a wall. First you get a pen, go to one of the top corners, hold down space, w, and your left mouse button for about 20 seconds.

3kh0 commented 2 years ago

Screen recording 2022-10-13 16.10.16.webm

Second video of the wall hack

3kh0 commented 2 years ago

Screen recording 2022-10-13 16.06.52.webm

First video of the fly hack

eliasku commented 2 years ago

@3kh0 please try the latest master. This happens because while you press JUMP button - gravity is actually less than normal to simulate long jump effect. So the fix: while weapon is triggering we KICK character back, so we need to limit this effect only while character is on the ground

3kh0 commented 2 years ago

@eliasku This did fix it while I was testing it on grtc.herokuapp.com Could #4 also be a backup fix just in case?

eliasku commented 2 years ago

@3kh0 the PR is invalid, this function used in other places as well, and should affect velocity for z != 0 as well. The correct fix is on grtc/ga13 already

3kh0 commented 2 years ago

Alright! Thanks!