FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login
    The current pre-release of the client ("pioneer" in the version) is only compatible to itself. So you can only play with other testers. Please be aware!

    Hava a question...need help

    Scheduled Pinned Locked Moved Modding & Tools
    5 Posts 2 Posters 105 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cychwa_klaymbergC Offline
      cychwa_klaymberg
      last edited by

      Let me start by saying that I don't understand modding at all and I'm certainly not a programmer.
      However, I'd really like to have the following features available as a separate mod or integrated into mine:

      1. A unit and/or building that repairs allied troops (provides regeneration similar to the Seraphim Commander upgrade).

      2. For certain units, such as experimental ones, to receive increased damage based on their veterancy.

      A quick Google search yielded no results. I turned to a neural network. The bottom line of our "conversation" is this: as I understand it, it's impossible to simply "attach" a commander's regeneration aura to a unit—it's an upgrade, and upgrades don't work on units, only commanders and, possibly, SACUs. Therefore, this must be a separate script, which is then attached to the unit in a different file.
      The neural network even wrote me some code, which, unfortunately, doesn't work at all, and that's sad. That's why I'm asking for help, because I have no idea whether it's possible to do this, how, or whether it will work adequately or not.

      1 Reply Last reply Reply Quote 0
      • N Offline
        Nomander Balance Team
        last edited by

        1. For the regen aura unit, you can look at examples from blackops' Seraphim T2 regen field. Survival Mayhem&BO Balance also changes that regen field to a T3 version with stronger stats if you're interested. To actually implement it without examples, you basically move code from the function ProcessEnhancementRegenAura of the Seraphim ACU into the OnStopBeingBuilt function of your new unit.

        2. Hook AddVetLevel in your unit's script and either write a Damage buff blueprint (the buff applies to all weapons) or write your own code that increases the damage of the weapons you want however you want.

        1 Reply Last reply Reply Quote 3
        • cychwa_klaymbergC Offline
          cychwa_klaymberg
          last edited by

          Am I correct in understanding that I need to create a new unit with this script? Can't I apply the script to an existing one, like Hive?

          1 Reply Last reply Reply Quote 0
          • N Offline
            Nomander Balance Team
            last edited by

            You don't need a new unit, you can hook the script of an existing unit to modify it. I did so in my SACU rebalance mod for example.

            1 Reply Last reply Reply Quote 0
            • cychwa_klaymbergC Offline
              cychwa_klaymberg
              last edited by

              Thanks for answeers.
              I simply made a script (essentially copied it) similar to the T2 Seraphim station, attached it to both the hive and the unit, and it wouldn't even run. I figured that since the unit already had the script and it was stored elsewhere/in the mod/, my mod couldn't call it correctly.

              So you understand, I have a Merge mod file only

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better đŸ’—

              Register Login
              • First post
                Last post