xstax981
Community Modder
+93|6888
Now, this guide *hopes* to allow you to understand the basics of editing vehicle drops. I've done some research into this. If something is missing/incorrect, just tell me.

Where should we start off? How about where to change the type of vehicle that drops?
To change what vehicle drops, you should first off know that it is level specific. It isn't inside the objects_server.zip file. It is in the server.zip file of a level.

The path should look like this

Battlefield 2\mods\yourmod\Levels\somelevel\server.zip

In the server.zip file, is a file called init.con. That is where you can change the vehicle type.


Okay, so I found the init.con file. Now what?
Open it, and scroll to the bottom. You should see something like:

Code:

gameLogic.setTeamDropVehicle 1 "jep_paratrooper"
gameLogic.setTeamDropVehicle 2 "jeep_faav"
Where Team 1 is MEC/China, and Team 2 is USMC.

If you don't see anywhere in the init.con file, it is in this path:

server.zip -> GameModes -> gpm_somemode -> GamePlayObjects.con

If you find it in this path, that means that each size has a different kind of vehicle that drops.

I want to change what drops!
Whoa, first you gotta know what kind of vehicle is which. You just can't replace jeep_faav with TANK and expect it to work. For that, you go to your objects_server.zip file. This is a compiled list of which one is which I think:

Code:

APC's:
------------------------------------------------------------------------
apc_wz551 -> Chinese APC
apc_btr90 -> MEC APC
USAPC_LAV25 -> USMC APC
------------------------------------------------------------------------
Anti Air:
------------------------------------------------------------------------
aav_tunguska -> Tunguska AA Vehicle
aav_type95 -> PGZ-95 AA vehicle
usaav_m6 -> Linebacker AA Vehicle
------------------------------------------------------------------------
Light Jeeps:
------------------------------------------------------------------------
JEEP_FAAV -> DPV (I think)
jep_mec_paratrooper -> MEC Buggy
JEP_Paratrooper -> FAV (I think)
------------------------------------------------------------------------
Heavy jeeps:
------------------------------------------------------------------------
jep_vodnik -> Vodnik
jep_nanjing -> Chinese Armedcar
USJEP_HMMWV -> USMC Humvee
------------------------------------------------------------------------
Tanks:
------------------------------------------------------------------------
RUTNK_T90 -> T-90
tnk_type98 -> Type 98 (Chinese tank)
USTNK_M1A2 -> M1A2 (USMC Tank)
------------------------------------------------------------------------
Boats:
------------------------------------------------------------------------
boat_rib -> Boat
------------------------------------------------------------------------
Attack Helicopters:
------------------------------------------------------------------------
ahe_ah1z -> USMC Chopper
ahe_havoc -> MEC Chopper
ahe_z10 -> Chinese Chopper
------------------------------------------------------------------------
Transport Helicopters:
------------------------------------------------------------------------
chthe_z8 -> Chinese Transport chopper
the_mi17 -> MEC Transport chopper
usthe_uh60 -> Blackhawk (USMC Transport Chopper)
------------------------------------------------------------------------
Fighter Jets:
------------------------------------------------------------------------
air_f35b -> USMC F-35 VTOL Fighter
air_j10 -> Chinese J-10 Fighter
ruair_mig29 -> MiG 29 Fulcrum (MEC Fighter)
usair_f18 -> USMC F-18 Fighter
------------------------------------------------------------------------
Bomber Jets:
------------------------------------------------------------------------
air_su30mkk -> Chinese Su-30 Bomber
usair_f15 -> USMC F-15 Bomber
RUAIR_SU34 -> MEC Su-34 Bomber
------------------------------------------------------------------------
Misc.:
------------------------------------------------------------------------
parachute -> Parachute
supply_parachute -> Supply crate parachute
uav_pred -> UAV Plane
------------------------------------------------------------------------
Unknown:
------------------------------------------------------------------------
wreck_btr90_static -> ? (Probably a dummy)
wreck_f15_static -> ? (Probably a dummy)
wreck_uh60_static -> ? (Probably a dummy)
As you can see, you'd need to replace jeep_faav with something on the left collumn. Another thing worth mentioning is that the vehicle you want to replace the FAV with must be on the map already. For example, I couldn't drop a jet in Karkand, as the jet is not already on the map. If this were attempted, you'd get a CTD as soon as you placed the drop.
In addition, it is case sensitive aswell, so mind you.

What if I want to hardcode the type of vehicle for all levels?
Ummm... this isn't very recommended, but its possible.
Just place the vehicle drop code into the GameLogicInit.con file. It'd then be best to delete the code out of all maps, as it may override it (I'm not sure, I never tested it).

Patch 1.4 made it so I couldn't drop a car on buildings anymore. How can I change this?
There is a list of buildings to block vehicle drops from dropping on in the GameLogicInit.con. You'd have to delete the entry out of there.


I hope that gets you started on modding vehicle drops. Happy modding

EDIT: Updated the list

Last edited by xstax981 (2006-08-03 15:40:18)

M_Harrower
Will code HTML for food
+114|6785
Nice guide, I like the question and answer style. I'll be trying this out... +1.
[n00b]Tyler
Banned
+505|6806|Iceland
PB wont find the edit? :S
xstax981
Community Modder
+93|6888
Thats why you'd do it on a seperate mod.
Orgtheone
Member
+30|6874|The Dark Side Of The Moon
this is for mods or single play Not to be done on ranked servers

Board footer

Privacy Policy - © 2024 Jeff Minard