The files you need for this tutorial: CapturableRepairPads.rar
The map this tutorial is based on is from the Capturable Tiberium Silo's tutorial over here.
However you do not need this map to complete this tutorial. It is just so you know why on earth there is a Tiberium Silo present on the map and preset list.
Just focus on the stuff i tell about the Repair Pads I'm gonna skip adding the terrain to your presets this time and go straight to the Vehicle preset.
So, open your Editor and (1)expand Object, then (2)expand Vehicle and then (3)expand Mounted and finally (4)select the preset "GDI_Guard_Tower" and (5)press the "TEMP" button.
In the next popped up window when we pressed Temp we enter the name for it so "GDI_Repair_Facility"
We goto the Physical Model tab and for Physics Type we leave it on DecorationPhys, look below and at ModelName we (1)click the folder button and browse for our "grepf.W3D" which is the GDI Repair Pad.
On the Settings tab now, scroll down to PlayerType and make sure it is on GDI (or Nod if this is for the Nod Repair Pad)
Scroll down to WeaponDefID and (1)click on the colored button, a new window pops up with Weapons, there in the list (2)select "None" and OK it. The WeaponDefID afterwards is completely empty.
Goto the Scripts tab and (1)click on "Add" then on the dropdown (2)goto "z_Capturable_Repairpad" and (3)set Owner to 1 for GDI (or 0 for Nod). There is another parameter called "RepairZoneID" we (4)leave that on 0 for now.
We end up with something like this.
Then just OK it so that the new temped preset is added to the preset-tree:
Now select the preset you just made (the GDI_Repair_Facility) and click "MAKE", it should now appear on your map like so:
Next we need a Script_Zone_All on top of the repairpad which will repair friendly vehicles when they drive on the repairpad.
First (1)expand Object, then (2)expand Script Zone and then (3)select Script_Zone_All
Now "Make" it on top of the repairpad like this:
You see the black boxes at the corners? Left click on them to make the zone larger and make it cover a large area of the repairpad.
If you hold your SHIFT key while moving the black boxes it will extend the zone up and down, make it look like this:
Now double click on the Script_Zone_All on your map (while in Object manipulation mode, press F6 or click the Teapot), a window will pop up where you can find the ID of the zone. Write it down:
We use that ID for the script under the Scripts tab like on the image below:
What it should look like:
Now double click on the Repair Pad on your map and note its ID:
Next double click on the Script_Zone_All you placed on top of the Repair Pad again and goto its Scripts tab and put the script "z_Capturable_Repairzone" on it and set the RepairPadID option to the ID of the RepairPad on your map.
Now we are finished!
Now save your map, make a mix file, host your map and then you can repair GDI vehicles on the Pad.
When it is destroyed you can simply repair it again and it will continue to repair friendly vehicles.
Good luck!
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now