Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

Replacement

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

  • Replacement

    Is there a way to replace an existing mutator, or edit it without having to make a duplicate? Like change the combo for the Speed adrenalene move.

  • #2
    just make a new class that extends what ever you want to modify and change stuff in default properties or w/e

    Comment


    • #3
      What if I want to take something out, like make it so you cannot activate 'speed' by pressing forward four times, but only if you press something like forward back jump duck or whatever. Actually replace the original combo.

      Comment


      • #4
        i'm confused, you mean you want to keep the speed combo, but want to change the activation keys to something else or do you mean you want to create a whole new combo?

        Comment


        • #5
          I think he is asking how to make the code disregard a command instead of writing over one. Like he doesn't want speed to activate at all... or somthing like that.

          Comment


          • #6
            Ooh, forgot to reply! Sorry.

            Okay, I want to make it (for example) so that in order to activate the Speed adrenalene power you have to press 'forward back forward back', or a combination of keys that don't activate a different adrenalene power. But I want it so when you press forward four times, it doesn't activate Speed. ONLY when you do the new combination.

            How do I replace the original combo with a new combo, and not have the old one?

            Comment


            • #7
              ok there's a class in xGame called ComboSpeed w/ default properties of
              Code:
              defaultproperties
              {
              	Duration=16
                  ExecMessage="Speed!"
                  ComboAnnouncementName=Speed
                  keys(0)=1
                  keys(1)=1
                  keys(2)=1
                  keys(3)=1
              }
              now make a new calss that extends ComboSpeed so you would have

              Code:
              class MyComboName extends ComboSpeed
              
              defaultproperties
              {
              	Duration=16
                  ExecMessage="Speed!"
                  ComboAnnouncementName=Speed
                  keys(0)=1
                  keys(1)=2
                  keys(2)=3
                  keys(3)=4
              }
              you just replace the keys array w/ whatever you want to activate it
              when you this class is called, it takes the defaultproperties and overrides the parent class if its present in the parent class

              Comment


              • #8
                But the speed combo would still exist and still be executed with forward^4. What you would have to do is put something like this in a mutator:

                Code:
                function PostBeginPlay()
                {
                Super.PostBeginPlay();
                
                class'XGame.ComboSpeed'.default.keys[0] = 1;
                class'XGame.ComboSpeed'.default.keys[1] = 2;
                class'XGame.ComboSpeed'.default.keys[2] = 1;
                class'XGame.ComboSpeed'.default.keys[3] = 2;
                }
                BTW, here's what the numbers mean:
                1 == Up
                2 == Down;
                4 == Left;
                8 == Right;

                Comment


                • #9
                  Originally posted by T-Bone7
                  But the speed combo would still exist and still be executed with forward^4. What you would have to do is put something like this in a mutator:

                  Code:
                  function PostBeginPlay()
                  {
                  Super.PostBeginPlay();
                  
                  class'XGame.ComboSpeed'.default.keys[0] = 1;
                  class'XGame.ComboSpeed'.default.keys[1] = 2;
                  class'XGame.ComboSpeed'.default.keys[2] = 1;
                  class'XGame.ComboSpeed'.default.keys[3] = 2;
                  }
                  BTW, here's what the numbers mean:
                  1 == Up
                  2 == Down;
                  4 == Left;
                  8 == Right;
                  ooh right, my bad

                  Comment


                  • #10
                    Ah. Okay. Thanks a lot.

                    BTW, what are the numbers for Jump and Duck? And possibly Fire? Do they exist?

                    Comment


                    • #11
                      Nope. You would probably have to put in a good deal of extra code in the pawn class to include those in combos...

                      The numbers for the four keys can be found in the comment at the top of the base Combo class. Here and there you can find useful comments in epic's code.

                      Comment


                      • #12
                        Hi guys, it's been a long while since my last visit, with way too much water over the bridge to bore you with as to why.  I'm not actively coding at the moment (on the advice of my therapist) but I can help a little with part of this problem.

                        I have code for a mutator that replaces some of the default Combos with updated versions, not just for humans (both the local player, and network clients) but bots too (the poor sods still only have access to four Combos).  If anyone wants the code drop me a line using the link in my sig and I'll mail it back to you.

                        N.B. I'm not actively coding, so please don't ask me to check over your code, I'm under doctor's orders to relax and recover.

                        Comment


                        • #13
                          Originally posted by the Adster
                          Hi guys, it's been a long while since my last visit, with way too much water over the bridge to bore you with as to why.
                          Dude, I thought you were dead or something.

                          Dicky B (ah well, all dreams must end sometime. <grins>)

                          Comment


                          • #14
                            Originally posted by Dicky B
                            Dude, I thought you were dead or something.

                            Dicky B (ah well, all dreams must end sometime. <grins>)
                            Sorry to disappoint Dicky B, I'm not dead, just drying out Betty Ford style.

                            Comment

                            Working...
                            X