Announcement

Collapse
No announcement yet.

Ground speed + mods...a stoopid qustion.

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

    Ground speed + mods...a stoopid qustion.

    I know this has probaly been asked a thousand times before, but because the search feature is out of comission:

    I'm trying (Trying being the big floaty word of doom) to make a new team based mod. For this I want give every thing a generic ground speed.

    i thought I could do this with a line in my pre-play secation along the lines of

    UnrealPawn.default.GroundSpeed=00300.000000;

    But that doesn't work as it's quick to tell me the UnrealPawn is bad command or file name. This makes me :cry:

    Now I'm guessing that I need to tell my mod (Which extends team game) to look at UnrealPawn....my question is how?!

    #2
    In your team game, you'll need:

    Code:
    event PlayerController Login( string Portal, string Options, out string Error ){
     local PlayerController pc;
     pc = Super.Login(Portal, Options, Error);
     if(pc != None) {
      PC.Pawn.default.GroundSpeed=300.0;
     }
     return pc;
    }
    
    function Bot SpawnBot(optional string botName){
     local Bot B;
     B = Super.SpawnBot(botName);
     if(B != None) { 
      B.Pawn.default.GroundSpeed=300.0;
     }
     return B;
    }
    You can also change any other default settings in here.

    Comment


      #3
      Genius!

      Thanks a lot...now stupid question 2. IS there a way I can access this from within a function?

      Comment


        #4
        Originally posted by Morphias
        In your team game, you'll need:

        Code:
        event PlayerController Login( string Portal, string Options, out string Error ){
         local PlayerController pc;
         pc = Super.Login(Portal, Options, Error);
         if(pc != None) {
          PC.Pawn.default.GroundSpeed=300.0;
         }
         return pc;
        }
        
        function Bot SpawnBot(optional string botName){
         local Bot B;
         B = Super.SpawnBot(botName);
         if(B != None) { 
          B.Pawn.default.GroundSpeed=300.0;
         }
         return B;
        }
        You can also change any other default settings in here.


        sorry for thread hijack but: if this turned into a function, could this be used as a "run" key?

        Comment

        Working...
        X