Jump to content

Naval Yard Tutorial


GeneralCamo

Recommended Posts

Author: Mauler, Jonwil, Generalcamo

Skill level: 4

 

 

This tutorial will show how to set up naval yards.

It assumes you have properly set up boats/subs/naval transports and the various blockers per https://secure.w3dhub.com/forum/index.php?showtopic=414729#entry606272

It also assumes you have properly set up the sidebar per https://secure.w3dhub.com/forum/index.php?showtopic=414727

It doesn't cover all aspects but gives you an outline to the basics. The tutorial leaves out certain aspects of regular building creation components. It is written for experienced mappers.

 

 

A few limitations:

Amount of different boat types is currently limited to 6 per team.

 

Preparation

Ok, so the first thing you will want to know about is the NavalFactoryVehicleLimit keyword in the per-map tt.ini file. This works just like the AirFactoryVehicleLimit and VehicleFactoryVehicleLimit and sets the number of naval vehicles that can be built at once.

You need to create an ini file. If your map is named C&C_MyMap, the ini file should be named C&C_MyMap_tt.ini. Alternatively, if you are creating a standalone mod, the ini file should only be named tt.ini.

 

 

[General]
NavalFactoryVehicleLimit=8
Create the naval unit presets

1. Creating a naval yard structure is exactly the same process as a regular structure, Proceed to load up a map level in LE containing a naval yard.

 

2. Create naval unit preset, and once completed goto>settings and select type as "Boat".

post-10309-0-51473100-1425100440_thumb.jpgpost-10309-0-60643300-1425100441_thumb.jpg

 

3. Add TT's custom collision script to naval unit, Depending on collision type as per graph shown here, this instance requires collision group 20. So using 4.0 scripts and beyond you want to use "SH_CustomCollisionGroup"

post-10309-0-28871200-1425100442_thumb.jpg

 

 

Create the spawn zones

4. Now that our preset boat is done, let's complete the naval yard components. We will need a controller and a spawn zone. Let's start with the spawn zone for the naval unit. Under the Object>Script Zone tab create a preset for our spawn location.

post-10309-0-79173900-1425100432_thumb.jpg

 

5. While still editing the spawn preset goto>Settings and make sure zone type is selected to "Naval Spawn" and that your naval unit preset is placed into the "Purchase Preset".

post-10309-0-85378500-1425100433_thumb.jpg

(Create one script zone preset for each naval unit type you have.)

 

Next up, place these zones in your level near your naval buildings. The center point of the zone is the center point where the naval vehicle will spawn so if the vehicle is a sub, this needs to be below the water surface, if its a surface ship it needs to be above the water surface. The size of the zone should match the size of the vehicle it spawns. If there is something in the zone it will not spawn the vehicle, and the player will be refunded.

 

 

Create the Naval Yard controller

6. Next is our controller for the naval yard. Create a new preset under Buildings>Naval Factory for your new controller.

post-10309-0-21559200-1425100435_thumb.jpg

 

7. Once completed click on the "mod" button and goto the presets settings. Make sure the "Building type" is Naval Factory and set the timer to 7.00 (default renegade build time). The timer value controls the amount of time before the naval vehicle spawns (i.e. it's a construction delay so naval vehicles don't spawn instantly).

 

The Construction Zone settings need to be set to the zone presets you created above (the ones for each unit type). If you have less than 6 boat types for your naval factory, leave the extra ones blank.

post-10309-0-84590200-1425100435_thumb.jpg

 

 

Add the naval units to the purchase list

8. Now all that left is the actual purchase options! Create a new preset under "Global Settings>Purchase Settings" and add your naval vehicles' purchase settings.. set your parameters normally, making sure that the "Factory Building Type" is set to "Naval Factory".

post-10309-0-86424100-1425100436_thumb.jpgpost-10309-0-93072900-1425100438_thumb.jpg

 

 

9. Done! Now get ingame and test that baby out! This is my example level without water :D

post-10309-0-96733100-1425100430_thumb.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...