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, and I have no idea what a HoHa is.

 

Stopping Both Teams From Repair Pad Camping

by silversound

First you have read the tutorial on removing out of bounds areas from maps. Once you understand how to use BattleCraft to manipulate the MaterialMap.raw files, you can move on to other more creative ways of using it to sculp areas.

To stop people from camping the pad, carefully place a small section of "outside of map" material under the pad model itself. This will allow a player 7 seconds of repair time before the driver starts taking soldier damage as if off the map. This is just enough time to fully repair almost any vehicle, so the pad will still serve its intended purpose.

Vehicles spawned on the pad, along with those left on it, will remain undamaged and only the camper will take a health loss.

This is actually a pretty classy fix for anyone wanting to put a stop to the many types of extended camping BF1942 provides.