Server Side Modding

The Official Modding Resource for Battlefield 1942 and Battlefield Vietnam
It is currently Mon Oct 19, 2009 5:30 pm

All times are UTC - 6 hours [ DST ]


Getting Started
Getting Started
Prepping Your Files
  Testing Methods
Auto-Start Map
True Testing Enviroment
General How-To's
Stop Base Camping
Removing Out Of Bounds
Stop Base Camping 2
Disabling Parachutes
Add Repair Points
Add Spawn Points
Paradrops
Main Base Swapping
Modifying the Point System
Conquest Ticket System
Making CTF Versions of Maps
Vehicle How-To's
Replace/Add Vehicles
Lock Vehicles
Partially Disabling Vehicles
Totally Disabling Vehicles
Making a Carbomb
Adding Nitrous
Making Amphibious
Performance Tweaking
Adding Healing Supply
Adding/Changing/Removing Carrier Vehicles
Weapon How-To's
Spawn Weapon Kits
Change the Weapon Kits of Soldiers
Modifying Weapon Attributes
Disabling Weapons
Modifying the Damage System
Disabling Overheating
 
 
 
Fix Wall Hacks
How to Fix Wall/Floor Hacks
Basrah's Edge
Lost Village
Stalingrad
Al Khafji Docks
El Alamein
Other Fixes
Leaning F16 Fix
Glass Humvee
Oil Fields Exploding A-10
Operation Bragg Fixes
 
 
References
Object List
Weapon Kits List
Global Object Spawners
Global Soldier Spawns
Projectile Material Numbers
 

How To Lock Vehicles

Are you tired of people taking off from your base and flying directly to the enemy base only to bail and steal one of their planes? Well you can change that by locking vehicles.

This is very easy to do. In the ObjectSpawnTemplates.con, add this line to each template that you want locked:

ObjectTemplate.teamOnVehicle 1

Let's say you add this line to a fighterspawner that spawns a mig29 and f16. Any place a mig29 spawns, the coalition will be locked out. Any place the f16 spawns, the opposition will be locked out. Simple.

But what if you want to lock a vehicle that spawns in places besides the main base? Maybe you want to lock tanks within a base, but not the ones at the control points. To do this you'll have to have two spawners: one for the main bases, and one for the control points. Just add the code to the main base spawner.

rem ** Locked heavytankspawner **
ObjectTemplate.create ObjectSpawner heavytankspawner
ObjectTemplate.setObjectTemplate 2 M1A1
ObjectTemplate.setObjectTemplate 1 T72
ObjectTemplate.MinSpawnDelay 40
ObjectTemplate.MaxSpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.teamOnVehicle 1

rem ** Unlocked heavytankspawner **
ObjectTemplate.create ObjectSpawner LadaSpawner
ObjectTemplate.setObjectTemplate 2 M1A1
ObjectTemplate.setObjectTemplate 1 T72
ObjectTemplate.MinSpawnDelay 40
ObjectTemplate.MaxSpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10

cron

©2009
No materials may be duplicated under any circumstances.