1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

PECollide - Help for better collision handle

Discussion in 'Development' started by benda95280, Aug 25, 2019.

  1. benda95280

    benda95280 Witch

    Messages:
    53
    GitHub:
    benda95280
    Hello,

    I'm working on a plugin to add collision between player.
    It work like that: If i'm moving fast: Knock, else, just stop it.

    Actual problem is :
    • Sometime player seems laggy when knockacked
      • Partially solved by adding a tick system (Seems because i'm too close to the player, and plugin get called another time)
    • I've tried to change the system knockback to prevent the player to go inside the other player, but if i stop him, and player too close of the other player, you'r locked.
    • If you try do to calc on speed of the player, and player fall a stair and collide plugin called, your speed is very high (Fall) and you kockback is high too.
      • If i use that, maybe it will be possible to cancel fall damage by jumping on a player ?
    Any advice, or help are welcome :)
    Thanks.

    Link: https://github.com/benda95280/PECollide
    (Some comment are in the code)
     
    Last edited: Aug 25, 2019
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.