Bug Tracker – Bug 1047

possible wrong position prediction

Last modified: 2014-03-04 12:11:17 UTC
Bug 1047 - possible wrong position prediction
Summary: possible wrong position prediction
Status: NEW
Alias: None
Product: Odamex
Classification: Unclassified
Component: Server & Client (show other bugs)
Version: (old) 0.6.x
Hardware: All All
: P1 normal
Assignee: Odamex Bug Reporter
Depends on:
Reported: 2014-03-04 00:17 UTC by JKist3
Modified: 2014-03-04 12:11 UTC (History)
1 user (show)

See Also:


splash damage demo (811.30 KB, application/octet-stream)
2014-03-04 00:17 UTC, JKist3
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this bug.
Description JKist3 2014-03-04 00:17:07 UTC
Created attachment 473 [details]
splash damage demo

was playing odamex last night in australia so i had very high ping (280-300).  noticed that if i fired a rocket and ran after it i would not take splash when it hit the wall. Most likely this is because my client thinks its ahead of where it is on the server... haven't thought about it in depth... maybe this is necessary on this ping, but wanted to post on here for others to see.  Is everything working as expected or is this a bug?
Comment 1 Dr. Sean 2014-03-04 00:31:17 UTC
Clients predict their own position ahead of where the server thinks they are. Thus with a 300ms ping, the server will not receive your most recent input for approximately 150ms. However, the client's view of other game entities such as other players and projectiles is approximately 150ms outdated by the time the client receives the updated positions of those entities. This creates a temporal discrepancy in the game world equivalent to your ping time.

When you see a rocket explode against a wall, the explosion actually happened 150ms ago and the server won't know of your current position until 150ms into the future. So when your client shows your position as being near the explosion, your actual position at the time of the explosion would be your position 300ms ago, which is very likely outside the 128 unit radius of the rocket explosion.
Comment 2 JKist3 2014-03-04 12:11:17 UTC
makes sense. Have you seen this site? http://www.ra.is/unlagged/faq.html#WSC

it actually has some really good stuff very applicable to what we do.  cg_projectileNudge is what would relate to this example.  Maybe something to consider?