mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-02 17:31:55 +08:00
feat(子弹): 重构小鸡激光攻击并优化子弹行为
- 替换原有Laser为ChickLaser,实现更华丽的激光效果 - 调整FireScan子弹速度和伤害值 - 优化Diamond子弹追踪逻辑和持续时间 - 新增PresetsAI.lockLauncher方法用于固定子弹位置 - 调整Chick角色的攻击冷却时间和攻击距离判定
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
extends BulletBase
|
||||
class_name Diamond
|
||||
|
||||
const traceTime = 2000
|
||||
const traceTime = 1500
|
||||
|
||||
func register():
|
||||
damage = 2
|
||||
func ai():
|
||||
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.1 * clamp((traceTime - timeLived()) / traceTime, 0, INF))
|
||||
canDamageSelf = !(timeLived() >= traceTime)
|
||||
PresetsAI.forward(self, rotation)
|
||||
if timeLived() < traceTime:
|
||||
PresetsAI.trace(self, launcher.currentFocusedBoss.position, 0.05)
|
||||
|
||||
Reference in New Issue
Block a user