Page 1 of 1

[?] removing vehicles

Posted: 2011-12-06 23:22
by Kevokpo
Hi guys, i was just wondering if someone could help me or just show me a tutorial, to remove vehicles from the coop mod of BF2 or PR. for example Strike at Karkand (BF2), too small, urban map, good for infantry only, i would like to remove the humvees, APCs and Tanks. Or in Karbala (PR) removing the Tanks, APCs, and, choppers, leaving only the humvees.



thanks

Re: removing vehicles

Posted: 2011-12-06 23:55
by Hulabi
How about have them all on a 999999second delayed spawn? Quick and easy

Re: removing vehicles

Posted: 2011-12-07 18:32
by temexter
You can do it with bf2editor. This requires that you of cource have it installed and have some skills requided. There's a couple of tutorials around in moding tutorials section.

Maybe this one would be the right place to start: https://www.realitymod.com/forum/f189-m ... orted.html

I digged up and served it just for you on a silver plate, so please read and assimilate :)

Easier way to do the thing would be:
  • Open \bf2\mods\pr\levels\karbala\server.zip with eg. 7zip
  • Extract relevant gameplayobjects.con, ie. \GameModes\gpm_coop\64\gameplayobjects.con
  • Open the gameplayobjects.con in your favorite editor (i'd recommend notepad+)
  • Delete the object spawners you want away (or comment the lines with rem) like in following example:
    (or change the spawndelay like Hulabi said)

    Code: Select all

    rem [ObjectSpawnerTemplate: tank]
    [color=Red]rem [/color]ObjectTemplate.create ObjectSpawner tank
    [color=Red]rem [/color]ObjectTemplate.activeSafe ObjectSpawner tank
    [color=Red]rem [/color]ObjectTemplate.modifiedByUser "WSU"
    [color=Red]rem [/color]ObjectTemplate.isNotSaveable 1
    [color=Red]rem [/color]ObjectTemplate.hasMobilePhysics 0
    [color=Red]rem [/color]ObjectTemplate.setObjectTemplate 2 us_tnk_m1a1_alt
    [color=Red]rem [/color]ObjectTemplate.minSpawnDelay 900
    [color=Red]rem [/color]ObjectTemplate.maxSpawnDelay 900
    [color=Red]rem [/color]ObjectTemplate.TimeToLive 1200
    [color=Red]rem [/color]ObjectTemplate.team 2
    [color=Red]rem [/color]ObjectTemplate.teamOnVehicle 1
    
  • Save the file and put it back to server.zip file
  • Try it and like it
Anyroad, you should make copy of your mod directory (bf2\mods\pr) and name it like pr_edit, so you wont mess your pr client ie. make it unplayable on coop servers.

Re: removing vehicles

Posted: 2011-12-07 22:26
by Kevokpo
you guys are great!!! thank for the help, for the tip and your time also. ;)

Re: removing vehicles

Posted: 2011-12-08 10:41
by temexter
Ur welcome m8. Happy to help :)