Skip to content

Server hitbox fixes for single-blend animations and spawn state #1171

Description

@cspburgija

Problem
Two related hitbox issues in ReGameDLL:

numblends == 1 sequences (duck, reload, plant C4): SV_StudioSetupBones never uses blending[0] to select the sub-animation, so bone positions are wrong.

Spawn: stale frame / blending / controller values can leave the head hitbox offset from the model origin until the first animation update.

These combine with ReHLDS lag compensation (see companion ReHLDS issue) to produce incorrect server-side traces.

Proposed fix
animation.cpp: add numblends == 1 branch using blending[0] + StudioSlerpBones
player.cpp Spawn(): reset frame, framerate, blending, controller under #ifdef REGAMEDLL_FIXES
Reference
Working patch (tested on live CS 1.6 server): https://github.com/cspburgija/cs16-server-hitbox-fix

Companion ReHLDS engine changes are required for full lag compensation fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions