Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Sidebar tutorial for Renegade modders
Re: Sidebar tutorial for Renegade modders [message #485850 is a reply to message #485846] Sun, 09 February 2014 02:19 Go to previous messageGo to previous message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma:
General (3 Stars)

ok, time for part 2 of the tutorial (which is necessary if you want objects to disappear when the building that normally builds them goes away)

First, in the C&C_MyMap_tt.ini file (or whatever), put this line at the end after the others
NewTechLevel=true

Then in leveledit, go to Global Settings then Purchase Settings. For each of Character Classes (GDI), Character Classes (Nod), Character Classes (Secret GDI), Character Classes (Secret Nod), Vehicles (GDI), Vehicles (Nod), Vehicles (Secret GDI) and Vehicles (Secret Nod), create a temp preset copy (or if you already have one, edit it). What you need to change is the Factory Building Type for each entry. For soldiers, set it to Soldier Factory. For vehicles, set it to Vehicle Factory. If you are using my helipad tutorial (to be posted shortly) set helicopters/air units to Helipad.

If there are units you dont want on the sidebar (e.g. the secret hidden extra vehicles), set their object to none. The usual enable/disable for extras (EXTRAS console command etc) will not work with the sidebar.

That should be all you need to do, no extra scripts are required, the engine logic behind NewTechLevel=true will do all the work of making the items vanish from the sidebar when the relavent building is destroyed.


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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CnC 95 DOS sidebar (WIP)
Next Topic: linking presets
Goto Forum:
  


Current Time: Fri Dec 20 13:32:19 MST 2024

Total time taken to generate the page: 0.00842 seconds