完善客户端功能并加入40250一致性审计

This commit is contained in:
shen
2026-09-21 16:38:58 -07:00
parent 3eb001a1fd
commit 1522a8a1a1
22 changed files with 876 additions and 105 deletions
+4 -1
View File
@@ -1207,7 +1207,10 @@ func _on_dead(vid: int) -> void:
func _on_fly(_type: int, start_vid: int, end_vid: int) -> void:
var a: Vector3 = _entity_pos(start_vid)
var b: Vector3 = _entity_pos(end_vid)
var target_node: Node3D = _by_vid.get(end_vid, null)
# 本地主角按 40250 的单实例规则不在 _by_vid 中;经验球的 end_vid 正是主角,
# 必须指向 _local_node 才会追踪胸口并触发 at_target/吸收效果。
var target_node: Node3D = _local_node if end_vid == _local_vid and is_instance_valid(_local_node) \
else _by_vid.get(end_vid, null)
var shooter: Node3D = _by_vid.get(start_vid, null)
if b == Vector3.INF and shooter:
var target: Dictionary = {}