mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
936b2ba200
修改多个子弹脚本和EntityBase,使用统一的getTrackingAnchor方法获取追踪目标位置 在BulletBase中增加目标有效性检查 调整Wave配置和Rooster武器顺序
13 lines
291 B
GDScript
13 lines
291 B
GDScript
extends BulletBase
|
|
class_name Diamond
|
|
|
|
const traceTime = 1500
|
|
|
|
func register():
|
|
damage = 2
|
|
func ai():
|
|
canDamageSelf = !(timeLived() >= traceTime)
|
|
PresetAIs.forward(self, rotation)
|
|
if timeLived() < traceTime:
|
|
PresetAIs.trace(self, launcher.currentFocusedBoss.getTrackingAnchor(), 0.05)
|