1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/LGBTBullet.gd
T
fallingshrimp 1fa8263667 refactor(BulletBase): 移除子弹注册方法并添加子子弹标记
移除所有子弹类中的register方法,将属性初始化移至其他位置
在BulletBase的trySplit和tryRefract方法中添加子子弹标记
2026-01-17 12:30:09 +08:00

16 lines
453 B
GDScript

extends BulletBase
class_name LGBTBullet
var tracer: EntityBase = null
var maxTraceTime: float = 0
var tracePower: float = 0
func ai():
speed *= 1.05
speed = clamp(speed, 0, 20)
if is_instance_valid(tracer) and timeLived() < maxTraceTime:
PresetBulletAI.trace(self, tracer.getTrackingAnchor(), tracePower)
PresetBulletAI.forward(self, rotation)
func destroy(_b):
EffectController.create(ComponentManager.getEffect("LGBTBoom"), position).shot()