Results 1 to 14 of 14

Thread: Replacement

  1. #1
    MSgt. Shooter Person
    Join Date
    Jan 2005
    Posts
    38

    Default 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. #2
    MSgt. Shooter Person
    Join Date
    Dec 2004
    Posts
    74

    Default

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

  3. #3
    MSgt. Shooter Person
    Join Date
    Jan 2005
    Posts
    38

    Default

    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.

  4. #4
    MSgt. Shooter Person
    Join Date
    Dec 2004
    Posts
    74

    Default

    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?

  5. #5
    MSgt. Shooter Person
    Join Date
    Aug 2004
    Posts
    166

    Default

    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.

  6. #6
    MSgt. Shooter Person
    Join Date
    Jan 2005
    Posts
    38

    Default 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?

  7. #7
    MSgt. Shooter Person
    Join Date
    Dec 2004
    Posts
    74

    Default

    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

  8. #8
    MSgt. Shooter Person
    Join Date
    Apr 2004
    Posts
    39

    Default

    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;

  9. #9
    MSgt. Shooter Person
    Join Date
    Dec 2004
    Posts
    74

    Default

    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

  10. #10
    MSgt. Shooter Person
    Join Date
    Jan 2005
    Posts
    38

    Default

    Ah. Okay. Thanks a lot.

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

  11. #11
    MSgt. Shooter Person
    Join Date
    Apr 2004
    Posts
    39

    Default

    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.

  12. #12
    MSgt. Shooter Person
    Join Date
    Sep 2003
    Posts
    439

    Default

    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.

  13. #13
    Redeemer
    Join Date
    Dec 2003
    Location
    PHiNQ.com
    Posts
    1,266

    Default

    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>)
    Hi.

  14. #14
    MSgt. Shooter Person
    Join Date
    Sep 2003
    Posts
    439

    Default

    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.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.