Skip to content

Instantly share code, notes, and snippets.

@sartaj
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sartaj/8966229 to your computer and use it in GitHub Desktop.
Save sartaj/8966229 to your computer and use it in GitHub Desktop.
Hack flapmmo.com to set server and use the mouse to move.
/**
* @author github user pwfff
* cleanup by github user sartaj
*/
// Go To flapmmo.com
// Open Web Inspector
// Go to sources tab
// On the side bar, find main.js
// Pretty Print main.js (in Chrome, its the curly bracket symbol on the bottom)
// Add breakpoint on line 142 by literally clicking where the line number is listed
// Go to the console tab.
// You can have a friend tell you their server and then use this to be on same sever as them.
// To set the server to something you want, run this.
r = 'ws://198.58.104.108:2829';
// To override the gravity and use your mouse to navigate, copy and paste this code
document.onmousemove = function(event) { c.y = event.clientY; }
setInterval(function(){
c.vy = 0;
},10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment