Page 1 of 1
Hit Detection Server-side?

Posted:
Sun Oct 02, 11 5:50 pm
by Poor
Is hit detection for bullets really server-side? That would explain why my bullets seem to pass through people with lower pings or hit them when I know I missed.

Posted:
Sun Oct 02, 11 7:35 pm
by Hanover Fist
Thats what iv alwaus thought. Its why i dont enjoy non augs.

Posted:
Sun Oct 02, 11 8:12 pm
by Poor
Then would anyone be interested in client-side hit detection?

Posted:
Sun Oct 02, 11 9:42 pm
by Baleout
The reason hit detection in all games ever is server-side is to stop cheating.

Posted:
Sun Oct 02, 11 11:22 pm
by Poor
Lots of games use client-side hit detection.
The difference is this:
You aim at an opponent and get a perfect headshot. The opponent has lower ping.
Server-side:
According to the server, he is in a different location and you therefore you missed. You complain "WTF man! I shot you in the head!" On your screen, you are actually seeing a past image of the opponent so your perceived hits might not hit the actual opponent. This greatly benefits those with lower pings because they can get more recent opponent locations and have less delay in updating their own locations. They have a more recent image of the what the server sees.
Client-side:
According to you, you got a headshot and the server believes you. The opponent complains that he jumped, ducked, or took cover in time. On your screen, you are actually seeing a past image of the opponent but it doesn't matter; your perceived hits will register. This would also happen if you had lower ping and the opponent had higher ping. Having a higher ping can help you get hits but it also makes you easier to hit.
Both methods have problems but client-side hit detection is more balanced.

Posted:
Sun Oct 02, 11 11:53 pm
by Aidan
Poor wrote:Lots of games use client-side hit detection.
Which games? Haven't seen any games in a long time with client side hit detection.

Posted:
Mon Oct 03, 11 12:39 am
by Baleout
No games use client side hit detection, because it's trivial to trick your client into telling the server that you never miss.
They do however use lag compensation, where the client predicts the server location of the enemy from the delayed information it recieves. E.g. if there is 100ms of lag, the client recieves the location of the enemy 100ms late, and then predicts where he would have moved to in the 100ms it took to get his location, and puts that on your screen.
Deus Ex doesn't have that. You have to do it yourself.

Posted:
Mon Oct 03, 11 1:28 am
by Poor
Baleout wrote:No games use client side hit detection.
Of course there are!
Here is a video of me exploiting it in SOCOM. I know Halo also uses CSHD.

Posted:
Mon Oct 03, 11 3:20 am
by Aidan
It's not hard to exploit SOCOM lol. Serverside, OR Clientside.

Posted:
Mon Oct 03, 11 11:44 am
by James
Console games using client side hit detection?, ohhhh myyyyy!

Posted:
Wed Oct 05, 11 12:30 pm
by synthetic
Baleout wrote:No games use client side hit detection, because it's trivial to trick your client into telling the server that you never miss.
They do however use lag compensation, where the client predicts the server location of the enemy from the delayed information it recieves. E.g. if there is 100ms of lag, the client recieves the location of the enemy 100ms late, and then predicts where he would have moved to in the 100ms it took to get his location, and puts that on your screen.
Deus Ex doesn't have that. You have to do it yourself.
I'd much rather calculate the difference myself, than rely on automatic latency compensation there. I believe CSS had some kind of strange calculations for hits? Pissed me off so bad.

Posted:
Wed Oct 05, 11 12:38 pm
by James
CSS seems it has notoriously awful hit detection because of hitboxes behind the moving players.

Posted:
Wed Oct 05, 11 3:03 pm
by Poor
ainaD wrote:It's not hard to exploit SOCOM lol. Serverside, OR Clientside.
That's very true. Right now, the PSP and PS2 SOCOMs are a huge mess. Cheaters can boot games, some know how to boot entire 256 player servers. There is a code that bans everyone in a game. All legit players have been banned, new players get banned within a few days, and you need a hacked system to bypass the ban.