mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 23:41:54 +08:00
feat(武器系统): 新增可蓄力钢管武器及相关功能
实现钢管武器的蓄力攻击机制,包括: - 添加 Pipe 武器和 PipeBullet 子弹脚本及场景 - 在 Weapon 类中增加蓄力相关属性和方法 - 修改 Rooster 角色以支持武器蓄力功能 - 添加武器蓄力时间计算和伤害加成逻辑
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
extends BulletBase
|
||||
class_name PipeBullet
|
||||
|
||||
var energy: float = 0
|
||||
|
||||
func ai():
|
||||
PresetBulletAI.forward(self, rotation)
|
||||
texture.rotation += energy * (1 - lifeTimePercent()) / 100
|
||||
speed = initialSpeed * (1 - lifeTimePercent())
|
||||
@@ -0,0 +1 @@
|
||||
uid://c4w0f18nj4qhk
|
||||
Reference in New Issue
Block a user