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 Stop Base Camping

Okay, so I hate it when I spawn in my main base and I get killed before I can even move since some dude is in my base with a tank. This tutorial will show you how to stop that from happening to you. What we are gonna do is setup up an object with a radius, where upon if someone enters that radius, they will start losing life.

Open up the map.rfa that you want to stop basecamping on, and go to the ObjectSpawnTemplates.con in the conquest folder. At the bottom of the file, add the lines of code from the box below.

rem *** Kills red guys ***
ObjectTemplate.Active hanomagVehicleSupplyDepot
ObjectTemplate.radius 150
ObjectTemplate.team 1
ObjectTemplate.setHealth -1 -2 0
ObjectTemplate.addVehicleType t72 -1 -4 0
ObjectTemplate.addVehicleType m1a1 -1 -4 0
ObjectTemplate.addVehicleType mi24d -1 -4 0
ObjectTemplate.addVehicleType ah64 -1 -4 0
ObjectTemplate.addVehicleType su-25 -1 -4 0
ObjectTemplate.addVehicleType a10_b -1 -4 0
ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 1

rem *** Kills blue guys ***
ObjectTemplate.Active HoHaVehicleSupplyDepot
ObjectTemplate.radius 150
ObjectTemplate.team 2
ObjectTemplate.setHealth -1 -2 0
ObjectTemplate.addVehicleType t72 -1 -4 0
ObjectTemplate.addVehicleType m1a1 -1 -4 0
ObjectTemplate.addVehicleType mi24d -1 -4 0
ObjectTemplate.addVehicleType ah64 -1 -4 0
ObjectTemplate.addVehicleType su-25 -1 -4 0
ObjectTemplate.addVehicleType a10_b -1 -4 0
ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 1

-The ObjectTemplate.Active lines open up objects I borrowed from BF1942. Since they are not used in DC, they are suitable for this mod.
-radius dictates how large of an area you want to cover. For the bases on El Alamein I recommend 150. On smaller maps you may need to pick a different value.
-team declares which team will be affected: 1 = Iraq, 2 = US
-setHealth sets the amount of damage per second. If you want higher damage, change the -2 to -7 or something. For less damage change it to -.5 . You can ignore the other two numbers (-1 and 0).
-addVehicleType: Adds the vehicle you want to effect.
-workOnVehicles: Do you want the object to affect vehicles? 0 = no, 1 = yes
-workOnSoldiers: Do you want the object to affect soldiers? 0 = no, 1 = yes

After you've added the code to the ObjectTemplates.con, open the ObjectSpawns.con from the Conquest folder. You'll want to add two new object spawn like so:

rem *** Kills red guys ***
Object.create hanomagVehicleSupplyDepot
Object.absolutePosition 1694.08/60/804.904
Object.rotation 0/0/0

rem *** Kills blue guys ***
Object.create HoHaVehicleSupplyDepot
Object.absolutePosition 451.573/40.2/1271.61
Object.rotation 0/0/0

Copy and paste the coordinates of the appropriate flags where it says absolute position.

That's it, build your rfa and test the map out. When you enter any enemy main base you should start losing life.

-------
Several of you have asked if I made up the names hanomag and HoHaVehicle. These are actual objects in BF1942.

cron

©2009
No materials may be duplicated under any circumstances.