ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.66k stars 616 forks source link

cs - hit sound but no hit #655

Open MaximilianKohler opened 11 years ago

MaximilianKohler commented 11 years ago

Often when your bullets are near/on an opponent you will hear the "hit" sound but no bullets actually registered as hits.

Not sure if this has to do with hitboxes/interp/netcode, all of those, or something else. It's different from #239 though, as I don't think that one produces the "hit" sound. #239 seems to just be a simple issue with the model animations and hitboxes not being synced.

Gr1mRe4pEr commented 11 years ago

This is to do with shot prediction introduced to the engine many moons ago. Back in ye olde days of 56k dial up (and even with broadband), one had to aim ahead of the player to allow for latency so they could hit their target. Code was introduced to eliminate the need to aim ahead, so now you only need aim at the player, regardless of latency, and the server predicts the shot. The "thuds" you hear are the sounds of the unpredicted bullet hitting a player before the predicted shot is registered. Sometimes the predicted shot registers somewhere else, like not registering a player hit, even though the hit sound was there. Perhaps work could be done for this, but it might not be top of the agenda right now.

nizer123 commented 11 years ago

Hi, i've got same or similar symptoms, eg. My ping is 12-20, and when I have a contact with enemie I shot carefully on his head/body without running, only standard bullet avoid, you know (short left and right moves) and I see his blood on the wall behind him , then I "die", go check his HP and he still have 100. or lost about 20-30hp in 5hits (for illustrate look at this video: http://www.youtube.com/watch?v=mEJnH8S_lKU ) , I thing is the problem in hit registration, or something in netcode like you written. If you can solve this, I thing that will be best thing what you done for cs 1.6, becouse many people have this problem, eg look at this topic http://forums.steampowered.com/forums/showthread.php?t=781721 there is about 170 pages when people try to fix this problem. So please try to solve this. PLEASE.

nizer123 commented 11 years ago

Are there any progress?

hAnnahf commented 11 years ago

@nizer123 Alfred is currently kind of „AFK“, however all issues are surely gonna be reviewed, just wait.