garrysmod-issues icon indicating copy to clipboard operation
garrysmod-issues copied to clipboard

Bullet tracer effects get an incorrect attachments position of the viewmodel in multiplayer

Open Goldermor opened this issue 2 years ago • 1 comments

While working on my weapons base, I noticed that the effects of tracers from bullets get incorrect attachment positions from viewmodels when using any viewpunch effect in multiplayer.

Here is an example of the resulting positions Blue - the actual position of the attachment in the world Green and red - the starting position of the bullet tracer

Singleplayer(correct): image

Multiplayer(incorrect): image

this works with any bullet tracer effect including default egine effects

To reproduce:

Use any SWEP in multiplayer; Set any visible tracer in bullet table; Set self:ViewPunch( Angle(-10,0,0) ) or more in PrimaryAttack function.

Goldermor avatar Oct 12 '22 06:10 Goldermor

another example of what attachment position is returned by the effect and the client in the same frame image

Goldermor avatar Oct 12 '22 07:10 Goldermor