mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
65ef6dd5bb
- 将LGBT武器的冷却时间从2000ms减少到500ms - 移除子弹的固定伤害值,改为在销毁时创建爆炸效果 - 为爆炸效果添加粒子系统,包含彩虹渐变和随机方向
19 lines
528 B
GDScript
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()
|