ФЭНДОМ


Это чит чисто на бессмертия, у 1 части Читы на Starve.io читы на любые предметы. Все также, Tampermonkey или консолька

КОД!!! Править

  1. (function() {
  2. var oldGravity = -9.77;
  3. var zoomCoeff = 1600;
  4. var verts = [];
  5. var imgURLText = "";
  6. var smallestDiff;
  7. var closestColour;
  8. window.denyNormalness = false;
  9. // Minimap Coefficients
  10. var MC = {
  11. x: {
  12. p: [
  13. 41,
  14. 4110
  15. ],
  16. a: [
  17. -151.68,
  18. 930.08
  19. ]
  20. },
  21. y: {
  22. p: [
  23. 74,
  24. 691
  25. ],
  26. a: [
  27. 26.64,
  28. -137.46
  29. ]
  30. },
  31. width: 5168,
  32. height: 1016
  33. };
  34. mode = false;
  35. function waitForPlay() {
  36. if(!mode) {
  37. setTimeout(waitForPlay, 500);
  38. return;
  39. }
  40. if(mode.player === undefined) {
  41. setTimeout(waitForPlay, 500);
  42. return;
  43. }
  44. if(mode.player.gpData === undefined) {
  45. setTimeout(waitForPlay, 500);
  46. return;
  47. }
  48. if(mode.player.gpData.p === undefined) {
  49. setTimeout(waitForPlay, 500);
  50. return;
  51. }
  52. doCheats();
  53. }
  54. function doCheats() {
  55. console.log("               ");
  56. console.log("Added cheats!");
  57. console.log("               ");
  58. console.log('%c Brofist.io Hack v.0.5.3 ', 'background: #000000; color: #ff0000');
  59. console.log("               ");
  60. console.log("Controls:");
  61. console.log("- Arrow keys to move;");
  62. console.log("- Letter keys to chat;");
  63. console.log("- Num8 - fly up, num5 - fly down, num 4 - fly left, num 6 - fly right;");
  64. console.log("- Enter key;");
  65. console.log("- 7 key: Minimap on/off;");
  66. console.log("- 9 key: Gravity on/off;");
  67. console.log("- 0 key: Noclip on/off");
  68. console.log("- Alt key : Paste text in chat;");
  69. console.log("- Num/ - super up, num2 - super down, num1 - super left, num3 - super right;");
  70. console.log("- Home - tp to spawn;");
  71. console.log("- End - tp to door;");
  72. console.log("- Delete key: - enable/disable jumphack and hide and seek spd hack;");
  73. console.log("- * - spd Hide and Seek;");
  74. console.log("- Insert - hide\show fake functs.");
  75. // Print in console the key name
  76. var keyNameDebug = false;
  77. ////// LEFT
  78. (function() {
  79. var repeat = 0;
  80. var pastFirst = false;
  81. window.keyboardJS.bind("num4", function(e) {
  82. if (keyNameDebug) console.log("Left Down");
  83. (repeat = 1);
  84. if (pastFirst) {
  85. mode.updateChatText(8, mode.player.gpData.chat);
  86. mode.player.gpData.chatBuffer = [8];
  87. }
  88. pastFirst = true;
  89. }, function(e) {
  90. if (keyNameDebug) console.log("Left Up");
  91. (repeat = 0, 1) && resetNormalness();
  92. mode.updateChatText(8, mode.player.gpData.chat);
  93. mode.player.gpData.chatBuffer = [8];
  94. pastFirst = false;
  95. });
  96. setInterval(function() {
  97. if (!repeat) {
  98. return;
  99. };
  100. mode.player.gpData.p.world.gravity = [0, 0];
  101. mode.player.gpData.p.world.useFrictionGravityOnZeroGravity = false;
  102. mode.player.gpData.p.position[0] += -0.03;
  103. }, 10);
  104. })();
  105. ////// RIGHT
  106. (function() {
  107. var repeat = 0;
  108. var pastFirst = false;
  109. window.keyboardJS.bind("num6", function(e) {
  110. if (keyNameDebug) console.log("Right Down");
  111. (repeat = 1);
  112. if (pastFirst) {
  113. mode.updateChatText(8, mode.player.gpData.chat);
  114. mode.player.gpData.chatBuffer = [8];
  115. }
  116. pastFirst = true;
  117. }, function(e) {
  118. if (keyNameDebug) console.log("Right Up");
  119. (repeat = 0, 1) && resetNormalness();
  120. mode.updateChatText(8, mode.player.gpData.chat);
  121. mode.player.gpData.chatBuffer = [8];
  122. pastFirst = false;
  123. });
  124. setInterval(function() {
  125. if (!repeat) {
  126. return;
  127. };
  128. mode.player.gpData.p.world.gravity = [0, 0];
  129. mode.player.gpData.p.world.useFrictionGravityOnZeroGravity = false;
  130. mode.player.gpData.p.position[0] += 0.03;
  131. }, 10);
  132. })();
  133. ////// UP
  134. (function() {
  135. var repeat = 0;
  136. var pastFirst = false;
  137. window.keyboardJS.bind("num8", function(e) {
  138. if (keyNameDebug) console.log("Up Down");
  139. (repeat = 1);
  140. if (pastFirst) {
  141. mode.updateChatText(8, mode.player.gpData.chat);
  142. mode.player.gpData.chatBuffer = [8];
  143. }
  144. pastFirst = true;
  145. }, function(e) {
  146. if (keyNameDebug) console.log("Up Up");
  147. (repeat = 0, 1) && resetNormalness();
  148. mode.updateChatText(8, mode.player.gpData.chat);
  149. mode.player.gpData.chatBuffer = [8];
  150. pastFirst = false;
  151. });
  152. setInterval(function() {
  153. if (!repeat) {
  154. return;
  155. };
  156. mode.player.gpData.p.world.gravity = [0, 0];
  157. mode.player.gpData.p.world.useFrictionGravityOnZeroGravity = false;
  158. mode.player.gpData.p.position[1] += 0.03;
  159. }, 10);
  160. })();
  161. ////// DOWN
  162. (function() {
  163. var repeat = 0;
  164. var pastFirst = false;
  165. window.keyboardJS.bind("num5", function(e) {
  166. if (keyNameDebug) console.log("Down Down");
  167. (repeat = 1);
  168. if (pastFirst) {
  169. mode.updateChatText(8, mode.player.gpData.chat);
  170. mode.player.gpData.chatBuffer = [8];
  171. }
  172. pastFirst = true;
  173. }, function(e) {
  174. if (keyNameDebug) console.log("Down Up");
  175. (repeat = 0, 1) && resetNormalness();
  176. mode.updateChatText(8, mode.player.gpData.chat);
  177. mode.player.gpData.chatBuffer = [8];
  178. pastFirst = false;
  179. });
  180. setInterval(function() {
  181. if (!repeat) {
  182. return;
  183. };
  184. mode.player.gpData.p.world.gravity = [0, 0];
  185. mode.player.gpData.p.world.useFrictionGravityOnZeroGravity = false;
  186. mode.player.gpData.p.position[1] += -0.03;
  187. }, 10);
  188. })();
  189. ////// SUPER UP
  190. (function() {
  191. var repeat = 0;
  192. var pastFirst = false;
  193. window.keyboardJS.bind("num/", function(e) {
  194. if (keyNameDebug) console.log("SuperUp Down");
  195. (repeat = 1);
  196. if (pastFirst) {
  197. mode.updateChatText(8, mode.player.gpData.chat);
  198. mode.player.gpData.chatBuffer = [8];
  199. }
  200. pastFirst = true;
  201. }, function(e) {
  202. if (keyNameDebug) console.log("SuperUp Up");
  203. (repeat = 0, 1) && resetNormalness();
  204. mode.updateChatText(8, mode.player.gpData.chat);
  205. mode.player.gpData.chatBuffer = [8];
  206. pastFirst = false;
  207. });
  208. setInterval(function() {
  209. if (!repeat) {
  210. return;
  211. };
  212. mode.player.gpData.p.world.gravity = [0, 0];
  213. mode.player.gpData.p.world.useFrictionGravityOnZeroGravity = false;
  214. mode.player.gpData.p.position[1] += 0.25;
  215. }, 10);
  216. })();
  217. ////// SUPER DOWN
  218. (function() {
  219. var repeat = 0;
  220. var pastFirst = false;
  221. window.keyboardJS.bind("num2", function(e) {
  222. if (keyNameDebug) console.log("SuperDown Down");
  223. (repeat = 1);
  224. if (pastFirst) {
  225. mode.updateChatText(8, mode.player.gpData.chat);
  226. mode.player.gpData.chatBuffer = [8];
  227. }
  228. pastFirst = true;
  229. }, function(e) {
  230. if (keyNameDebug) console.log("SuperDown Up");
  231. (repeat = 0, 1) && resetNormalness();
  232. mode.updateChatText(8, mode.player.gpData.chat);
  233. mode.player.gpData.chatBuffer = [8];
  234. pastFirst = false;
  235. });
  236. setInterval(function() {
  237. if (!repeat) {
  238. return;
  239. };
  240. mode.player.gpData.p.world.gravity = [0, 0];
  241. mode.player.gpData.p.world.useFrictionGravityOnZeroGravity = false;
  242. mode.player.gpData.p.position[1] += -0.25;
  243. }, 10);
  244. })();
  245. ////// SUPER LEFT
  246. (function() {
  247. var repeat = 0;
  248. var pastFirst = false;
  249. window.keyboardJS.bind("num1", function(e) {
  250. if (keyNameDebug) console.log("SuperLeft Down");
  251. (repeat = 1);
  252. if (pastFirst) {
  253. mode.updateChatText(8, mode.player.gpData.chat);
  254. mode.player.gpData.chatBuffer = [8];
  255. }
  256. pastFirst = true;
  257. }, function(e) {
  258. if (keyNameDebug) console.log("SuperLeft Up");
  259. (repeat = 0, 1) && resetNormalness();
  260. mode.updateChatText(8, mode.player.gpData.chat);
  261. mode.player.gpData.chatBuffer = [8];
  262. pastFirst = false;
  263. });
  264. setInterval(function() {
  265. if (!repeat) {
  266. return;
  267. };
  268. mode.player.gpData.p.world.gravity = [0, 0];
  269. mode.player.gpData.p.world.useFrictionGravityOnZeroGravity = false;
  270. mode.player.gpData.p.position[0] += -0.25;
  271. }, 10);
  272. })();
  273. ////// SUPER RIGHT
  274. (function() {
  275. var repeat = 0;
  276. var pastFirst = false;
  277. window.keyboardJS.bind("num3", function(e) {
  278. if (keyNameDebug) console.log("SuperRight Down");
  279. (repeat = 1);
  280. if (pastFirst) {
  281. mode.updateChatText(8, mode.player.gpData.chat);
  282. mode.player.gpData.chatBuffer = [8];
  283. }
  284. pastFirst = true;
  285. }, function(e) {
  286. if (keyNameDebug) console.log("SuperRight Up");
  287. (repeat = 0, 1) && resetNormalness();
  288. mode.updateChatText(8, mode.player.gpData.chat);
  289. mode.player.gpData.chatBuffer = [8];
  290. pastFirst = false;
  291. });
  292. setInterval(function() {
  293. if (!repeat) {
  294. return;
  295. }
  296. mode.player.gpData.p.world.gravity = [0, 0];
  297. mode.player.gpData.p.world.useFrictionGravityOnZeroGravity = false;
  298. mode.player.gpData.p.position[0] += 0.25;
  299. }, 10);
  300. })();
  301. // Text box functions
  302. (function() {
  303. // Prepend html
  304. // imgur / ptZVIHV alternative
  305. var textHtml="";
  306. textHtml += "
    ";
  307. textHtml += "    <center>BrofistIo Hack 0.5.3<br\/>";
  308. textHtml += "    X: <input type=\"text\" id=\"positionX\" maxlength=\"10\" size=\"10\">
    ";
  309. textHtml += "    Y: <input type=\"text\" id=\"positionY\" maxlength=\"10\" size=\"10\">
    ";
  310. textHtml += "    <input type=\"checkbox\" id=\"minimapcb\"> minimap
    ";
  311. textHtml += "    <input type=\"checkbox\" id=\"gravitycb\"> gravity
    ";
  312. textHtml += "    <input type=\"checkbox\" id=\"noclipcb\"> noclip
    ";
  313. textHtml += "    Say: <input type=\"text\" id=\"msgSay\" size=\"10\">
    ";
  314. textHtml += "    <button type=\"button\" id=\"Ghost\" onclick=\"Ghost();\">Ghost<\/button>
    ";
  315. textHtml += "    <button type=\"button\" id=\"Fly\" onclick=\"Fly();\">Fly<\/button>
    ";
  316. textHtml += "    <button type=\"button\" id=\"toDoor\" onclick=\"toDoor();\">Door<\/button>
    ";
  317. textHtml += "    <button type=\"button\" id=\"toSpawn\" onclick=\"toSpawn();\">Spawn<\/button>
    ";
  318. textHtml += "    <button type=\"button\" id=\"antiAfkKick\" onclick=\"antiAfkKick();\">AntiAfkKick<\/button>
    ";
  319. textHtml += "    <button type=\"button\" id=\"noStartTime\" onclick=\"noStartTime();\">NoStartTime<\/button>
    ";
  320. textHtml += "    fNC: <input type=\"text\" id=\"cmd\" size=\"3\">fCC: <input type=\"text\" id=\"cmd2\" size=\"3\">fCS: <input type=\"text\" id=\"cmd11\" size=\"4\">
    ";
  321. textHtml += "    nick: <input type=\"text\" id=\"cmd5\" size=\"2\">skin: <input type=\"text\" id=\"cmd6\" size=\"2\">
    ";
  322. textHtml += "    fTT: <input type=\"text\" id=\"cmd3\" size=\"4\">fDT: <input type=\"text\" id=\"cmd4\" size=\"4\">msg: <input type=\"text\" id=\"cmd7\" size=\"4\">
    ";
  323. textHtml += "    HC: <input type=\"text\" id=\"cmd8\" size=\"4\">sd: <input type=\"text\" id=\"cmd9\" size=\"4\">mc: <input type=\"text\" id=\"cmd10\" size=\"4\">
    ";
  324. textHtml += "    setAngle: <input type=\"text\" id=\"setAngle\" size=\"2\">setAlpha: <input type=\"text\" id=\"setAlpha\" size=\"2\">
    ";
  325. textHtml += "    <button type=\"button\" id=\"ScoreboardHack\" onclick=\"ScoreboardHack();\">ScoreHack(fake)<\/button><button type=\"button\" id=\"sayMapCredits\" onclick=\"sayMapCredits();\">SMC<\/button>
    ";
  326. textHtml += "    <button type=\"button\" id=\"redbros\" style=\"color: yellow; background: red;\" onclick=\"redbros();\">Red Bros</button><button type=\"button\" id=\"noredbros\" style=\"color: yellow; background: red;\" onclick=\"noredbros();\">No Red Bros</button>
    ";
  327. textHtml += "    <input type=\"checkbox\" id=\"fakefuncts\">fake fx
    ";
  328. textHtml += "    ChangeMap: <input type=\"text\" id=\"choosemap\" size=\"2\">
    ";
  329. textHtml += "    Mass: <input type=\"text\" id=\"setmass\" size=\"4\">
    ";
  330. textHtml += "    Damping: <input type=\"text\" id=\"damping\" size=\"2\">
    ";
  331. textHtml += "    <button type=\"button\" id=\"showspawn\" onclick=\"showspawn();\">Show spawn<\/button>
    ";
  332. textHtml += "    <input type=\"radio\" id=\"toDeserve\" onclick=\"toDeserve();\">Self-kick</input></center>
    ";
  333. textHtml += "    <a href=\"https:\/\/pastebin.com\/2tR5qZs2\" style=\"position: relative; float: left; text-decoration: none;\">Map list<\/a><a href=\"https:\/\/gist.github.com\/CuteLifeBot\/f509039ff6259baa32473a362fcda2cf\" style=\"position: relative; float: right; text-decoration: none;\">Help<\/a>";
  334. textHtml += "<\/div>";
  335. textHtml += "
    ";
  336. textHtml += "    <img id=\"minimapimg\" src=\"http:\/\/i.imgur.com\/fjM6WpB.png\" width=\"100%\" height=\"100%\" style=\"position: relative; top: 0; left: 0;\"\/>";
  337. textHtml += "    <svg id=\"minimapsvg\" width=\"100%\" height=\"100%\" style=\"position: absolute; top: 0; left: 0; z-index: 1;\">";
  338. textHtml += "    <circle id=\"posMarker\" cx=\"0\" cy=\"0\" r=\"3\" stroke=\"red\" stroke-width=\"2\" fill=\"black\"><\/circle>";
  339. textHtml += "    <\/svg>";
  340. textHtml += "<\/div>";
  341. document.body.insertBefore(createFragment(textHtml), document.body.childNodes[0]);
  342. // Done prepending html
  343. window.keyboardJS.bind("enter", function(e) {
  344. if(document.getElementById("positionX") === document.activeElement) {
  345. document.getElementById("positionY").focus();
  346. document.getElementById("positionY").select();
  347. } else if(document.getElementById("positionY") === document.activeElement) {
  348. document.getElementById("positionY").blur();
  349. mode.player.gpData.p.position = [
  350. parseFloat(document.getElementById("positionX").value) || -75,
  351. parseFloat(document.getElementById("positionY").value) || 0
  352. ];
  353. }
  354. });
  355. window.keyboardJS.bind("esc", function(e) {
  356. document.getElementById("positionX").focus();
  357. document.getElementById("positionX").select();
  358. });
  359. window.keyboardJS.bind("end", function(e) {
  360. mode.player.gpData.p.position[0] = mode.exitGate.exitGateCounter.refP.p.position[0]; mode.player.gpData.p.position[1] = mode.exitGate.exitGateCounter.refP.p.position[1];
  361. });
  362. window.keyboardJS.bind("home", function(e) {
  363. mode.player.gpData.p.position[0] = mode.spawn.refP.p.position[0]; mode.player.gpData.p.position[1] = mode.spawn.refP.p.position[1];
  364. });
  365. window.keyboardJS.bind("alt", function(e) {
  366. if(document.getElementById("msgSay") === document.activeElement) {
  367. document.getElementById("positionY").blur();
  368. var text = document.getElementById("msgSay").value;
  369. mode.updateChatText(text, mode.player.gpData.chat);
  370. mode.player.gpData.chatBuffer = [text];
  371. }
  372. });
  373. window.keyboardJS.bind("alt", function(e) {
  374. if(document.getElementById("cmd") === document.activeElement) {
  375. document.getElementById("positionY").blur();
  376. var command1 = document.getElementById("cmd").value;
  377. mode.updateChatText(command1, mode.player.gpData.chat);
  378. mode.player.gpData.chatBuffer = [command1];
  379. mode.player.gpData.shapes[1].setColor(command1);
  380. }
  381. });
  382. window.keyboardJS.bind("alt", function(e) {
  383. if(document.getElementById("cmd2") === document.activeElement) {
  384. document.getElementById("positionY").blur();
  385. var command2 = document.getElementById("cmd2").value;
  386. mode.updateChatText(command2, mode.player.gpData.chat);
  387. mode.player.gpData.chatBuffer = [command2];
  388. mode.player.gpData.shapes[0].setColor(command2);
  389. }
  390. });
  391. window.keyboardJS.bind("alt", function(e) {
  392. if(document.getElementById("cmd3") === document.activeElement) {
  393. document.getElementById("positionY").blur();
  394. var command3 = document.getElementById("cmd3").value;
  395. setInterval(function() {
  396. mode.timer.innerText=[command3];
  397. }, 0);
  398. }
  399. });
  400. window.keyboardJS.bind("alt", function(e) {
  401. if(document.getElementById("cmd4") === document.activeElement) {
  402. document.getElementById("positionY").blur();
  403. var command4 = document.getElementById("cmd4").value;
  404. setInterval(function() {
  405. mode.exitGate.applyExitGateData(command4);
  406. }, 0);
  407. }
  408. });
  409. window.keyboardJS.bind("alt", function(e) {
  410. if(document.getElementById("cmd5") === document.activeElement) {
  411. document.getElementById("positionY").blur();
  412. var command5 = document.getElementById("cmd5").value;
  413. mode.player.gpData.name.g.text = [command5];
  414. mode.myName = [command5];
  415. client.name = [command5];
  416. }
  417. });
  418. window.keyboardJS.bind("alt", function(e) {
  419. if(document.getElementById("cmd6") === document.activeElement) {
  420. document.getElementById("positionY").blur();
  421. var command6 = document.getElementById("cmd6").value;
  422. mode.mySkin = [command6];
  423. client.avatar = [command6];
  424. }
  425. });
  426. window.keyboardJS.bind("alt", function(e) {
  427. if(document.getElementById("cmd7") === document.activeElement) {
  428. document.getElementById("positionY").blur();
  429. var command7 = document.getElementById("cmd7").value;
  430. mode.msg = [command7];
  431. }
  432. });
  433. window.keyboardJS.bind("alt", function(e) {
  434. if(document.getElementById("cmd8") === document.activeElement) {
  435. document.getElementById("positionY").blur();
  436. var command8 = document.getElementById("cmd8").value;
  437. mode.hidersCountDisplay.innerText = [command8];
  438. }
  439. });
  440. window.keyboardJS.bind("alt", function(e) {
  441. if(document.getElementById("cmd9") === document.activeElement) {
  442. document.getElementById("positionY").blur();
  443. var command9 = document.getElementById("cmd9").value;
  444. document.getElementById('seekerDistance').innerHTML = [command9];
  445. }
  446. });
  447. window.keyboardJS.bind("alt", function(e) {
  448. if(document.getElementById("cmd10") === document.activeElement) {
  449. document.getElementById("positionY").blur();
  450. var command10 = document.getElementById("cmd10").value;
  451. document.getElementById('mapCredits').innerHTML = [command10];
  452. }
  453. });
  454. window.keyboardJS.bind("alt", function(e) {
  455. if(document.getElementById("cmd11") === document.activeElement) {
  456. document.getElementById("positionY").blur();
  457. var command11 = document.getElementById("cmd11").value;
  458. mode.player.gpData.name.g.style.stroke = [command11];
  459. }
  460. });
  461. window.keyboardJS.bind("alt", function(e) {
  462. if(document.getElementById("choosemap") === document.activeElement) {
  463. document.getElementById("positionY").blur();
  464. var choosemap1 = document.getElementById("choosemap").value;
  465. mode.onChangeMap(choosemap1);
  466. }
  467. });
  468. window.keyboardJS.bind("alt", function(e) {
  469. if(document.getElementById("setmass") === document.activeElement) {
  470. document.getElementById("positionY").blur();
  471. var setmass1 = document.getElementById("setmass").value;
  472. mode.player.gpData.p.mass = setmass1;
  473. }
  474. });
  475. window.keyboardJS.bind("alt", function(e) {
  476. if(document.getElementById("damping") === document.activeElement) {
  477. document.getElementById("positionY").blur();
  478. var damping1 = document.getElementById("damping").value;
  479. mode.player.gpData.p.damping = damping1;
  480. }
  481. });
  482. window.keyboardJS.bind("alt", function(e) {
  483. if(document.getElementById("setAngle") === document.activeElement) {
  484. document.getElementById("positionY").blur();
  485. var setAngle1 = document.getElementById("setAngle").value;
  486. mode.player.gpData.setAngle(setAngle1);
  487. }
  488. });
  489. window.keyboardJS.bind("alt", function(e) {
  490. if(document.getElementById("setAlpha") === document.activeElement) {
  491. document.getElementById("positionY").blur();
  492. var setAlpha1 = document.getElementById("setAlpha").value;
  493. mode.player.gpData.setAlpha(setAlpha1);
  494. }
  495. });
  496. setInterval(function() {
  497. if (!positionFocused()) {
  498. document.getElementById("positionX").value = mode.player.gpData.p.position[0].toFixed(2);
  499. document.getElementById("positionY").value = mode.player.gpData.p.position[1].toFixed(2);
  500. }
  501. }, 100);
  502. })();
  503. // Minimap functions
  504. (function () {
  505. var pastFirst = false;
  506. // Toggle minimap with "7" on numpad
  507. window.keyboardJS.bind("num7", function(e) {
  508. if (pastFirst) {
  509. mode.updateChatText(8, mode.player.gpData.chat);
  510. mode.player.gpData.chatBuffer = [8];
  511. }
  512. pastFirst = true;
  513. if (document.getElementById('minimapcb').checked) {
  514. document.getElementById("minimap").style.display = "none";
  515. document.getElementById("minimap").style.visibility = "hidden";
  516. } else {
  517. document.getElementById("minimap").style.display = "";
  518. document.getElementById("minimap").style.visibility = "visible";
  519. }
  520. document.getElementById('minimapcb').checked = !document.getElementById('minimapcb').checked;
  521. }, function(e) {
  522. mode.updateChatText(8, mode.player.gpData.chat);
  523. mode.player.gpData.chatBuffer = [8];
  524. pastFirst = false;
  525. });
  526. document.getElementById("minimap").style.display = "none";
  527. document.getElementById("minimap").style.visibility = "hidden";
  528. setInterval(function() {
  529. if (document.getElementById('minimapcb').checked) {
  530. updateMinimapPosition();
  531. }
  532. }, 100);
  533. })();
  534. // Fake functs
  535. (function () {
  536. var pastFirst = false;
  537. // Toggle minimap with "7" on numpad
  538. window.keyboardJS.bind("insert", function(e) {
  539. if (pastFirst) {
  540. mode.updateChatText(8, mode.player.gpData.chat);
  541. mode.player.gpData.chatBuffer = [8];
  542. }
  543. pastFirst = true;
  544. if (document.getElementById('fakefuncts').checked) {
  545. document.getElementById("cmd").style.display = "none";
  546. document.getElementById("cmd").style.visibility = "hidden";
  547. document.getElementById("cmd2").style.display = "none";
  548. document.getElementById("cmd2").style.visibility = "hidden";
  549. document.getElementById("cmd3").style.display = "none";
  550. document.getElementById("cmd3").style.visibility = "hidden";
  551. document.getElementById("cmd4").style.display = "none";
  552. document.getElementById("cmd4").style.visibility = "hidden";
  553. document.getElementById("cmd5").style.display = "none";
  554. document.getElementById("cmd5").style.visibility = "hidden";
  555. document.getElementById("cmd6").style.display = "none";
  556. document.getElementById("cmd6").style.visibility = "hidden";
  557. document.getElementById("cmd7").style.display = "none";
  558. document.getElementById("cmd7").style.visibility = "hidden";
  559. document.getElementById("cmd8").style.display = "none";
  560. document.getElementById("cmd8").style.visibility = "hidden";
  561. document.getElementById("cmd9").style.display = "none";
  562. document.getElementById("cmd9").style.visibility = "hidden";
  563. document.getElementById("cmd10").style.display = "none";
  564. document.getElementById("cmd10").style.visibility = "hidden";
  565. document.getElementById("cmd11").style.display = "none";
  566. document.getElementById("cmd11").style.visibility = "hidden";
  567. document.getElementById("ScoreboardHack").style.display = "none";
  568. document.getElementById("ScoreboardHack").style.visibility = "hidden";
  569. document.getElementById("redbros").style.display = "none";
  570. document.getElementById("redbros").style.visibility = "hidden";
  571. document.getElementById("noredbros").style.display = "none";
  572. document.getElementById("noredbros").style.visibility = "hidden";
  573. document.getElementById("setAngle").style.display = "none";
  574. document.getElementById("setAngle").style.visibility = "hidden";
  575. document.getElementById("setAlpha").style.display = "none";
  576. document.getElementById("setAlpha").style.visibility = "hidden";
  577. } else {
  578. document.getElementById("cmd").style.display = "";
  579. document.getElementById("cmd").style.visibility = "visible";
  580. document.getElementById("cmd2").style.display = "";
  581. document.getElementById("cmd2").style.visibility = "visible";
  582. document.getElementById("cmd3").style.display = "";
  583. document.getElementById("cmd3").style.visibility = "visible";
  584. document.getElementById("cmd4").style.display = "";
  585. document.getElementById("cmd4").style.visibility = "visible";
  586. document.getElementById("cmd5").style.display = "";
  587. document.getElementById("cmd5").style.visibility = "visible";
  588. document.getElementById("cmd6").style.display = "";
  589. document.getElementById("cmd6").style.visibility = "visible";
  590. document.getElementById("cmd7").style.display = "";
  591. document.getElementById("cmd7").style.visibility = "visible";
  592. document.getElementById("cmd8").style.display = "";
  593. document.getElementById("cmd8").style.visibility = "visible";
  594. document.getElementById("cmd9").style.display = "";
  595. document.getElementById("cmd9").style.visibility = "visible";
  596. document.getElementById("cmd10").style.display = "";
  597. document.getElementById("cmd10").style.visibility = "visible";
  598. document.getElementById("cmd11").style.display = "";
  599. document.getElementById("cmd11").style.visibility = "visible";
  600. document.getElementById("ScoreboardHack").style.display = "";
  601. document.getElementById("ScoreboardHack").style.visibility = "visible";
  602. document.getElementById("redbros").style.display = "";
  603. document.getElementById("redbros").style.visibility = "visible";
  604. document.getElementById("noredbros").style.display = "";
  605. document.getElementById("noredbros").style.visibility = "visible";
  606. document.getElementById("setAngle").style.display = "";
  607. document.getElementById("setAngle").style.visibility = "visible";
  608. document.getElementById("setAlpha").style.display = "";
  609. document.getElementById("setAlpha").style.visibility = "visible";
  610. }
  611. document.getElementById('fakefuncts').checked = !document.getElementById('fakefuncts').checked;
  612. }, function(e) {
  613. mode.updateChatText(8, mode.player.gpData.chat);
  614. mode.player.gpData.chatBuffer = [8];
  615. pastFirst = false;
  616. });
  617. document.getElementById("cmd").style.display = "none";
  618. document.getElementById("cmd").style.visibility = "hidden";
  619. document.getElementById("cmd2").style.display = "none";
  620. document.getElementById("cmd2").style.visibility = "hidden";
  621. document.getElementById("cmd3").style.display = "none";
  622. document.getElementById("cmd3").style.visibility = "hidden";
  623. document.getElementById("cmd4").style.display = "none";
  624. document.getElementById("cmd4").style.visibility = "hidden";
  625. document.getElementById("cmd5").style.display = "none";
  626. document.getElementById("cmd5").style.visibility = "hidden";
  627. document.getElementById("cmd6").style.display = "none";
  628. document.getElementById("cmd6").style.visibility = "hidden";
  629. document.getElementById("cmd7").style.display = "none";
  630. document.getElementById("cmd7").style.visibility = "hidden";
  631. document.getElementById("cmd8").style.display = "none";
  632. document.getElementById("cmd8").style.visibility = "hidden";
  633. document.getElementById("cmd9").style.display = "none";
  634. document.getElementById("cmd9").style.visibility = "hidden";
  635. document.getElementById("cmd10").style.display = "none";
  636. document.getElementById("cmd10").style.visibility = "hidden";
  637. document.getElementById("cmd11").style.display = "none";
  638. document.getElementById("cmd11").style.visibility = "hidden";
  639. document.getElementById("ScoreboardHack").style.display = "none";
  640. document.getElementById("ScoreboardHack").style.visibility = "hidden";
  641. document.getElementById("redbros").style.display = "none";
  642. document.getElementById("redbros").style.visibility = "hidden";
  643. document.getElementById("noredbros").style.display = "none";
  644. document.getElementById("noredbros").style.visibility = "hidden";
  645. document.getElementById("setAngle").style.display = "none";
  646. document.getElementById("setAngle").style.visibility = "hidden";
  647. document.getElementById("setAlpha").style.display = "none";
  648. document.getElementById("setAlpha").style.visibility = "hidden";
  649. })();
  650. // Gravity toggle
  651. (function () {
  652. var pastFirst = false;
  653. // Toggle gravity with "9" on numpad
  654. window.keyboardJS.bind("num9", function(e) {
  655. if (pastFirst) {
  656. mode.updateChatText(8, mode.player.gpData.chat);
  657. mode.player.gpData.chatBuffer = [8];
  658. }
  659. pastFirst = true;
  660. enableGravity(document.getElementById('gravitycb').checked);
  661. document.getElementById('gravitycb').checked = !document.getElementById('gravitycb').checked;
  662. }, function(e) {
  663. mode.updateChatText(8, mode.player.gpData.chat);
  664. mode.player.gpData.chatBuffer = [8];
  665. pastFirst = false;
  666. });
  667. document.getElementById('gravitycb').checked = true;
  668. })();
  669. // Noclip toggle
  670. (function () {
  671. var pastFirst = false;
  672. // Toggle noclip with "0" on numpad
  673. window.keyboardJS.bind("num0", function(e) {
  674. if (pastFirst) {
  675. mode.updateChatText(8, mode.player.gpData.chat);
  676. mode.player.gpData.chatBuffer = [8];
  677. }
  678. pastFirst = true;
  679. enableNoclip(!document.getElementById('noclipcb').checked);
  680. document.getElementById('noclipcb').checked = !document.getElementById('noclipcb').checked;
  681. }, function(e) {
  682. mode.updateChatText(8, mode.player.gpData.chat);
  683. mode.player.gpData.chatBuffer = [8];
  684. pastFirst = false;
  685. });
  686. document.getElementById('noclipcb').checked = true;
  687. })();
  688. // Fly toggle
  689. (function () {
  690. var pastFirst = false;
  691. // Toggle degrees with "*" on numpad
  692. window.keyboardJS.bind("multiply", function(e) {
  693. if (pastFirst) {
  694. mode.updateChatText(8, mode.player.gpData.chat);
  695. mode.player.gpData.chatBuffer = [8];
  696. }
  697. pastFirst = true;
  698. this.Object.defineProperty(mode, "ghost", {enumerable:!1,configurable:!0,writable:!1,value:!0});
  699. document.getElementById('Fly').checked = !document.getElementById('Fly').checked;
  700. }, function(e) {
  701. mode.updateChatText(8, mode.player.gpData.chat);
  702. mode.player.gpData.chatBuffer = [8];
  703. pastFirst = false;
  704. });
  705. document.getElementById('gravitycb').checked = true;
  706. })();
  707. // Toggle minimap
  708. document.getElementById('minimapcb').onclick = function() {
  709. if (document.getElementById('minimapcb').checked) {
  710. document.getElementById("minimap").style.display = "";
  711. document.getElementById("minimap").style.visibility = "visible";
  712. document.getElementById('minimapcb').blur();
  713. } else {
  714. document.getElementById("minimap").style.display = "none";
  715. document.getElementById("minimap").style.visibility = "hidden";
  716. document.getElementById('minimapcb').blur();
  717. }
  718. };
  719. // Toggle fake functs
  720. document.getElementById('fakefuncts').onclick = function() {
  721. if (document.getElementById('fakefuncts').checked) {
  722. document.getElementById("cmd").style.display = "";
  723. document.getElementById("cmd").style.visibility = "visible";
  724. document.getElementById("cmd2").style.display = "";
  725. document.getElementById("cmd2").style.visibility = "visible";
  726. document.getElementById("cmd3").style.display = "";
  727. document.getElementById("cmd3").style.visibility = "visible";
  728. document.getElementById("cmd4").style.display = "";
  729. document.getElementById("cmd4").style.visibility = "visible";
  730. document.getElementById("cmd5").style.display = "";
  731. document.getElementById("cmd5").style.visibility = "visible";
  732. document.getElementById("cmd6").style.display = "";
  733. document.getElementById("cmd6").style.visibility = "visible";
  734. document.getElementById("cmd7").style.display = "";
  735. document.getElementById("cmd7").style.visibility = "visible";
  736. document.getElementById("cmd8").style.display = "";
  737. document.getElementById("cmd8").style.visibility = "visible";
  738. document.getElementById("cmd9").style.display = "";
  739. document.getElementById("cmd9").style.visibility = "visible";
  740. document.getElementById("cmd10").style.display = "";
  741. document.getElementById("cmd10").style.visibility = "visible";
  742. document.getElementById("cmd11").style.display = "";
  743. document.getElementById("cmd11").style.visibility = "visible";
  744. document.getElementById("ScoreboardHack").style.display = "";
  745. document.getElementById("ScoreboardHack").style.visibility = "visible";
  746. document.getElementById("redbros").style.display = "";
  747. document.getElementById("redbros").style.visibility = "visible";
  748. document.getElementById("noredbros").style.display = "";
  749. document.getElementById("noredbros").style.visibility = "visible";
  750. document.getElementById("setAlpha").style.display = "";
  751. document.getElementById("setAlpha").style.visibility = "visible";
  752. document.getElementById("setAngle").style.display = "";
  753. document.getElementById("setAngle").style.visibility = "visible";
  754. document.getElementById('fakefuncts').blur();
  755. } else {
  756. document.getElementById("cmd").style.display = "none";
  757. document.getElementById("cmd").style.visibility = "hidden";
  758. document.getElementById("cmd2").style.display = "none";
  759. document.getElementById("cmd2").style.visibility = "hidden";
  760. document.getElementById("cmd3").style.display = "none";
  761. document.getElementById("cmd3").style.visibility = "hidden";
  762. document.getElementById("cmd4").style.display = "none";
  763. document.getElementById("cmd4").style.visibility = "hidden";
  764. document.getElementById("cmd5").style.display = "none";
  765. document.getElementById("cmd5").style.visibility = "hidden";
  766. document.getElementById("cmd6").style.display = "none";
  767. document.getElementById("cmd6").style.visibility = "hidden";
  768. document.getElementById("cmd7").style.display = "none";
  769. document.getElementById("cmd7").style.visibility = "hidden";
  770. document.getElementById("cmd8").style.display = "none";
  771. document.getElementById("cmd8").style.visibility = "hidden";
  772. document.getElementById("cmd9").style.display = "none";
  773. document.getElementById("cmd9").style.visibility = "hidden";
  774. document.getElementById("cmd10").style.display = "none";
  775. document.getElementById("cmd10").style.visibility = "hidden";
  776. document.getElementById("cmd11").style.display = "none";
  777. document.getElementById("cmd11").style.visibility = "hidden";
  778. document.getElementById("ScoreboardHack").style.display = "none";
  779. document.getElementById("ScoreboardHack").style.visibility = "hidden";
  780. document.getElementById("redbros").style.display = "none";
  781. document.getElementById("redbros").style.visibility = "hidden";
  782. document.getElementById("noredbros").style.display = "none";
  783. document.getElementById("noredbros").style.visibility = "hidden";
  784. document.getElementById("setAngle").style.display = "none";
  785. document.getElementById("setAngle").style.visibility = "hidden";
  786. document.getElementById("setAlpha").style.display = "none";
  787. document.getElementById("setAlpha").style.visibility = "hidden";
  788. document.getElementById('fakefuncts').blur();
  789. }
  790. };
  791. // Toggle gravity
  792. document.getElementById('gravitycb').onclick = function() {
  793. enableGravity(!document.getElementById('gravitycb').checked);
  794. document.getElementById('gravitycb').blur();
  795. };
  796. // Toggle noclip
  797. document.getElementById('noclipcb').onclick = function() {
  798. enableNoclip(document.getElementById('noclipcb').checked);
  799. document.getElementById('noclipcb').blur();
  800. };
  801. // Toggle Shake
  802. document.getElementById('Shake').onclick = function() {
  803. Shake(document.getElementById('Shake').checked);
  804. document.getElementById('Shake').blur();
  805. };
  806. // Toggle lightblueNick
  807. document.getElementById('lightblueNick').onclick = function() {
  808. lightblueNick(document.getElementById('lightblueNick').checked);
  809. document.getElementById('lightblueNick').blur();
  810. };
  811. // Toggle yellowNick
  812. document.getElementById('yellowNick').onclick = function() {
  813. yellowNick(document.getElementById('yellowNick').checked);
  814. document.getElementById('yellowNick').blur();
  815. };
  816. // Toggle yellowNick
  817. document.getElementById('flipall').onclick = function() {
  818. flipall(document.getElementById('flipall').checked);
  819. document.getElementById('flipall').blur();
  820. };
  821. // Toggle redNick
  822. document.getElementById('redChat').onclick = function() {
  823. redChat(document.getElementById('redChat').checked);
  824. document.getElementById('redChat').blur();
  825. };
  826. // Toggle greenNick
  827. document.getElementById('greenChat').onclick = function() {
  828. greenChat(document.getElementById('greenChat').checked);
  829. document.getElementById('greenChat').blur();
  830. };
  831. // Toggle blueNick
  832. document.getElementById('blueChat').onclick = function() {
  833. blueChat(document.getElementById('blueChat').checked);
  834. document.getElementById('blueChat').blur();
  835. };
  836. // Toggle lightblueNick
  837. document.getElementById('lightblueChat').onclick = function() {
  838. lightblueChat(document.getElementById('lightblueChat').checked);
  839. document.getElementById('lightblueChat').blur();
  840. };
  841. // Toggle autofinish
  842. document.getElementById('autoFinish').onclick = function() {
  843. autoFinish(document.getElementById('autoFinish').checked);
  844. document.getElementById('autoFinish').blur();
  845. };
  846. // Toggle yellowNick
  847. document.getElementById('yellowChat').onclick = function() {
  848. yellowChat(document.getElementById('yellowChat').checked);
  849. document.getElementById('yellowChat').blur();
  850. };
  851. // Toggle ctfs
  852. document.getElementById('A_ctfs').onclick = function() {
  853. A_ctfs(document.getElementById('A_ctfs').checked);
  854. document.getElementById('A_ctfs').blur();
  855. };
  856. // Toggle jumphack
  857. document.getElementById('Jumphack').onclick = function() {
  858. Jumphack(document.getElementById('Jumphack').checked);
  859. document.getElementById('Jumphack').blur();
  860. };
  861. // Toggle ctfs
  862. document.getElementById('B_ctfs').onclick = function() {
  863. B_ctfs(document.getElementById('B_ctfs').checked);
  864. document.getElementById('B_ctfs').blur();
  865. };
  866. // Toggle ctfs
  867. document.getElementById('C_ctfs').onclick = function() {
  868. C_ctfs(document.getElementById('C_ctfs').checked);
  869. document.getElementById('C_ctfs').blur();
  870. };
  871. // Toggle ctfs
  872. document.getElementById('D_ctfs').onclick = function() {
  873. D_ctfs(document.getElementById('D_ctfs').checked);
  874. document.getElementById('D_ctfs').blur();
  875. };
  876. // Toggle ctfs
  877. document.getElementById('E_ctfs').onclick = function() {
  878. E_ctfs(document.getElementById('E_ctfs').checked);
  879. document.getElementById('E_ctfs').blur();
  880. };
  881. // Toggle ctfs
  882. document.getElementById('F_ctfs').onclick = function() {
  883. F_ctfs(document.getElementById('F_ctfs').checked);
  884. document.getElementById('F_ctfs').blur();
  885. };
  886. // Toggle NCK
  887. document.getElementById('Nck_A').onclick = function() {
  888. Nck_A(document.getElementById('Nck_A').checked);
  889. document.getElementById('Nck_A').blur();
  890. };
  891. // Toggle NCK2
  892. document.getElementById('Nck_B').onclick = function() {
  893. Nck_B(document.getElementById('Nck_B').checked);
  894. document.getElementById('Nck_B').blur();
  895. };
  896. // Toggle NCK3
  897. document.getElementById('Nck_C').onclick = function() {
  898. Nck_C(document.getElementById('Nck_C').checked);
  899. document.getElementById('Nck_C').blur();
  900. };
  901. // Toggle CHT1
  902. document.getElementById('Cht_A').onclick = function() {
  903. Cht_A(document.getElementById('Cht_A').checked);
  904. document.getElementById('Cht_A').blur();
  905. };
  906. // Toggle CHT2
  907. document.getElementById('Cht_B').onclick = function() {
  908. Cht_B(document.getElementById('Cht_B').checked);
  909. document.getElementById('Cht_B').blur();
  910. };
  911. // Toggle CHT3
  912. document.getElementById('Cht_C').onclick = function() {
  913. Cht_C(document.getElementById('Cht_C').checked);
  914. document.getElementById('Cht_C').blur();
  915. };
  916. // Toggle ghost
  917. document.getElementById('ghost').onclick = function() {
  918. ghost(document.getElementById('ghost').checked);
  919. document.getElementById('ghost').blur();
  920. };
  921. // Toggle invis
  922. document.getElementById('Invisible').onclick = function() {
  923. Invisible(document.getElementById('Invisible').checked);
  924. document.getElementById('Invisible').blur();
  925. };
  926. // Toggle ZIndex
  927. document.getElementById('ZIndex').onclick = function() {
  928. ZIndex(document.getElementById('ZIndex').checked);
  929. document.getElementById('ZIndex').blur();
  930. };
  931. // Toggle Bounce
  932. document.getElementById('Bounce').onclick = function() {
  933. Bounce(document.getElementById('Bounce').checked);
  934. document.getElementById('Bounce').blur();
  935. };
  936. // Toggle fly
  937. document.getElementById('fly').onclick = function() {
  938. fly(document.getElementById('fly').checked);
  939. document.getElementById('fly').blur();
  940. };
  941. // Toggle timer
  942. document.getElementById('timer1').onclick = function() {
  943. timer1(document.getElementById('timer1').checked);
  944. document.getElementById('timer1').blur();
  945. };
  946. // Minimap handle clicks
  947. document.getElementById('minimap').onmouseup = function(e) {
  948. var relative_pixel_pos = getRelativeXY(e, 'minimap');
  949. warpToLocation(relative_pixel_pos);
  950. };
  951. }
  952. function enableGravity(on) {
  953. if (on) {
  954. mode.player.gpData.p.world.gravity = [0, 0];
  955. mode.player.gpData.p.world.useFrictionGravityOnZeroGravity = false;
  956. mode.ghost = !0;
  957. window.denyNormalness = true;
  958. } else {
  959. if (mode.player.gpData.getAlpha() == 1) mode.ghost = !1;
  960. window.denyNormalness = false;
  961. resetNormalness();
  962. }
  963. }
  964. function enableNoclip(on) {
  965. if (on) {
  966. mode.player.gpData.p.collisionResponse=0;
  967. } else {
  968. mode.player.gpData.p.collisionResponse=1;
  969. mode.player.gpData.p.shapes[0].vertices = [[-0.15000000596046448, -0.5], [0.15000000596046448, -0.5], [0.15000000596046448, 0.5], [-0.15000000596046448, 0.5]];
  970. }
  971. }
  972. function degrees(on) {
  973. if (on) {
  974. mode.player.gpData.playerShape.refP.setAngle(180);
  975. } else {
  976. mode.player.gpData.playerShape.refP.setAngle(0);
  977. }
  978. }
  979. function ghost(on) {
  980. if (on) {
  981. network.gsSocket.emit(mode.c2sEvents.rGho);
  982. } else {
  983. mode.none=0;
  984. }
  985. }
  986. function redNick(on) {
  987. if (on) {
  988. mode.player.gpData.shapes[1].setColor("red");
  989. } else {
  990. mode.player.gpData.shapes[1].setColor("white");
  991. }
  992. }
  993. function flipall(on) {
  994. if (on) {
  995. mode.playerData[0].angle=180;
  996. } else {
  997. mode.playerData[0].angle=0;
  998. }
  999. }
  1000. function greenNick(on) {
  1001. if (on) {
  1002. mode.player.gpData.shapes[1].setColor("lime");
  1003. } else {
  1004. mode.player.gpData.shapes[1].setColor("white");
  1005. }
  1006. }
  1007. function blueNick(on) {
  1008. if (on) {
  1009. mode.player.gpData.shapes[1].setColor("blue");
  1010. } else {
  1011. mode.player.gpData.shapes[1].setColor("white");
  1012. }
  1013. }
  1014. function lightblueNick(on) {
  1015. if (on) {
  1016. mode.player.gpData.shapes[1].setColor("lightblue");
  1017. } else {
  1018. mode.player.gpData.shapes[1].setColor("white");
  1019. }
  1020. }
  1021. function yellowNick(on) {
  1022. if (on) {
  1023. mode.player.gpData.shapes[1].setColor("yellow");
  1024. } else {
  1025. mode.player.gpData.shapes[1].setColor("white");
  1026. }
  1027. }
  1028. function redChat(on) {
  1029. if (on) {
  1030. mode.player.gpData.shapes[0].setColor("red");
  1031. } else {
  1032. mode.player.gpData.shapes[0].setColor("black");
  1033. }
  1034. }
  1035. function greenChat(on) {
  1036. if (on) {
  1037. mode.player.gpData.shapes[0].setColor("lime");
  1038. } else {
  1039. mode.player.gpData.shapes[0].setColor("black");
  1040. }
  1041. }
  1042. function blueChat(on) {
  1043. if (on) {
  1044. mode.player.gpData.shapes[0].setColor("blue");
  1045. } else {
  1046. mode.player.gpData.shapes[0].setColor("black");
  1047. }
  1048. }
  1049. function lightblueChat(on) {
  1050. if (on) {
  1051. mode.player.gpData.shapes[0].setColor("lightblue");
  1052. } else {
  1053. mode.player.gpData.shapes[0].setColor("black");
  1054. }
  1055. }
  1056. function yellowChat(on) {
  1057. if (on) {
  1058. mode.player.gpData.shapes[0].setColor("yellow");
  1059. } else {
  1060. mode.player.gpData.shapes[0].setColor("black");
  1061. }
  1062. }
  1063. function A_ctfs(on) {
  1064. if (on) {
  1065. mode.player.gpData.p.ref.shapes[1].setAngle(45);
  1066. } else {
  1067. mode.player.gpData.p.ref.shapes[1].setAngle(0);
  1068. }
  1069. }
  1070. function B_ctfs(on) {
  1071. if (on) {
  1072. mode.player.gpData.p.ref.shapes[1].setAngle(135);
  1073. } else {
  1074. mode.player.gpData.p.ref.shapes[1].setAngle(0);
  1075. }
  1076. }
  1077. function C_ctfs(on) {
  1078. if (on) {
  1079. mode.player.gpData.p.ref.shapes[1].setAngle(180);
  1080. } else {
  1081. mode.player.gpData.p.ref.shapes[1].setAngle(0);
  1082. }
  1083. }
  1084. function D_ctfs(on) {
  1085. if (on) {
  1086. mode.player.gpData.p.ref.shapes[0].setAngle(45);
  1087. } else {
  1088. mode.player.gpData.p.ref.shapes[0].setAngle(0);
  1089. }
  1090. }
  1091. function E_ctfs(on) {
  1092. if (on) {
  1093. mode.player.gpData.p.ref.shapes[0].setAngle(135);
  1094. } else {
  1095. mode.player.gpData.p.ref.shapes[0].setAngle(0);
  1096. }
  1097. }
  1098. function F_ctfs(on) {
  1099. if (on) {
  1100. mode.player.gpData.p.ref.shapes[0].setAngle(180);
  1101. } else {
  1102. mode.player.gpData.p.ref.shapes[0].setAngle(0);
  1103. }
  1104. }
  1105. function Nck_A(on) {
  1106. if (on) {
  1107. mode.player.gpData.p.ref.shapes[1].setFontSize(23);
  1108. } else {
  1109. mode.player.gpData.p.ref.shapes[1].setFontSize(18);
  1110. }
  1111. }
  1112. function Nck_B(on) {
  1113. if (on) {
  1114. mode.player.gpData.p.ref.shapes[1].setFontSize(29);
  1115. } else {
  1116. mode.player.gpData.p.ref.shapes[1].setFontSize(18);
  1117. }
  1118. }
  1119. function Nck_C(on) {
  1120. if (on) {
  1121. mode.player.gpData.p.ref.shapes[1].setFontSize(35);
  1122. } else {
  1123. mode.player.gpData.p.ref.shapes[1].setFontSize(18);
  1124. }
  1125. }
  1126. function Cht_A(on) {
  1127. if (on) {
  1128. mode.player.gpData.p.ref.shapes[0].setFontSize(23);
  1129. } else {
  1130. mode.player.gpData.p.ref.shapes[0].setFontSize(18);
  1131. }
  1132. }
  1133. function Cht_B(on) {
  1134. if (on) {
  1135. mode.player.gpData.p.ref.shapes[0].setFontSize(29);
  1136. } else {
  1137. mode.player.gpData.p.ref.shapes[0].setFontSize(18);
  1138. }
  1139. }
  1140. function Cht_C(on) {
  1141. if (on) {
  1142. mode.player.gpData.p.ref.shapes[0].setFontSize(35);
  1143. } else {
  1144. mode.player.gpData.p.ref.shapes[0].setFontSize(18);
  1145. }
  1146. }
  1147. function Invisible(on) {
  1148. if (on) {
  1149. mode.player.gpData.g.visible=false;
  1150. } else {
  1151. mode.player.gpData.g.visible=true;
  1152. }
  1153. }
  1154. function ZIndex(on) {
  1155. if (on) {
  1156. mode.player.gpData.g.ref.setZIndex(99);
  1157. } else {
  1158. mode.player.gpData.g.ref.setZIndex(1);
  1159. }
  1160. }
  1161. function Bounce(on) {
  1162. if (on) {
  1163. mode.player.gpData.p.angularVelocity=100;
  1164. } else {
  1165. mode.player.gpData.p.angularVelocity=0;
  1166. }
  1167. }
  1168. function fly(on) {
  1169. if (on) {
  1170. this.Object.defineProperty(mode, "ghost", {enumerable:!1,configurable:!0,writable:!1,value:!0});
  1171. } else {
  1172. this.Object.defineProperty(mode, "ghost", {enumerable:!1,configurable:!0,writable:!1,value:!1});
  1173. }
  1174. }
  1175. function testmode(on) {
  1176. if (on) {
  1177. mode.createPlayer=function(){for(var p=gp.load(mode.playerData,gp)[0],a=0;a<p.shapes.length;a++)"chat"==p.shapes[a].id&&(p.chat=p.shapes[a],p.chat.g.style.fill="blue",p.chat.g.style.stroke="white",p.chat.g.style.strokeThickness=3),"name"==p.shapes[a].id&&(p.name=p.shapes[a],p.name.g.style.fill="red",p.name.g.style.stroke="black",p.name.g.style.strokeThickness=3),"player"==p.shapes[a].id&&(p.shapes[a].setAlpha(0),p.shapes[a].p.collisionGroup=Math.pow(2,0),p.shapes[a].p.collisionMask=5,p.playerShape=
  1178. p.shapes[a],p.iAmPlayer=!0);p.ray=physics.createRay();p.ray.collisionGroup=Math.pow(2,1);p.ray.collisionMask=1;p.p.fixedRotation=!0;p.p.damping=.9;physics.updateMass(p.p,1);return p};
  1179. } else {
  1180. mode.createPlayer=function(){for(var p=gp.load(mode.playerData,gp)[0],a=0;a<p.shapes.length;a++)"chat"==p.shapes[a].id&&(p.chat=p.shapes[a],p.chat.g.style.fill="black",p.chat.g.style.stroke="white",p.chat.g.style.strokeThickness=3),"name"==p.shapes[a].id&&(p.name=p.shapes[a],p.name.g.style.fill="white",p.name.g.style.stroke="black",p.name.g.style.strokeThickness=3),"player"==p.shapes[a].id&&(p.shapes[a].setAlpha(0),p.shapes[a].p.collisionGroup=Math.pow(2,1),p.shapes[a].p.collisionMask=5,p.playerShape=
  1181. p.shapes[a],p.iAmPlayer=!0);p.ray=physics.createRay();p.ray.collisionGroup=Math.pow(2,1);p.ray.collisionMask=1;p.p.fixedRotation=!0;p.p.damping=.9;physics.updateMass(p.p,1);return p};