Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Naval Yard tutorial
Naval Yard tutorial [message #486474] Thu, 27 February 2014 02:52 Go to previous message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma:
General (3 Stars)

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 http://www.renegadeforums.com/index.php?t=msg&th=40639&start=0&
It also assumes you have properly set up the sidebar per http://www.renegadeforums.com/index.php?t=msg&th=40588&start=0&

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

Next step is to add the naval units created earlier to the purchase definitions (like any other vehicle). Make sure you set the "factory building type" to "naval factory" when you add them.

Next step is to create spawn zone presets for the naval units. Create one script zone preset for each naval unit type you have. Set the zone type to "Naval Spawn" and the purchase preset to the vehicle preset for the naval vehicle.

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 wont charge the player etc)

The final step is to create the building controllers. These need to be Naval Factory (under Building in LE). Set the building type to "Naval Factory". The timer value controls the amount of time before the naval vehicle spawns (i.e. its 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 (if you have more than 6 types of boat, tough, its limited to 6)


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies

[Updated on: Thu, 27 February 2014 03:51]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Beautiful custom base defense
Next Topic: Custom strings in a mix?
Goto Forum:
  


Current Time: Fri Nov 08 18:49:17 MST 2024

Total time taken to generate the page: 0.00769 seconds