mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-08 04:37:13 +08:00
feat(战斗系统): 重构子弹追踪逻辑,使用实体当前焦点位置替代鼠标位置
修改所有子弹追踪逻辑,统一使用launcher.currentFocusedPosition作为目标位置 在EntityBase中新增currentFocusedPosition字段,用于存储当前焦点位置 调整MTY角色的攻击距离参数,使用常量定义最小招架和攻击距离
This commit is contained in:
@@ -6,7 +6,7 @@ class_name WuweiBullet
|
||||
func ai():
|
||||
if canMove:
|
||||
PresetBulletAI.lockLauncher(self , launcher, true)
|
||||
PresetBulletAI.trace(self , get_global_mouse_position(), 0.1)
|
||||
PresetBulletAI.trace(self , launcher.currentFocusedPosition, 0.1)
|
||||
|
||||
func shoot():
|
||||
for bullet in BulletBase.generate(
|
||||
|
||||
Reference in New Issue
Block a user