1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-24 04:22:29 +08:00

refactor: 替换PresetAIs为PresetBulletAI,优化子弹AI逻辑

This commit is contained in:
2025-09-06 18:33:11 +08:00
parent b32f864e84
commit f5db5829a2
14 changed files with 36 additions and 15 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ func ai():
speed *= 1.05
speed = clamp(speed, 0, 20)
if is_instance_valid(tracer) and timeLived() < maxTraceTime:
PresetAIs.trace(self, tracer.getTrackingAnchor(), clamp(speed / 50 * tracePower, 0, 1))
PresetAIs.forward(self, rotation)
PresetBulletAI.trace(self, tracer.getTrackingAnchor(), clamp(speed / 50 * tracePower, 0, 1))
PresetBulletAI.forward(self, rotation)
func destroy(_b):
EffectController.create(preload("res://components/Effects/LGBTBoom.tscn"), position).shot()