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.

Disable Landing damage

Discussion in 'Programming' started by jlebrech, Jul 10, 2003.

  1. jlebrech

    jlebrech New Member

    Joined:
    Jul 10, 2003
    Messages:
    5
    Likes Received:
    0
    Is there a way of disabling landing damage? because im doing a jump boot mutator to learn a little.

    Do i need to derive the gamerules class, the pawn class or somthing else?

    And how do i replace the default pawn for the new derived versions?
     
  2. Mr Evi1

    Mr Evi1 New Member

    Joined:
    Mar 22, 2002
    Messages:
    336
    Likes Received:
    0
    I don't know if you can disable it completely, but how far a pawn can fall before taking damage is controlled by 'MaxFallSpeed'. Set it to a very high value and fall damage will cease to be a problem.
     
  3. jlebrech

    jlebrech New Member

    Joined:
    Jul 10, 2003
    Messages:
    5
    Likes Received:
    0
    Thanks for that, now how do i overide that variable do i do a newpawn derives pawn??
     
  4. Wormbo

    Wormbo Administrator Staff Member

    Joined:
    Jun 4, 2001
    Messages:
    5,910
    Likes Received:
    35
    In a mutator it's enough to modify that property in ModifyPlayer(). You can check the QuadJump mutator for an example for a similar problem.
     
  5. Konma

    Konma Have u ever seen the truth?

    Joined:
    May 22, 2002
    Messages:
    17
    Likes Received:
    0
    or u can overwrite the takefallingdamage function
     
  6. jlebrech

    jlebrech New Member

    Joined:
    Jul 10, 2003
    Messages:
    5
    Likes Received:
    0
    Wow, there's loads of ways.

    I also found you can recode preventdeath.

    Thanks guys :)
     

Share This Page