1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Modifying a player with game type

Discussion in 'Programming' started by rhinodog, Feb 4, 2004.

  1. rhinodog

    rhinodog I'm gonna eat you

    Joined:
    Mar 9, 2002
    Messages:
    41
    Likes Received:
    0
    I've made a mut that chages a players stats based on species type, but I want to create a new game type that does the same thing. When I try and compile the compiler does not recognize

    Super.ModifyPlayer(Other)

    Is there a command that can modify a player I can use for a game types? (under XDeathMatch)
     
    Last edited: Feb 4, 2004
  2. EvilDrWong

    EvilDrWong Every line of code elevates you

    Joined:
    Jun 16, 2001
    Messages:
    932
    Likes Received:
    0
    Have you tried looking for the function that tells mutators to ModifyPlayer() yet?
     
  3. rhinodog

    rhinodog I'm gonna eat you

    Joined:
    Mar 9, 2002
    Messages:
    41
    Likes Received:
    0
    The thought had crossed my mind, but I don't know how to do it.
     
  4. rhinodog

    rhinodog I'm gonna eat you

    Joined:
    Mar 9, 2002
    Messages:
    41
    Likes Received:
    0
    Oops sorry. miss read your post. Your talking about the:

    function ModifyPlayer(Pawn Other)

    correct?
     
  5. rhinodog

    rhinodog I'm gonna eat you

    Joined:
    Mar 9, 2002
    Messages:
    41
    Likes Received:
    0
    Can anyone help me out?
     
  6. CodePig

    CodePig New Member

    Joined:
    Apr 22, 2003
    Messages:
    124
    Likes Received:
    0
    rhinodog-

    have a look at GameInfo.RestartPlayer and the functions that create a bot (AddBot, etc). also look at xPawn.Setup and the species and roster classes. GameInfo.RestartPlayer is where the pawn gets created and possessed... it might be a good place to start looking.

    codepig
     
  7. rhinodog

    rhinodog I'm gonna eat you

    Joined:
    Mar 9, 2002
    Messages:
    41
    Likes Received:
    0

Share This Page