Client-Side Hit Detection?
-
xseeyax
- Posts: 228
- Joined: 2007-03-14 20:15
Client-Side Hit Detection?
Right now BF2 (and consequently PR) uses server-side hit detection, which is the reason why when you shoot someone they don't always die when they should (if anyone wants me to really explain it then PM me, or my xfire is xseeyax). This is especially problematic in overseas servers. Have the developers thought of rewriting the network code to include client-side hit detection instead?
If you believe in Jesus Christ , have accepted him as your lord and savior, and are 100% proud of it, put this in your sig .
-
Figisaacnewton
- Posts: 1895
- Joined: 2004-11-23 05:27
-
xseeyax
- Posts: 228
- Joined: 2007-03-14 20:15
It is possible can a dev please respond or someone who knows what they are talking about?Figisaacnewton wrote:think about it dude.
Client side hit detection.
Thats impossible.
It could only possibly be client side if you some how shot your self.
To make the whole process clientside, you'd have to have have all the other players... playing... on your computer. Which they arn't.
If you believe in Jesus Christ , have accepted him as your lord and savior, and are 100% proud of it, put this in your sig .
-
Hardtman
- Posts: 535
- Joined: 2007-05-04 18:11
With client-side hit-detection we would have the problem of lag.
Imagine this:You see somebody aiming at you.He has a ping of 300,you of 60. You run behind cover before he can shoot,so far so good.
But from his point of view you are not behind cover,so he shoots, his client registers a hit and you are dead although should have survived.
The server-side detection is not great,but with the reduction of the running speed,this problem was minimalized, and maybe even some more improvements might come.
Imagine this:You see somebody aiming at you.He has a ping of 300,you of 60. You run behind cover before he can shoot,so far so good.
But from his point of view you are not behind cover,so he shoots, his client registers a hit and you are dead although should have survived.
The server-side detection is not great,but with the reduction of the running speed,this problem was minimalized, and maybe even some more improvements might come.
-
xseeyax
- Posts: 228
- Joined: 2007-03-14 20:15
True but picture this I shoot a guy twice in the head and there is blood and everything but he just shakes it off, turns around and shoots me. If I shoot a guy in the head he should die.Hardtman wrote:With client-side hit-detection we would have the problem of lag.
Imagine this:You see somebody aiming at you.He has a ping of 300,you of 60. You run behind cover before he can shoot,so far so good.
But from his point of view you are not behind cover,so he shoots, his client registers a hit and you are dead although should have survived.
The server-side detection is not great,but with the reduction of the running speed,this problem was minimalized, and maybe even some more improvements might come.
It does that because if you have lag then you actually see the guy in a spot that he is not in like if he is running the host can actually see the true location of the guy because it takes no time at all to transfer that information to the server client since he is the host, but if you aren't the host then you will actually see the "lagged" version of the guy and he will be further back on your screen than he actually is.
That is why you have to lead your shots even more. Same thing if the person is idle, so its actually better to shoot a little bit right or left of him if he doesn't die when you have the sight right on him because the actual spot could be a little to the right or left. That does not happen with client-side hit detection. Plus who plays with 300 ping.
Last edited by xseeyax on 2007-07-19 11:36, edited 1 time in total.
If you believe in Jesus Christ , have accepted him as your lord and savior, and are 100% proud of it, put this in your sig .
-
Wolfe
- Posts: 1057
- Joined: 2007-03-06 03:15
2 reasons why client-side is bad. Sounds nice, but it would double your ping and promote hacking. Here's why:xseeyax wrote:It is possible can a dev please respond or someone who knows what they are talking about?
First, server side hit detection requires a signal from your computer to the server to determine of you hit your target. Client side requires a signal from your computer, to the server, then on to the computer of the person whom you are shooting.
Second, you think cheating is bad now? Imagine client-side hit detection where hackers could edit local files to remove their own hit detection making them virtually impossible to kill.
Until a quantum modem is invented, we'll just have to deal with pings.
-
xseeyax
- Posts: 228
- Joined: 2007-03-14 20:15
Yeah that's my one worry is that people will start hacking, but I did read up on server side hit prediction. It works pretty much the same way as server side hit detection but say you shoot someone in the head then the server will then go back in time to see if like a mili second later you were there and actually took the shot instead of going well he did get shot but he moved therefore he didn't get killed.Wolfe wrote:2 reasons why client-side is bad. Sounds nice, but it would double your ping and promote hacking. Here's why:
First, server side hit detection requires a signal from your computer to the server to determine of you hit your target. Client side requires a signal from your computer, to the server, then on to the computer of the person whom you are shooting.
Second, you think cheating is bad now? Imagine client-side hit detection where hackers could edit local files to remove their own hit detection making them virtually impossible to kill.
Until a quantum modem is invented, we'll just have to deal with pings.
This one actually goes back and checks if he actually did get shot at that time. And will give you the kill. Now I think we SHOULD have this one because you wont have ping problems, won't have hackers and WILL give us our kills when we shoot someone. So devs, is there anyway you could make a patch just for pr with server side hit prediction?
If you believe in Jesus Christ , have accepted him as your lord and savior, and are 100% proud of it, put this in your sig .
-
Zodiaccup
- Posts: 167
- Joined: 2007-04-02 16:17
-
VipersGhost
- Posts: 1171
- Joined: 2007-03-27 18:34
I played with a ping of about 60-80...hit detection is great for me. I played a server last night with a ping of 16...I didn't even notice the difference. I pop guys on the run at 300+ m all the time....I've headshooted the drivers out of insurgent trucks. A lot of guys are just plain bad shots tbh. If a guy is sitting there and you shoot his head....he will die no matter what your connection is if he doesn't move. In those situations the hit detection is flippin perfect *stationary target*. Only on the move would lag come into play.
-
xseeyax
- Posts: 228
- Joined: 2007-03-14 20:15
It wouldn't double your ping, first of all. Your ping is your ping. No matter the hit detection used, your ping is never "doubled." In fact, the effects of ping will be almost non-existent with client-side hit detection.Wolfe wrote:2 reasons why client-side is bad. Sounds nice, but it would double your ping and promote hacking. Here's why:
First, server side hit detection requires a signal from your computer to the server to determine of you hit your target. Client side requires a signal from your computer, to the server, then on to the computer of the person whom you are shooting.
Second, you think cheating is bad now? Imagine client-side hit detection where hackers could edit local files to remove their own hit detection making them virtually impossible to kill.
Until a quantum modem is invented, we'll just have to deal with pings.
Your example of "a signal from your computer, to the server, then on to the computer of the person whom you are shooting" is the same for all types of hit detection.
As far as cheating goes, there's a possibility it could come into play. However, the PR community is all about playing realistically and cheating is not very rampant at all. I don't think it's much to be worried about to be honest. If anything, server-side hit prediction would eliminate that issue. Counter Strike: Source uses server-side hit prediction and works very well. I wouldn't expect the devs to try to implement that, as client-side would be much easier to put in.
There was a project that was done awhile back for Unreal Tournament to get around the server-side hit detection, which is an obvious problem for shooters. It was called Zeroping (link here). Hopefully someone here is savvy enough to put something similar together for Battlefield 2.
Here's also a link for some of you to read up on to gain a little more knowledge on the subject:
Lag Compensation
I'd love for a developer to share some insight on this subject.
Last edited by xseeyax on 2007-07-19 20:52, edited 1 time in total.
If you believe in Jesus Christ , have accepted him as your lord and savior, and are 100% proud of it, put this in your sig .
-
SiN|ScarFace
- Posts: 5818
- Joined: 2005-09-08 19:59
-
xseeyax
- Posts: 228
- Joined: 2007-03-14 20:15
I don't think it'd be hardcoded, but I won't speculate until a dev confirms one way or the other.SiN|ScarFace wrote:Sounds like this would fall into the category all wishful things go into, HARDCODED.
It's not even that bad, esp for a game that can handle 64 players with minimal lag. Lead moving targets.
If you believe in Jesus Christ , have accepted him as your lord and savior, and are 100% proud of it, put this in your sig .
-
Leo
- Posts: 2082
- Joined: 2006-11-29 00:40
For some reason, .609 is horrible for me, they can be standing completely still, 10 meters from me, I shoot them in the head, I see blood, but nothing happens.
It takes 3 bursts to take someone down. It was much better in .607, I don't know, maybe it was just that one server or something is wrong on my side.
It takes 3 bursts to take someone down. It was much better in .607, I don't know, maybe it was just that one server or something is wrong on my side.
-
xseeyax
- Posts: 228
- Joined: 2007-03-14 20:15
Yeah I hear you. That's a common problem with all server-side hit detection games though. It mostly depends on the server you're playing on; obviously the lower the ping the better. But in these types of games it's imperative.Leo wrote:For some reason, .609 is horrible for me, they can be standing completely still, 10 meters from me, I shoot them in the head, I see blood, but nothing happens.
It takes 3 bursts to take someone down. It was much better in .607, I don't know, maybe it was just that one server or something is wrong on my side.
If you believe in Jesus Christ , have accepted him as your lord and savior, and are 100% proud of it, put this in your sig .




