what's hit detection?

nix253

Member
Jan 14, 2010
155
0
0
hey guys i have recently started playing MP...so i'm reading this term "hit-detection" in some forums and not able to understand what that is...so please help me
 

PowerYoga

Diamond Member
Nov 6, 2001
4,603
0
0
means there's no projectile fired nor calculations done for arcing of bullets over long distances. Where the gun's pointer is when you fire the bullet is where the bullet will land no matter what. Think railgun-like properties.

Edit: Sorry that's hitscan. hit detection is simply whether your bullet hit the enemy or not. Some games don't let you hit limbs, etc.
 
Last edited:

Absolution75

Senior member
Dec 3, 2007
983
3
81
Hit detection in multiplayer deals with the compensation of lag for doing tracing to see if you actually hit the player on your screen or not. Hit detection is actually just ray tracing, however, people use it synonymously with the assumption that they are talking about hit detection & netcode at the same time.

The server never actually knows where the player currently is, the amount of difference between what the server knows and where the player actually is on his screen is about the amount of your ping.

Basically, if two players have a 50 ms ping, both player A and player B will be 100ms behind in terms of relative positioning due to the fact that it takes player A 50ms to send his position to the server and then another 50ms to send player A's position to player B. There is a good amount of prediction that goes into calculating where the player is actually rendered and what the server considers "valid hits". Better netcode will make these effects less noticeable.

In FPS's online, sometimes it looks like you made it safely behind a wall only to die and warp slightly behind where you thought you were, this is due to that compensation or pseudo-hit detection (you were not behind the wall yet for the player that killed you).
 

DirkGently1

Senior member
Mar 31, 2011
904
0
0
It's what bad players blame for their lack of skill in online shooters, among other things.
 

Udgnim

Diamond Member
Apr 16, 2008
3,681
124
106
It's what bad players blame for their lack of skill in online shooters, among other things.

imo this

some games do have shit hit detection/registration but good players will still be able to play through it

there can be plenty of bitching from good and bad players about a game's hit detection, but bad players will use it as a crutch for their poor performance
 
Last edited:

Rifter

Lifer
Oct 9, 1999
11,522
751
126
Hit detection in multiplayer deals with the compensation of lag for doing tracing to see if you actually hit the player on your screen or not. Hit detection is actually just ray tracing, however, people use it synonymously with the assumption that they are talking about hit detection & netcode at the same time.

The server never actually knows where the player currently is, the amount of difference between what the server knows and where the player actually is on his screen is about the amount of your ping.

Basically, if two players have a 50 ms ping, both player A and player B will be 100ms behind in terms of relative positioning due to the fact that it takes player A 50ms to send his position to the server and then another 50ms to send player A's position to player B. There is a good amount of prediction that goes into calculating where the player is actually rendered and what the server considers "valid hits". Better netcode will make these effects less noticeable.

In FPS's online, sometimes it looks like you made it safely behind a wall only to die and warp slightly behind where you thought you were, this is due to that compensation or pseudo-hit detection (you were not behind the wall yet for the player that killed you).

This is also why for the most part the guy with a really bad ping 200ms worse than anyone else gets kicked from the server. As a really high ping will make hit detection a pain in the ass for the server to calculate. I was once in a rainbow 6 game way back in the day where i made it to cover reloaded got back up and shot someone got a kill for that, then apparantly died from getting shot by a guy who hit me on the way to that cover in the first place before i reloaded. My team mates told me it looked like i was teleporting 10 feet at a time around the cover i was behind then i just dropped dead. To me the game looked normal but i guess the server was screwing up the calculations. Obviously net code has got alot better since then but most competative FPS servers will boot most people with a 120ms ping or greater.
 

TakeNoPrisoners

Platinum Member
Jun 3, 2011
2,599
1
81
Hit detection is the ability of a game to register hits properly. At its worst is when you aim at a player perfectly and the game does not register the shot as a hit.