mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
refactor(Volcano bullet): 优化火山弹相关逻辑
1. 新增spawn方法并设置可切割属性 2. 调整命中时的冲量大小从500改为400 3. 为动画添加hitbox显隐切换轨道
This commit is contained in:
@@ -9,6 +9,8 @@ var count: int = 0
|
||||
var dmg5: float = 0
|
||||
var splitAngle: float = 10
|
||||
|
||||
func spawn():
|
||||
setupCuttable(0.2)
|
||||
func ai():
|
||||
PresetBulletAI.lockLauncher(self , launcher, true)
|
||||
rotation = lerp_angle(
|
||||
@@ -17,7 +19,7 @@ func ai():
|
||||
rotates
|
||||
)
|
||||
func succeedToHit(_dmg: float, entity: EntityBase):
|
||||
entity.impluse((entity.getTrackingAnchor() - position).normalized() * 500)
|
||||
entity.impluse((entity.getTrackingAnchor() - position).normalized() * 400)
|
||||
ParryEntityEffect.createEffectEntity(entity, self )
|
||||
|
||||
func generateShadow():
|
||||
|
||||
Reference in New Issue
Block a user