pWn3d1337 / Techguns

Techguns mod for minecraft
https://minecraft.curseforge.com/projects/techguns
16 stars 4 forks source link

Frag Grenades Glitch Out #43

Open Stryder914 opened 7 years ago

Stryder914 commented 7 years ago

I understand that this is an alpha build, but I notices Frag Grenades Glitch Uncontrollably when they touch the ground. This is minor, because the explosion isn't affected by said glitch.

pWn3d1337 commented 7 years ago

It's a synchronization problem. When the grenade bounces it's removed and a new one is launched in the reflection direction. This causes the grenade to disappear shortly on the client until it gets the new Packet for the entitity creation from the server. Serverside the grenade does fly correctly, the client just isn't allway perfectly in sync.

I'm not really happy with it, maybe I can improve it by not shooting it new, but by changing the motion vector. This is more prone to desynching, but when I send a packet each bounce, maybe it gets better.

This behaviour affects all grenades, not just the frag grenade.