1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/LGBTBullet.gd
T
fallingshrimp 65ef6dd5bb feat(武器): 调整LGBT武器冷却时间并添加爆炸效果
- 将LGBT武器的冷却时间从2000ms减少到500ms
- 移除子弹的固定伤害值,改为在销毁时创建爆炸效果
- 为爆炸效果添加粒子系统,包含彩虹渐变和随机方向
2025-09-06 09:08:28 +08:00

19 lines
528 B
GDScript

extends BulletBase
class_name LGBTBullet
var tracer: EntityBase = null
var maxTraceTime: float = 0
var tracePower: float
func register():
speed = 1
func ai():
texture.rotation_degrees += speed
speed *= 1.05
speed = clamp(speed, 0, 20)
if is_instance_valid(tracer) and timeLived() < maxTraceTime:
PresetAIs.trace(self, tracer.position, clamp(speed / 50 * tracePower, 0, 1))
PresetAIs.forward(self, rotation)
func destroy(_b):
EffectController.create(preload("res://components/Effects/LGBTBoom.tscn"), position).shot()