|It is currently Mon Oct 19, 2009 5:30 pm
All times are UTC - 6 hours [ DST ]
Prepping Your Files
True Testing Enviroment
Stop Base Camping
Removing Out Of Bounds
Stop Base Camping 2
Add Repair Points
Add Spawn Points
Main Base Swapping
Modifying the Point System
Conquest Ticket System
Making CTF Versions of Maps
Partially Disabling Vehicles
Totally Disabling Vehicles
Making a Carbomb
Adding Healing Supply
Adding/Changing/Removing Carrier Vehicles
Spawn Weapon Kits
Change the Weapon Kits of Soldiers
Modifying Weapon Attributes
Modifying the Damage System
|Fix Wall Hacks
How to Fix Wall/Floor Hacks
Al Khafji Docks
Leaning F16 Fix
Oil Fields Exploding A-10
Operation Bragg Fixes
Weapon Kits List
Global Object Spawners
Global Soldier Spawns
Projectile Material Numbers
How to Make Vehicles Immobile and Unusable
So you can add a vehicles and change vehicles. What if you want to add a HIP (Mi8) as a spawn point, but you don't want anyone to be able to fly it?
Well, the Battlefield 1942 scripting engine provides a way to reopen the definition for an object by using "ObjectTemplate.Active name" where name is the name of the object.
First, one important thing, DO NOT EDIT THE OBJECTS.RFA FILE!!! We just want to look at it.
Now lets look at the Mi8's object definition. Open up the Objects.rfa file for desertcombat (in the Archives folder). Then open up OBJECTS\vehicles\air\Mi-8\objects.con
The first line:
Starts the definition for the "Mi8". Notice there are attributes for mass, drag, hitpoints, etc. I've played around with changing these with varying success. Read on to see how to do this.
We're not going to change anything for the Mi8 object because all we want to do is make it so you can't enter the Mi8, and we also want to make it so that when you spawn in the Mi8, your not sitting in it, you'll spawn outside it. There are other "sub objects" you can call them further in the file.
Go down to a line that looks like this:
This is the definition for the Mi8Entry object. Notice the radius is 4, which means anyone within a distance of 4 can press 'E', and enter the Mi8. We are going to change this to 0, BUT NOT HERE. What you need to do is remember these two lines, because we will use them later.
Now go down to the lines that look like this:
This is the definition of the spawn point inside the Mi8. The value we are going to want to change is
Now, close the Objects.rfa. Lets add the Mi8 to El Alamein. Use the procedures described in "Adding a Vehicle" to change one of the vehicles to the Mi8. Howevewr, before you save your changes in the ObjectSpawnTemplates.con, go to the end of that file and add the following lines:
Notice we are reopening the objects defined in objects.rfa and changing some configs on them.
If you wanted to do this to the MH53, you'll notice there are two entry objects, a PilotEntry and a PassEntry. Don't forget to set them both.
Here are my configs for the MH53:
ObjectsTemplate.Active is a powerful tool to really change some serverside settings. Be carefull though, I've changed som things on the Mi8 (like i set ObjectTemplate.HasResponsePhysics to 0, and the map would crash after loading). But then others did some interresting things (I changed ObjectTemplate.HasMobilePhysics to 0, and the HIP would float straight into the air *lol*)