Reputation
Next privilege 125 Rep.
Vote down
Badges
2
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Sep
24
awarded  Autobiographer
Mar
16
awarded  Supporter
Aug
23
comment Wolfenstein 3D is now available for free online. But is this version any different than the original?
The part of the code that sets the different debug flags is commented out in game.js (line 1236-1293). All interesting variables like ammo, weapon, score, health etc is stored in an object called currentGame. Unfortunately this object is stored in an internal variable in object Wolf.Game and I haven't found any external references so at first look it seams impossible to manipulate the flags. However, if you use Google Chrome and set a breakpoint at row 503 in game.js you could modify Local.player.flags to 16 (FL_GODMODE) and you become invincible! While you at it, set ammo to 10000!