PDA

View Full Version : Vehicle Spawning


IHM
06-30-2006, 03:27 PM
Can anyone help me, simple question, don't laugh, can someone tell me how to copy vehicle spawn point from other versions of a map? Such as on the 32 and 64 player versions of Dalian Plant there is a heli spawn point at the Maintenance
Building, but on the 16 player version there isn't. Can anyone help me with this, I just wanna put the heli on the 16 version, basically so its more fun in co-op mode, want to have heli fights on co-op on Dalian and a few others.

Thanks.

GlobalFear
07-07-2006, 05:12 PM
Navigate to "C:\Program Files\EA GAMES\Battlefield 2\mods\bf2\Levels\Dalian_plant" and open "server.zip" in WinRAR.

Inside the .zip navigate to "GameModes\gpm_cq\32" and open "GamePlayObjects.con"

Locate the following in the code:
rem [ObjectSpawnerTemplate: CPNAME_DP_32_reactors_shooper]
ObjectTemplate.create ObjectSpawner CPNAME_DP_32_reactors_shooper
ObjectTemplate.activeSafe ObjectSpawner CPNAME_DP_32_reactors_shooper
ObjectTemplate.modifiedByUser esj
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.setObjectTemplate 2 AHE_AH1Z
rem [ObjectSpawner: CPNAME_DP_32_reactors_shooper]
Object.create CPNAME_DP_32_reactors_shooper
Object.absolutePosition 115.086/153.200/-95.006
Object.rotation -32.000/0.000/0.000
Object.setControlPointId 24
Object.layer 4
Now close that .con and go back to WinRAR.
Within the .zip navigate to :"GameModes\gpm_coop\16" and open the "GamePlayObjects.con" in notepad.
Once there paste the first chunk of code you found under the following heading:
rem ********** Object Spawner **********

So it looks like:
rem ********** Object Spawner **********
rem [ObjectSpawnerTemplate: CPNAME_DP_32_reactors_shooper]
ObjectTemplate.create ObjectSpawner CPNAME_DP_32_reactors_shooper
ObjectTemplate.activeSafe ObjectSpawner CPNAME_DP_32_reactors_shooper
ObjectTemplate.modifiedByUser esj
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.setObjectTemplate 2 AHE_AH1Z

rem [ObjectSpawnerTemplate: CPNAME_DP_SP16_powerplant_AT]
ObjectTemplate.create Objec............. <SNIP>

Place the second under the following heading:
if v_arg1 == host

So it looks like:
if v_arg1 == host

rem [ObjectSpawner: CPNAME_DP_32_reactors_shooper]
Object.create CPNAME_DP_32_reactors_shooper
Object.absolutePosition 115.086/153.200/-95.006
Object.rotation -32.000/0.000/0.000
Object.setControlPointId 24
Object.layer 4

rem [ObjectSpawner: CPNAME_DP_SP16_powerplant_AT]
Object.create CPNAM............. <SNIP>


A Cobra will now spawn when the corrosponding base is controlled by the USA.

Helpful tricks: CTRL + F Opens the "Find" Window.