1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/LGBTBullet.gd
T
fallingshrimp 675219e0f8 feat(武器系统): 重构LGBT武器和彩虹旗召唤物
调整LGBT武器属性计算公式,增加角度和数量参数
为彩虹旗召唤物添加多子弹发射和延迟发射功能
修改子弹追踪逻辑和穿透属性
更新武器描述和能量消耗
2025-11-07 22:31:51 +08:00

18 lines
481 B
GDScript

extends BulletBase
class_name LGBTBullet
var tracer: EntityBase = null
var maxTraceTime: float = 0
var tracePower: float = 0
func register():
speed = 1
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()