cg_debugPlayerHitbox doesn't show all & correct hitboxes
1.) cg_debugPlayerHitbox 7 should draw head, client/body & legs hitboxes. Only client box is always drawn - legs and head are visible from time to time. Head is fully messed.
2.) hitboxes are not adjusted for dead players.
- adjust colors of boxes
- adjusted prone hitbox height (was twice as high as etpro)
- added slightly lower hitbox when crouching without moving
- adjusted height of client side hitboxes to be same as server side
- added missing prone legs hitbox in server side debug hitbox mode
- added headbox in client side debug hitbox code
- adjusted debug hitbox colours
#4 Updated by Spyhawk about 1 month ago
- Target version changed from 2.78 to 2.77
adjust cg_debugplayerHitboxes so it display the same hitboxes as predicted server side (doesn’t take ZMax into account atm)(done) use better colors for cg_debugplayerHitboxes (blue in hardly visible)(done) adjust g_debugPlayerHitboxes so it displays the legs hitbox server side too(done) adjust cg_debugplayerHitboxes so it displays headbox in all position on the client side(done, though not realhead) check if dead players have a legs hitbox (like prone) or if it is missing. (it’s missing. position seems inaccurate on the server side, and the client side has legs/head inverted)(fixed) adjust crouch hotbox for idle/moving status(done)
- fix bounding box height (prone position, maybe dead too?) (tracked in #503)
check prediction code (keep in mind realhead is only available server side)(done, but keep in mind realhead is server side only) displaying client hitbox for all client on server is buggy (in fact, not possible). We should restrict its use to the actual client only.(done) don’t display client hitbox if client is sent to limbo already check client side cvar (server side should be okay with two possible bitflag values only)(done) optimization (simplify hitbox delta and use direct body height instead) Check hit regions and how the related to the current hitbox system. (done - they’re completely unrelated and only used to generate end of game stats).
#5 Updated by keMoN about 1 month ago
Please document the changes also in the wiki section once done.
I noticed that in the code it says that 1 is for hitbox and 4 the position marker. Is that correct? The prone hitbox would be huge then!
#9 Updated by Spyhawk about 1 month ago
- Status changed from New to Fixed
- % Done changed from 50 to 100
There are still some mine issues left when enabling server hitboxes with multiple clients, but now the debug code has reached a point where it is actually display actual hitboxes and is thus usable.
Keep in mind client side hitbox doesn’t make use of realhead code, and legs/head hiboxes are approximate only (they’re fine server side).
Bounding box height issue is tracked in #503.
I’d thus consider this issue fixed.