Kilroy's BF2 Demo

BF2 Demo Mods.

Give Soldiers Unlimited Stamina:

Place the code below in "GamePlayObjects.con" file to give all BF2 Soldiers  Unlimited Stamina.

 

rem  ---- Unlimited Soldier Stamina ----

ObjectTemplate.active us_heavy_soldier
ObjectTemplate.SprintRecoverTime 2
ObjectTemplate.SprintDissipationTime 80
ObjectTemplate.SprintLimit 0.05
ObjectTemplate.SprintLossAtJump 0.01


ObjectTemplate.active us_light_soldier
ObjectTemplate.SprintRecoverTime 2
ObjectTemplate.SprintDissipationTime 80
ObjectTemplate.SprintLimit 0.05
ObjectTemplate.SprintLossAtJump 0.01


ObjectTemplate.active mec_heavy_soldier
ObjectTemplate.SprintRecoverTime 2
ObjectTemplate.SprintDissipationTime 80
ObjectTemplate.SprintLimit 0.05
ObjectTemplate.SprintLossAtJump 0.01


ObjectTemplate.active mec_light_soldier
ObjectTemplate.SprintRecoverTime 2
ObjectTemplate.SprintDissipationTime 80
ObjectTemplate.SprintLimit 0.05
ObjectTemplate.SprintLossAtJump 0.01

rem  --- end unlimited soldier stamina ---



Remove the time limit in Battlefield 2 DEMO

Open up the file gpm_cq.py with notepad, it's under Battlefield 2 Standalone Demo Server\mods\bf2\python\game\gamemodes

Locate the line

host.registerHandler('TimeLimitReached', onTimeLimitReached, 1)

Place a # in front of it so it appears like

#host.registerHandler('TimeLimitReached', onTimeLimitReached, 1)

This will make the 12 min timer still appear but once it hits 0:00 the clock will disappear and you will be able to play until the tickets expire.

To remove the display timer edit your serversettings.con file and change sv.timelimit to sv.timelimit 1000000000000

Unlock Weapons

Edit the "unlocks.py" file in the "\python\bf2\stats" folder.
Change "defaultUnlocks = [0, 0, 0, 0, 0, 0, 0]" to "defaultUnlocks = [1, 1, 1, 1, 1, 1, 1]".

Less Wait Time / More Vehicles

A Jet takes off from the Carrier and another Jet re-spawns in the same place in only a few seconds. Open "GamePlayObjects.con" with NotePad and look for this code. It's the very first bit off code so it's not hard to find.

rem ********** Object Spawner **********
rem [ObjectSpawnerTemplate: cpname_go_32_uscarrier_jet10]
ObjectTemplate.create ObjectSpawner cpname_go_32_uscarrier_jet10
ObjectTemplate.activeSafe ObjectSpawner cpname_go_32_uscarrier_jet10
ObjectTemplate.modifiedByUser nla
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.setObjectTemplate 1 air_f35b
ObjectTemplate.setObjectTemplate 2 air_f35b
ObjectTemplate.minSpawnDelay 50
ObjectTemplate.maxSpawnDelay 70

Make the changes you see in green to your "GamePlayObjects.con" file.

rem ********** Object Spawner **********
rem [ObjectSpawnerTemplate: cpname_go_32_uscarrier_jet10]
ObjectTemplate.create ObjectSpawner cpname_go_32_uscarrier_jet10
ObjectTemplate.activeSafe ObjectSpawner cpname_go_32_uscarrier_jet10
ObjectTemplate.modifiedByUser nla
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.MaxNrOfObjectSpawned 3
ObjectTemplate.setObjectTemplate 1 air_f35b
ObjectTemplate.setObjectTemplate 2 air_f35b
ObjectTemplate.minSpawnDelay 5
ObjectTemplate.maxSpawnDelay 7

D/L Alot of Aircraft gameplayobjects.con.zip