Skip to content

[BUG] viewmodel_offset_* #113

Description

@enferxD

Description

The viewmodel_offset_x, viewmodel_offset_y, and viewmodel_offset_z parameters do not have value limits. As a result, weapon models can be moved completely off-screen.

Expected Behavior

The game should enforce reasonable limits for viewmodel offsets to prevent weapon models from disappearing from view.

For example, Counter-Strike 2 uses the following limits:

viewmodel_offset_x: from -2.5 to 2.5
viewmodel_offset_y: from -2 to 2
viewmodel_offset_z: from -2 to 2

Actual Behavior

The offset values can be set beyond reasonable bounds, causing the weapon model to disappear from the screen.

Additional Issue

When adjusting viewmodel_offset_x to a negative value, melee weapons behave differently from all other weapon slots.

Steps to Reproduce
Equip a melee weapon.
Set viewmodel_offset_x to a negative value.
Compare the weapon movement with other weapon categories.
Expected Behavior

A negative viewmodel_offset_x value should move the weapon model to the left, consistently across all weapon types.

Actual Behavior

For melee weapons, a negative viewmodel_offset_x value moves the weapon model to the right instead of to the left

Video: https://www.youtube.com/watch?v=sYmauo2GLhE

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