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.
-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.