Skip to content

vecDir is not normalized in some TraceAttack calls #520

@FreeSlave

Description

@FreeSlave

pEntity->TraceAttack( m_hOwner->pev, gSkillData.controllerDmgZap, pev->velocity, &tr, DMG_SHOCK );

pEntity->TraceAttack( pev, gSkillData.nihilanthZap, pev->velocity, &tr, DMG_SHOCK );

hlsdk-portable/dlls/combat.cpp

Lines 1360 to 1362 in b164467

Vector vecDir = vecDirShooting +
x * vecSpread.x * vecRight +
y * vecSpread.y * vecUp;

hlsdk-portable/dlls/combat.cpp

Lines 1488 to 1490 in b164467

Vector vecDir = vecDirShooting +
x * vecSpread.x * vecRight +
y * vecSpread.y * vecUp;

This doesn't affect much as vecDir is used only in calculation of blood decal trace and (incorrectly) in alien grunt ricochet tracer code.

Do you think it needs a fix?

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