Hitboxes (probby discussed a million times)

Discussion for Bani's Tournament Mod

Moderators: Forum moderators, developers

squadjot
Posts: 378
Joined: Tue Feb 10, 2004 9:49 am
Location: Somewhere in Valby
Contact:

Hitboxes (probby discussed a million times)

Post by squadjot »

Hey Bani and crew

I was testing the hitboxes..first in etdefault..and afterwards in etpro..

is it me?..or are the hitboxes...pretty much the same...? actually..they looked EXACTLY the same as default..

i just heard that tere was done some hitbox fixes..true or not?
Last edited by squadjot on Tue May 04, 2004 8:45 am, edited 1 time in total.
User avatar
Deus
Posts: 1053
Joined: Fri Mar 12, 2004 2:24 am
Location: Germany
Contact:

Post by Deus »

What do you expect them to be ?

Like bodyshaped ?

Hitboxes are edited afaik.
*BiO*Tron
Posts: 56
Joined: Sat Dec 13, 2003 1:37 pm
Location: Germany
Contact:

Post by *BiO*Tron »

AFAIK there have been no changes to the hitboxes at all, only to the antilag code.

However, I've come up with a theory why so many players felt that headshots were more "random" now since ETPro introduced the new antilag code.

Everyone who is interested in this topic has surely read the following article: http://www.et-center.com/?page=articles&id=43
If not, do so quickly. ;) What you can see is that for almost no model the positions, where the head is displayed on the client and the actual head hitbox is, fit together. You can also see that the bigger discrepancies occur for strafing players. Finally, one can notice the biggest discrepancies for all models where the player strafes to the right.

As bani explained, the original vanilla ET antilag code was broken in several ways. From what I can tell, at least the framerate dependency bug led to the fact that you had to lead your shots slightly in order to hit, even with antilag turned on. Bani also mentioned that the server was generally lagging 50 or 60 ms behind (don't recall the right value) which probably means that you had to lead your shots as well.

Now imagine someone was always aiming directly at the head, with the old antilag code and now with the new one. When he was shooting at a player strafing to the right (or to the left, even if the discrepancy is not as big), what might have happened is:
On his client, he aimed perfectly at the head which - taking the actual hitboxes into account as you can see them in the et-center article - means that in fact he would MISS the head. BUT if there was actually need to lead your shots with the old antilag code, it would result in a delayed hit calculation on the server and therefore those shots would have been recognized as headshots.
With the new antilag code, which works much more properly, shots aimed directly at the heads of strafing players are no longer recognized as headshots because of the hitbox wrongness. In order to score headshots, you have to aim a little behind the head of a strafing player.


Now this is just a theory which might be wrong, but could the ETPro crew please think about it and tell us their opinion? 8)
User avatar
IdNotFound
Posts: 197
Joined: Wed Dec 03, 2003 8:21 pm
Location: Brazil
Contact:

Post by IdNotFound »

I believe ETpro didn't change anything else than the prone hitboxes, that was totally bugged.

The latest change to that is a gradual transition from standing to prone, not sure how (if going by crouch hitboxes on the mean time or something).

ETpro team can give you more details :)
Image nZ/IdNotFound
NaZGûL TeaM Leader
SAWL Tech Staff
Chr0nicles_
Posts: 4
Joined: Fri Feb 27, 2004 8:12 am

Post by Chr0nicles_ »

With the new anti-lag code (3.0.2) you can indeed just aim on what you see, but you get better results if you aim slightly behind the moving player.
squadjot
Posts: 378
Joined: Tue Feb 10, 2004 9:49 am
Location: Somewhere in Valby
Contact:

Post by squadjot »

Chr0nicles_ wrote:With the new anti-lag code (3.0.2) you can indeed just aim on what you see, but you get better results if you aim slightly behind the moving player.
well.. , if the hitboxes still arent fixed..it would depend on what direction the player moves...imo
User avatar
ReyalP
Posts: 1663
Joined: Fri Jul 25, 2003 11:44 am

Post by ReyalP »

squadjot wrote:
Chr0nicles_ wrote:With the new anti-lag code (3.0.2) you can indeed just aim on what you see, but you get better results if you aim slightly behind the moving player.
well.. , if the hitboxes still arent fixed..it would depend on what direction the player moves...imo
As a general rule, the head is behind the moving animations, in the direction of movement. I.e. you have to 'trail' instead of 'leading' This is added to a fixed offset based on which weapon you are holding. SMGs have one of the biggest offsets.

Bani has said that this is too hard to fix, but IMO, it could be made a LOT better (say within 4 units of the model head 90% of the time, instead of the current which is often 10+ units away from the model). The server does know roughly which animation is in use (weapon held, running/walking/strafing/swimming) since these are assigned in bg_, and it could choose an initial offset based on this. Furthermore, it would be possible to verify and refine this by comparing the actual head postion and calculated head postion on a non-dedicated server. You might even be able to build some kind of lookup table automatically that way...

This is something I hope to try when I get the time. If it works out, I will certainly make the code available to anyone who wants it.

The downside of doing this is that everyone would have to learn to aim again. Given the ammount of noise the antilag fixes generated, I'm not sure how that would go over...
send lawyers, guns and money
*BiO*Tron
Posts: 56
Joined: Sat Dec 13, 2003 1:37 pm
Location: Germany
Contact:

Post by *BiO*Tron »

SCDS_reyalP wrote:Bani has said that this is too hard to fix, but IMO, it could be made a LOT better (say within 4 units of the model head 90% of the time, instead of the current which is often 10+ units away from the model). The server does know roughly which animation is in use (weapon held, running/walking/strafing/swimming) since these are assigned in bg_, and it could choose an initial offset based on this. Furthermore, it would be possible to verify and refine this by comparing the actual head postion and calculated head postion on a non-dedicated server. You might even be able to build some kind of lookup table automatically that way...

This is something I hope to try when I get the time. If it works out, I will certainly make the code available to anyone who wants it.

The downside of doing this is that everyone would have to learn to aim again. Given the ammount of noise the antilag fixes generated, I'm not sure how that would go over...
Sounds like a good plan to me if you could make it work like you say. I think most people would welcome that change as it's simply more intuitive to aim directly at the head instead of a little bit behind it. Also, the current antilag code isn't out that long yet so it's not that everyone is used to a trailing aim since ages.

The most annoying hitboxes for me personally are those of crouched players. The actual head hitbox is the furthest away from the animation of the head and when you miss it, you don't even score a body hit. I guess many people have experienced those situations a lot where you are shooting directly at the head of a crouched (and strafing) player and don't get a single hit.
User avatar
bani
Site Admin
Posts: 2780
Joined: Sun Jul 21, 2002 3:58 am
Contact:

Post by bani »

SCDS_reyalP wrote:Bani has said that this is too hard to fix, but IMO, it could be made a LOT better (say within 4 units of the model head 90% of the time, instead of the current which is often 10+ units away from the model). The server does know roughly which animation is in use (weapon held, running/walking/strafing/swimming) since these are assigned in bg_, and it could choose an initial offset based on this. Furthermore, it would be possible to verify and refine this by comparing the actual head postion and calculated head postion on a non-dedicated server. You might even be able to build some kind of lookup table automatically that way...
keep in mind the server has no idea what animation frame an individual client is playing. some animations move the head wildly -- the situp animation for wounded players is an extreme example, tossing packs is another one.

not to mention the player leaning based on trdelta. throw animations on top of that and... :x

also, there are still etmain antilag errors up to an entire body length or more. (etpro fixes this mostly, but there are still errors)
User avatar
ReyalP
Posts: 1663
Joined: Fri Jul 25, 2003 11:44 am

Post by ReyalP »

bani wrote:
keep in mind the server has no idea what animation frame an individual client is playing. some animations move the head wildly -- the situp animation for wounded players is an extreme example, tossing packs is another one.
Absolutely. It would still be wrong some of the time, and grossly wrong occasionally. With the client an server guessing what each other are doing, it will never be perfect. OTOH it seems to me it could be much better most of the time, and rarely worse. Just adding offsets for holding an SMG and moving forward/right/left would be a big start. Strafing with an SMG is probably the most common thing we do, and it is one of the worst cases. Of course the proof will be in the actually doing it.

I am well aware of the antilag bugs.
send lawyers, guns and money
Bedrock
Posts: 140
Joined: Wed Sep 17, 2003 3:56 am

just thought these were interesting.

Post by Bedrock »

Strafe-left-nade
Image

Strafe-right-smg
Image

Run-forward-smg
Image

crouch-smg-strafe-right
Image

Lol?
Image
Image
squadjot
Posts: 378
Joined: Tue Feb 10, 2004 9:49 am
Location: Somewhere in Valby
Contact:

Post by squadjot »

how do you get the hitbox to follow you around` (if thats what u do here?)
Bedrock
Posts: 140
Joined: Wed Sep 17, 2003 3:56 am

Post by Bedrock »

I'm not sure, I don't take credit for taking those screenshots. Yes, those are the hitboxes. I don't know the commands to show them though, I had them before.. but right now all I can find is how to activate railtrails. =o~
Image
squadjot
Posts: 378
Joined: Tue Feb 10, 2004 9:49 am
Location: Somewhere in Valby
Contact:

Post by squadjot »

well..devmode map then g_debugbullets 7...but then they just appear "freeze" when u make a "hit".. they dont follow you around (teh baxes)
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Post by =FF=im2good4u »

i used to green and red ones :D
Post Reply