BF2:Demo locks

From BattleWiki

Note that if you run a server and do either of these first two tricks, you will probably get banned from EA's public master server list.


Removing the 12-minute timelimit in single player mode

This fix will still have the countdown clock, but once it reaches 0:00 nothing will happen.

  • Go to 'Battlefield 2 Demo\mods\bf2\python\game\gamemodes'
  • Open 'gpm_cq.py'
  • Locate the line:
host.registerHandler('TimeLimitReached', onTimeLimitReached, 1)
  • Place a # in front of it so it appears like
#host.registerHandler('TimeLimitReached', onTimeLimitReached, 1)

This may work for the server as well. I know the various Shack demo servers are all unlocked.


Unlock kits

WARNING: EA has informed us that weapon unlocks are a bannable offense. Use at your own risk. (http://www.eagames.com/official/battlefield/battlefield2/us/editorial.jsp?src=communityupdate_061405)

By default in the normal game, playing a certain class for awhile will unlock a second kit for that class, with a slightly different main weapon. To unlock these in the demo, do the following:

  • Go to 'Battlefield 2 Demo\python\bf2\stats'
  • Open 'unlocks.py'
  • Locate the line:
defaultUnlocks = [0, 0, 0, 0, 0, 0, 0]
  • Change the 0s to 1s so it becomes:
defaultUnlocks = [1, 1, 1, 1, 1, 1, 1]

Now when choosing your kit, you can hit the little double-arrow button next to the kit to toggle between the two weapons.

Note that this doesn't work with patch 1.01 or later.

Show FPS

This is really more of a command tip than an unlock, but to get FPS drawn ingame, pull up the console (default key: '~') and type:

renderer.drawFps 1

The console tab-completes, so just type ren and hit tab (possibly twice) for a short list of stuff.