netfox icon indicating copy to clipboard operation
netfox copied to clipboard

Projectiles can be spawned by NetworkWeapon without an ID in their name

Open Lexari0 opened this issue 6 months ago • 0 comments

_accept_projectile in network_weapon.gd has a code path which calls _spawn() without calling _save_projectile(...) on the result, leading to a server with the correct name (eg: "Bullet IDIDIDIDID") and a client with an incorrect name (eg: "Bullet").

This leads all future projectile spawns to desync as their names will be different on the server (eg: "Bullet IDIDIDIDID") and client (eg: "Bullet2 IDIDIDID"), causing RPCs to fall.

Lexari0 avatar Aug 14 '24 05:08 Lexari0