-
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
bugSomething isn't workingSomething isn't working
Description
🐛 Description
Projectiles fired by clients persist on the client's screen after hitting the host player, despite the hit being registered (displacement occurs). The projectile continues flying without exploding on the client side, while the host/server sees the correct behavior (explosion and projectile removal).
Steps to reproduce
- Set up a forest brawl example with 2 instances
- Use instance 1 to host a game
- Use instance 2 to join as a client
- From the client (instance 2), shoot a bomb projectile at the host player
- Observe the behavior on both screens
Forest.brawl.persisting.bomb.projectile.mp4
Expected behavior
- The projectile should hit the host player on both screens
- An explosion should appear at the impact location on both screens
- The projectile should be freed/removed from both the host and client screens
- Displacement effect should occur on both screens
Observed behavior
On Client (shooter) screen:
- The projectile hits the host player
- Displacement on the target player occurs correctly
- No explosion visual appears
- The projectile continues flying and is not freed
On Host screen:
- Everything works correctly - explosion appears and projectile is removed
Logs from the session:
[DBG][@2240][#1321665129][_][netfox.extras::NetworkWeapon] Calling after fire hook for Bomb Projectile 0oihuio37p6h
[INF][@2241][#1321665129][_][netfox.extras::NetworkWeapon] Accepting projectile 0oihuio37p6h from 1
[WRN][@2246][#1321665129][_][netfox::DiffHistoryEncoder] Reference tick 2242 missing for #1 applying 2247
[DBG][@2247][#1][_][fb::Displacer] Created explosion at (1.735605, 1.500955, 3.618552)@2246
[DBG][@2270][#1321665129][_][fb::Displacer] Created explosion at (12.80797, 1.500955, 4.475404)@2269
Versions
- Godot version: 4.5
- netfox version: main branch - commit hash
7c1e9eff915bc46cef5b433398c9801367446071
MRE
The issue can be reproduced using the official forest-brawl example with the setup described above (2 instances, one hosting, one as client, client shoots at host).
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working