ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.71k stars 625 forks source link

[CS 1.6] Spray bugs #2161

Open WaLkZa opened 5 years ago

WaLkZa commented 5 years ago

Spray sound bug demo: https://www.youtube.com/watch?v=gj-fFqi9oAo More info + fix proposed: https://forums.alliedmods.net/showpost.php?p=1660912&postcount=9

SamVanheer commented 5 years ago

This happens because the spray can origin is placed 32 units above the player origin, which puts it inside the train: https://github.com/ValveSoftware/halflife/blob/5d761709a31ce1e71488f2668321de05f791b405/dlls/player.cpp#L3239