added nice smoke puffs to interactible objects

This commit is contained in:
2026-01-11 12:27:02 +01:00
parent 3adf6660bb
commit 37b0d61566
13 changed files with 566 additions and 30 deletions

View File

@@ -431,6 +431,7 @@ func _die():
if killer_peer_id != 0 and killer_peer_id != multiplayer.get_unique_id() and killer_player.has_method("_sync_stats_update"):
# Server is updating a client's player stats - sync to the client
var coins = killer_player.character_stats.coin if "coin" in killer_player.character_stats else 0
print(name, " syncing kill stats to client peer_id=", killer_peer_id, " kills=", killer_player.character_stats.kills, " coins=", coins)
killer_player._sync_stats_update.rpc_id(killer_peer_id, killer_player.character_stats.kills, coins)
# Spawn loot immediately (before death animation)