Tank MGs appear behind the tanks because of lag compensation and it looks shitty

Discussion in 'Bug Reports' started by Xyaminou, May 15, 2017.

  1. Xyaminou

    Xyaminou Member

    Messages:
    1,368
    Likes Received:
    156
    Trophy Points:
    0
  2. Thexa4

    Thexa4 Developer Staff Member Moderator

    Messages:
    304
    Likes Received:
    98
    Trophy Points:
    0
    Is this a clientside or serverside demo? I think the visuals don't match up with what the bullets do which is indeed a bug.
     
  3. Xyaminou

    Xyaminou Member

    Messages:
    1,368
    Likes Received:
    156
    Trophy Points:
    0
    Server side demo recorded by sourceTV so this is what the server sees.
     
  4. Mikleo

    Mikleo Member

    Messages:
    155
    Likes Received:
    98
    Trophy Points:
    0
    That tank is me, I know I had like 200 ping at that point. I didn't notice that happening at the time though.
     
    Xyaminou likes this.
  5. Xyaminou

    Xyaminou Member

    Messages:
    1,368
    Likes Received:
    156
    Trophy Points:
    0
    It definitely needs more testing to be 100% sure.

    But it's logical that if the MG comes from behind the tank (because of lag compensation) it would hit the tank because there is nothing preventing it from doing so. Same as cannons.
     
  6. Thexa4

    Thexa4 Developer Staff Member Moderator

    Messages:
    304
    Likes Received:
    98
    Trophy Points:
    0
    No, mgs deal damage normally, the process is roughly this
    1. Server places tanks and players back in time to the spot they were when the driving player clicked the mouse
    2. The shot is calculated
    3. Damage is dealt to the entity that was hit
    4. Tanks and players are put back in the spot they were
    The problem is that the visual is created before 4. which results in a fire animation that starts and ends in the tank. The problem with the cannons is that they have travel time, which means that they cannot deal damage between 1. and 4. This results in a shell that spawns inside your tank if you drive fast enough.

    This issue can be fixed by adding a step after 4. where the tracer is repositioned to start at the new machinegun position and to end at the previously calculated impact point. We'll look into it.
     
  7. Xyaminou

    Xyaminou Member

    Messages:
    1,368
    Likes Received:
    156
    Trophy Points:
    0
    Okay so it's only visual so, I'm changing this bug to, MGs appear behind the tanks because of lag compensation and it looks shitty.

     
    Thexa4 likes this.

Share This Page