Gl Lag

JuLie_ThE_BoonDoCk_SAinTJuLie_ThE_BoonDoCk_SAinT Join Date: 2002-11-26 Member: 9984Members
<div class="IPBDescription">is it possible to fix it? :o</div> When you enter a server with a ping of like, 150+ the GL shooting is kinda not synchronised. Example, when you click the trigger, the grenade should be launched from the gun instantaneously, but instead, it lags several seconds.

In an event when you have to use the GL as an assault weapon (against skulks, fades and all), its very hard to hit them when they are moving all around and your shots lag and doesnt hit the target.

I dont know if its the limit of the half-life engine (i think the M79 GL in FA doesnt have any delay), so is it possible to fix it? <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo-->

<!--emo&::asrifle::--><img src='http://www.unknownworlds.com/forums/html/emoticons/asrifle.gif' border='0' style='vertical-align:middle' alt='asrifle.gif'><!--endemo--> <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo-->

Comments

  • JowerJower Join Date: 2003-02-12 Member: 13448Members
    Shouldent this be in the bug reports forum ?
  • TeoHTeoH Join Date: 2002-12-30 Member: 11640Members
    "Fix" it?

    You people have been sheltered by HL for too long. Its lag, this is how online games work. Your weapon is delayed because your connection to the server is delayed. Your LMG also has a lag time on it, you aren't firing instantly that's only a visual effect - when you press the fire button your client automatically draws bullet holes for you, those holes aren't where bullets are actually landing, they're just drawn there to make you feel better. The actual decision of where your shots go and what you hit is performed by the server, and is delayed due to your latency.

    When you fire a LMG, there is a visual effect indicating that you are firing by drawing in some random bullet holes or blood marks (That are not in any way related to where your shots are really going). The command to fire is then sent to the server. The server recieves the command a short while after you fire, and then checks your ping and makes an estimate as to the state of the game when you pressed fire on your screen. It then calculates where it thinks you fired, and updates aliens health/your frag score accordingly.

    Attempting to use the same prediction for a projectile runs into all sorts of trouble, because players are able to see the GL in flight. If you attempt to phase the game back serverside and calculate the path of a grenade fired from the time the client presses +attack, you end up with grenades that have to suddenly appear in the air, without visibly leaving a players weapon. Given a player with a less than incredible ping is firing the GL, you end up with grenades hitting players before they even see them leave your weapon. Now, if you don't predict the grenades serverside, and do it the old fashioned way, you also wouldn't want a client side predicted animation for the GL, because this animation would bear no relation to the actual path of the grenade.

    You could see a grenade fire instantly from your weapon, but this grenade in effect would not exist. You could fire and see the grenade move straight through a fade, and either not explode at all, passing straight through him, or explode directly on the fade but in reality miss him completely. The visuals of the grenade on your screen would be completely meaningless.

    Consequently, neither the GL hits, or the GL client side visuals are predicted, and you see what is actually happening. The grenade on your screen takes time to leave the barrel because your client takes time to send the command to the server. There is no "fix" for this, only different ways of handling the netcode which would probably be worse.
  • DizzyOneDizzyOne BASS&#33; Join Date: 2002-11-17 Member: 9095Members
    not really true, with a lot of weapons (bite, 2nd gun, 2nd weapon fade) I dont see the bullet, or the teeth animation or the poision (forgot word for 2nd attack of fade) but I still kill ppl on the exact time I pressed my mouse button, even with veyr high lags like 600.
  • JowerJower Join Date: 2003-02-12 Member: 13448Members
    Maybe you have some strange combination of predictions enabled
  • AnavrinAnavrin Join Date: 2002-10-30 Member: 1734Members
    <!--QuoteBegin--dizzy.souls+Mar 12 2003, 01:03 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (dizzy.souls @ Mar 12 2003, 01:03 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> not really true, with a lot of weapons (bite, 2nd gun, 2nd weapon fade) I dont see the bullet, or the teeth animation or the poision (forgot word for 2nd attack of fade) but I still kill ppl on the exact time I pressed my mouse button, even with veyr high lags like 600. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Actually, TeoH is right. Whenever you see an "instant kill" with a ping at 600 or so it's always from a previous shot that eventually the server acknowledged and relayed back to your HL client.
  • FlayraFlayra Game Director, Unknown Worlds Entertainment San Francisco Join Date: 2002-01-22 Member: 3Super Administrators, NS2 Developer, Subnautica Developer
    I thought I had already moved the grenade client-side, but after looking at the code, it looks like I removed it. This will be predicted in the future.
  • SupernornSupernorn Best. Picture. Ever. Made. Ever. Join Date: 2002-11-07 Member: 7608Members, Constellation
    hey Flayra, welcome back <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • KeyserKeyser Join Date: 2003-02-15 Member: 13591Members
    wait, so when you shoot a skulk and you see green blood, it means he might not be getting hurt at all? that explains alot..
  • KenichiKenichi This is not a pie. Join Date: 2002-11-01 Member: 2941Members, NS1 Playtester
    It amazes me everyday how little some people really know about the netcode and prediction. You would think that after all this time people would learn.
  • ConfusedConfused Wait. What? Join Date: 2003-01-28 Member: 12904Members, Constellation, NS2 Playtester, Squad Five Blue, Subnautica Playtester
    on teh other had the net code is key for example you run aound a corner or redeem and then die.

    when you fire in hl the sever will check teh location of your target in teh past to determine if you kill tehm. if your ping is 200 it will check to see if player x was hit by you bullets at his location 200 ms ago.
    if he is there and you are not already dead the hit counts.

    this causes deaths after running around teh corner or being redeemed. becasue you were shot before you could do it

    However if you are shot before the server can prosees your attack you are still dead. and your shot is wasted.

    at
  • KeyserKeyser Join Date: 2003-02-15 Member: 13591Members
    Hey, no need to poke fun at us ignoramuses, i've been playing HL for awhile now and this is the first I heard of this. I think i need a new quote
Sign In or Register to comment.