hlsdk-portable icon indicating copy to clipboard operation
hlsdk-portable copied to clipboard

vecDir is not normalized in some TraceAttack calls

Open FreeSlave opened this issue 8 months ago • 1 comments

https://github.com/FWGS/hlsdk-portable/blob/b1644675c40b3dae0f90c4a59b133fe08eac6d6f/dlls/controller.cpp#L1203 https://github.com/FWGS/hlsdk-portable/blob/b1644675c40b3dae0f90c4a59b133fe08eac6d6f/dlls/nihilanth.cpp#L1472 https://github.com/FWGS/hlsdk-portable/blob/b1644675c40b3dae0f90c4a59b133fe08eac6d6f/dlls/combat.cpp#L1360-L1362 https://github.com/FWGS/hlsdk-portable/blob/b1644675c40b3dae0f90c4a59b133fe08eac6d6f/dlls/combat.cpp#L1488-L1490

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?

FreeSlave avatar Apr 14 '25 11:04 FreeSlave

If it's doesn't break anything why not?

nekonomicon avatar Apr 15 '25 05:04 nekonomicon