Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign in to follow this  
Guest Mauler

1 - beginner 4.1 Construction Yard Logic

Recommended Posts

Guest Mauler

To create a working construction yard, place an appropriate building on your terrain. Then create a building controller of type construction yard.

The following settings are specific to construction yard objects:

RepairRate (the rate to use when repairing buildings, in seconds)VehicleRepairRate (the rate to use when repairing buildings set up as vehicles, in seconds)RepairAmount (the amount to repair)LowPowerRepairAmount (the amount to repair when the power is down)RepairWarhead (the warhead to use to do the repairs)

The way it works is that every RepairRate seconds, it will apply repair damage to all buildings of the correct team that are still alive, using RepairAmount or LowPowerRepairAmount and RepairWarhead.
For vehicles it uses VehicleRepairRate and it will repair any vehicles of the correct team that have their Encyclopedia Type set to Building in leveledit. (it made sense as a convenient way to tell the construction yard logic what to repair and what not to repair)

Note that the construction yard object will not repair itself.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By zunnie
      Place the obelisk controller like this on the Obelisk in your map:

       
       
      Goto the properties of the obelisk controller and substract 41 from the Z value, enter the new value in the Z box and press OK.
      In this example:
      Old Value = 28.009
      Substract - 41.000
      New Value = 12.991

       
       
      The controller will jump underneith the map, this is fine, and supposed to happen.

       
      Now when you play your map the obelisk will fire from the red top.
    • By zunnie
      Sometimes when you create maps there can be 'duplicate ids' for objects in your level, don't ask HOW that happens, i don't know but fact is that with 4.1 and on it will crash clients when the map is loaded on a server. There will be a error box saying there is a collission id detected if that is the case.
      It is VERY important that you run "object -> check IDs" in leveledit and if any ID collisions are found, run "object -> fix ID collisions".
      Note that if you make use of special scripts and objects, those objects may receive new ID's after fixing, you will need to check your scripts and adjust their parameters if that is the case or they may stop functioning correctly.
    • Guest Mauler
      By Guest Mauler
      In scripts 4.1, it is possible to have a building in your map that works as a helipad. It will be totally separate from the weapons factory/airstrip in that you will be able to buy helicopters even if the war factory/airstrip is down and you will be able to buy ground vehicles if the helipad is down. You can even have someone buying a helicopter and someone else buying a ground vehicle at the same time.
       
      Firstly, in order to use this functionality you need to be using the sidebar in your map.
      Follow this tutorial http://multiplayerforums.com/index.php?/topic/2980-renegade-sidebar-tutorial/
       
      to set up the sidebar (make sure to read part 2 and follow that)
      You also require scripts 4.1 so make sure you have it installed and working in leveledit
      You also need the attached helipad_cinematic.txt [BELOW] file in your map mix file (it relies on the XG_HD_HTraj.w3d file from the stock renegade always.dat file)
      Also, open the C&C_blah_tt.ini file you made in the sidebar tutorial and add the following:

      [General]VehicleFactoryVehicleLimit=xAirFactoryVehicleLimit=yx being the number of ground vehicles players are allowed to build and y being the number of air vehicles players are allowed to build (and yes the numbers are separate)To set up the helipads, firstly you need to put a building on your map to act as the helipad. Create it like any other building (give it MCTs, PTs, damage aggregates and whatever else you want for it)
      Then open leveledit and open your map.
      Create a new preset underneath "simple". This will be the helipad fly-in cinematic object. Untick the "DefaultHibernationEnable" checkbox. Tick the "NotTargetable" checkbox. Tick the "IsEditorObject" checkbox. Tick the "IsHiddenObject" checkbox. Leave all the other settings at the default. Attach the script Test_Cinematic to this object and give it the parameter helipad_cinematic.txt
      Next, you need to create a landing position object. This will determine where the helicopters will fly in at.
      You will need one for GDI and one for Nod. (the fly-in cinematic object is used for both teams).
      Make this one a copy of the Dave's Arrow preset with no changes to the settings.
      Next, go to buildings and then air factory. Create an instance of this (one for each team). If you dont see air factory in the list it means you dont have 4.1 installed properly.
      Set this preset up as for any other building with all the usual settings and scripts.
      Make sure to set the building type to "helipad"

      Set LandingPosDistance to 1000Set CinematicTimer to 14.0Set CinematicSlotIndex to 4Set Landing Position Object to the landing position object preset created earlier.Set fly-in Cinematic Object to the fly-in cinematic object preset created earlier. No special scripts are required for this building.Once you have done this, place the helipad building controllers as per normal for buildings. Then place several (2 or 3 works good) of the landing position objects (for the right team) around the helipad at ground level. (these will determine where the helicopters land at).
      No you cant have more than one helipad per team, the logic doesn't support it.
      Now you need to set up the war factory/airstrip to not build helicopters anymore and to have them be built at the helipad.
      Create temp presets of the war factory and airstrip (or if you are already using temp presets, open them). The only change you need to make is to tick the BuildGroundOnly checkbox.
       
      Also, when using this you need to tick the allow flying vehicles checkbox under edit-level settings in LE, generate flight data (as part of pathfinding) and have a proper flight roof (i.e. all the things you normally need for a flying map).
       
       
      Helipad_Cinematic.txt contents

      -1 Create_Object, 3, "XG_HD_HTraj", 0, 0, 0, 0-1 Play_Animation, 3, "XG_HD_HTraj.XG_HD_HTraj", 0-1 Attach_to_Bone, 4, 3, "BN_Trajectory"-437 Destroy_Object, 3
    • Guest Mauler
      By Guest Mauler
      You will want to download http://multiplayerforums.com/index.php?/files/file/624-maulers-renegade-sidebar/ for this tutorial.
      Now that scripts 4.1 allows you to use the sidebar stand-alone in a Renegade map, its time to write a tutorial for how its done.
      The first thing you need to create are textures for the sidebar. [iNCLUDED IN THE DOWNLOAD LINK]
      You need to create a top half texture, bottom half texture and up and down arrow textures. They can be the same for both teams or different for each team.
      Then, 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
      In this file put something like this

      [General]AlternateSelectEnabled=falseNewUnpurchaseableLogic=falseVehicleBuildingDisable=falseGDIUpArrowTexture=up.tgaGDIDownArrowTexture=down.tgaGDIBackgroundTexture1=gdisidebar_mau.tgaNODUpArrowTexture=up.tgaNODDownArrowTexture=down.tgaNODBackgroundTexture1=nodsidebar_mau.tgaSidebar=true  
      Obviously the names of the textures should match the names you gave them when you created them.
      You can also optionally add

      SidebarSoundsEnabled=trueSidebarRefillSound=xyzSidebarInfantrySound=xyzSidebarVehicleSound=xyzif you want sounds to play when sidebar items are purchased.The sounds need to be 2D sound presets created in LE. (obviously replace xyz with the name of the sound to use). The sounds are played whenever something is purchased (i.e. double click etc)
      Note that the sidebar does not display any text on top of the icons except for the cost so you will need to either rely just on the pictures or you will need to add text to your icons.
      Also note that all players using your map will require scripts 4.1 (as will the server) in order for this to work.
      Also, the sidebar does not allow you to purchase beacons (unlike the PTs) so if you want beacons to be purchasable, you will have to add separate terminals to let you do that (there are plenty of scripts to make that happen)
       
       
      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=trueThen 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.
    • By Pwn Call
      Level Edit Object Almanac
      By: Pwn Call


      Table of Contents
      ----------------------
      1 - Introduction
      2 - Legend
      3 - Tiles
      4 - Object
      ----------------------



      1 - Introduction
      ------------------------------------------------------------

      So this is pretty much a guide to all of the presets and objects that you can create that come with Level Edit as it is. I will have sections for each of the different sub trees in Level Edit. I will add descriptions with as much as I know about them.

      *All images of the presets will be in a spoiler tab that you have to click to open to prevent excess length of the post*

      Please let me know if there is more information that you know about a preset so I can add it!!

      This will be a work in progress!!!!

      -------------------------------------------------------------




      2 - Legend
      ------------------------------------------------------------

      Cyan Writing - Cyan writing indicates where you will be able to find the following presets.
       
      Orange Writing - Orange writing indicates if a preset is in another subtree under that category, usually differentiating between smaller categories or further subtrees than the main ones.

      -> - Arrow indicates which sub tree you have to open to get to the preset, and it will usually be in cyan or orange writing.

      * - Star sign indicates and actual object or preset and the actual name it will be listed as in the preset tree.

      # - Pound sign indicates description of the preset (destroyable, moving door, etc.)



      3 - Tiles
      -------------------------------------------------------------
      -> <Artist Test>
      -> _DSAPO

      *DSP_Raveshaw
      # Destroyable statue of Raveshaw ~2x size of player







      *dsp_toilet_s
      # Toilet that appears to be full of crap, with no lid.




      -> <Artist Test>

      *book_dr
      # I believe this is the bookshelf door that is used in the map mansion.




      *c_tree
      # Basically just a dead tree




      *cht_fire
      # 2 log fire that burns and emits smoke




      *door_9
      # I think this is a door like the ones on the buildings and I think it works ingame




      *hnd_frnt_door2
      # front door from the hand of nod in single player? Should work, very large.




      *mct_nod
      # Nod master control terminal




      *pen_door
      # door from a pig pen from the single player, should work.




      *pwr_prsnl_lift
      # Elevator from the power plant from single player should work.




      *smokevol
      # HUGE preset, creates yellowish smoke in the corners of the preset. Could be used for a fog type thing on your map?




      *snowblowers
      # The snowblowers from single player, they are really high up on the preset, could be used though for visual effect.




      -> Decorations

      *cryo
      # Small empty glowing cryo chamber




      *swing_light
      # Light that glows yellow and swings when you shoot it




      *swing_light2
      # Same as swing light 1 only glows red.




      --------------------------------------------------
      -> Design
      -> Damageable Static Tiles
       
       
      ---
      ->Barrels

      Different barrels that blow up when shot I believe.

      Biohazard
      Fuel
      Toxic
      Wood




      ->Crates

      Different sized crates that get damaged as they are shot?

      Large
      Med
      Small




      ------------------------------------------------
      -> Design
      -> Pathfind_Tiles
      ->M11_SiloElev01 (Open all the subtrees to get to the final one which is M11_SiloElev_04)

      *M11_SiloElev04
      # Elevator from a silo most likely from single player



      ------------------------------------------------
      -> Design
      -> Vehicles_Destroyed

      These are all pretty self explanatory, a destroyed version of the vehicle.

      GDI_HummVee
      GDI_MediumTank
      GDI_Orca
      GDI_Transport_Helicopter
      Nod_Apache
      Nod_Buggy
      Nod_Harvester
      Nod_Light_Tank
      Nod_Transport_Helicopter
      Nod_Truck




      --------------------------------------------
      ->Doors
         ->base gates
               -> level 03
       
      *l03basegate_a
      # Base Gate



       
      *l03basegate_b
      # Base Gate



       
      ->Doors
           -> level_02
       
      *noradoor
      # Massive Gate



       
      ->Doors
           -> level_04
       
      *shp_door00
      #



       
      *shp_door02
      #



       
      *shp_door03
      #



       
      *shp_doorb00
      #



       
      *shp_doorb01
      #



       
      *shp_doorb02
      #



       
      *shp_doorc02
      #



       
      *shp_doorc03
      #



       
      *shp_doorp01
      #



       
      *shp_doorp03
      #



       
      ->Doors
           -> level_06
       
       
      *cht_door0
      #



       
      *cht_door1
      #



       
      *cht_door2
      #



       
      *cht_door3
      #



       
      *cht_jail
      #



       
      *cht_jail1
      #



       
      ->Doors
           -> level_08
       
       
      *BAR_DOOR
      #



       
      *big_door
      #



       
      *door
      #



       
      *door_a
      #



       
      *l08gate
      #



       
      *lab_door
      #



       
      *lab_spn_door08
      #



       
      *moby_door
      #



       
      *plxy_door
      #



       
      *plxy_door08
      #



       
      ->Doors
           -> level_09
       
       
      *lab_spn_door09
      #



       
      ->Doors
           -> level_10
       
      *basegate10
      #



       
      *laserfence
      #



       
      ->Doors
           -> level_11
       
      *door-dmg
      # Damaged door



       
      ->Doors
           -> Multiplay
       
      *mgcap
      #



       
      *mncap
      #



       
      ->Doors
           -> power plant
       
      *pwr_glass_door
      #



       
      *pwr_rnd_door
      #



       
      ->Doors
           -> quonset hut
       
      *qht-door
      #



       
      ->Doors
           -> security doors
               
       
      ---
      ->door_0
       
      *M06_Midtro_door_0
      #



      ---
       
      *door_3
      #



       
      ---
      ->dr_0
       
      *dr_0c
      #



      ---
       
      *dr_1
      #



       
      *dr_2
      #



       
      *dr_3
      #



       
      ---
      ->mpdr_0
       
      *mpdr_0b
      #



      ---
       
      *mpdr_obl
      #



       
      *mpdr_0
      #



       
      *mpdr_1
      #



×

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.