Announcement

Collapse
No announcement yet.

Enhanced Gamemaster Script: Zeus, but for DCS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #21
    Loving your slick script!
    Would it be possible, for example, to have a command to start a Mig21_2 which has been set, in the mission editor, to "start from ramp" "uncontrolled" and has a triggered action "start Mig21_2"?

    Comment


      #22
      Originally posted by flick View Post
      Loving your slick script!
      Would it be possible, for example, to have a command to start a Mig21_2 which has been set, in the mission editor, to "start from ramp" "uncontrolled" and has a triggered action "start Mig21_2"?
      Hi, it's pretty late here, so I apologize beforehand if I misunderstood your question due to tiredness.

      I understand that you want to spawn a MiG 21 on the ramp in an uncontrolled state and turn it on at a later time.
      There are three different ways to do this with the gamemaster script:

      1. Method: Set the group up as late activated, start from ramp and uncontrolled in the mission editor (ME), then activate it ingame with the "-act" command (see Section 5.2 of the manual). The group will then spawn in an uncontrolled state. To turn it on you can use the "-ctrlon" command (see section 5.13).

      2. Method: Set the group up the same as above, but ingame use the "-s" command (see section 5.1) instead to spawn it. You will have to add the parameter "-kt" to ensure that tasking of the group doesn't get overriden on spawn and "-op" to have the group spawn at the location you set it up at and not at your map marker. You can later turn the group on with the "-ctrlon" command.

      3. Method: In the ME set the group up as late activated, but let it start in the air. Ingame you spawn it with the "-s" command but you add the parameter "-ground". The group then spawns in the air, at your map marker, but will then almost instantly respawn on the ramp and in an uncontrolled state, at the airbase nearest to your map marker. You can then turn it on with the "-ctrlon" command.


      *Edit*
      I just reread your question now that I'm a little more awake...you want to spawn an uncontrolled MiG 21 and have it turn on automatically when an external condition is met (by use of a triggered action and a corresponding trigger that you have set up in the ME)

      I must confess that I never really did much with these triggered actions you can set up in the groups tab of the ME. They should work though, as long as you use the "-act" command to spawn the group ingame.

      Why the "-act" command and not "-s"? The "-act" command mirrors what happens when the ME trigger action "Group activate" is used, it just activates the group in the exact state that you have set it up with in the ME.

      The "-s" command on the other hand uses the SPAWN class from MOOSE to create a copy of the group you have set up and then activates that copy. The copy that spawns has a modified group name and a different GroupID than the group you have created in the ME. In consequence it won't be affected by triggers that target the original group because as far as DCS is concerned it's a completely different group.
      Last edited 09-27-2020, 10:08 AM.

      Comment


        #23
        Hey man, thanks for the great work here. I took a look at the code and found it very easy to navigate and extend.

        Since we're a big CTLD shop, I added three functions/commands in that:

        1 - Allow you to spawn in a CTLD extractable group and specify the quantity.

        2 - Allow you to spawn CTLD crates.

        3 - Spawns a few different types of statics.

        If you are interested in merging these, LMK and I'll send it over.

        sigpic

        Are you ready to take your chopper flying skills to the next level?
        Then check out http://www.blacksharkden.com/ Or visit us on Discord https://discord.gg/kaayJ5z and talk to some of our awesome pilots today.

        Comment


          #24
          Originally posted by fargo007 View Post
          If you are interested in merging these, LMK and I'll send it over.

          Yes, please!


          I just started coding my own command for the spawning of statics, but I'm very curious to see your code on that.

          And I hadn't even thought about creating an integration with CTLD...nice!

          Comment


            #25
            PM Sent!

            sigpic

            Are you ready to take your chopper flying skills to the next level?
            Then check out http://www.blacksharkden.com/ Or visit us on Discord https://discord.gg/kaayJ5z and talk to some of our awesome pilots today.

            Comment


              #26
              Originally posted by fargo007 View Post
              PM Sent!

              Hey, thanks for the scriptfile. I finally found the time to look at your additions.

              Your approach is to use the marker commands to spawn the infantry groups and crates that are predefined in CTLD. Looking at this i had an idea for a different approach.
              What if I could instead make CTLD recognize Groups that have been spawned with the "-s" command and the "-cargo" parameter?

              After a bit of testing i got it working for ground units. You can now, for example, spawn an infantry group from Gamemaster_Templates and load it as an extractable group with CTLD. All you have to do is use the "-cargo" parameter in the "-s" command. It works for both infantry and vehicles.

              With regards to crates I will probably just merge your method into my script.

              I have also made progress on my own command to spawn static units. It is currently possible to spawn duplicates of statics that you have already set up in the mission at the map marker. You can also choose the country and heading of the new static.

              I will send you the new version of my script shortly, maybe you can give it a test run with your squadron?

              The "official" update will be out sometime this weekend, once i've found time to update the manuals.
              Last edited 10-16-2020, 10:56 PM.

              Comment


                #27
                Hey folks, new version 2.1 out today!

                Check out the changelog at the beginning of the thread!


                Leider muss ich ank√ľndigen, dass das Deutsche Handbuch von mir nicht weiter gepflegt wird. Mir fehlt einfach die Zeit.

                Comment


                  #28
                  Most awesome Sir, it's good to work with you!

                  sigpic

                  Are you ready to take your chopper flying skills to the next level?
                  Then check out http://www.blacksharkden.com/ Or visit us on Discord https://discord.gg/kaayJ5z and talk to some of our awesome pilots today.

                  Comment

                  Working...
                  X