garrysmod-issues
garrysmod-issues copied to clipboard
Bullet tracer effects get an incorrect attachments position of the viewmodel in multiplayer
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):
Multiplayer(incorrect):
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.
another example of what attachment position is returned by the effect and the client in the same frame