mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-11 06:07:12 +08:00
feat: 添加深海角色和木制子弹相关功能
添加深海角色及其攻击逻辑,包括两种攻击方式: 1. 随机发射水泥子弹 2. 向目标发射三发追踪木制子弹 新增木制子弹资源及脚本,实现追踪效果 调整武器树和波次配置,将深海加入测试波次 优化水泥子弹和筷子子弹的动画效果
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
extends BulletBase
|
||||
class_name CementBullet
|
||||
|
||||
func succeedToHit(_dmg: float, _entity: EntityBase):
|
||||
for i in 3:
|
||||
BulletBase.generate(ComponentManager.getBullet("Kuaizi"), launcher, position + MathTool.sampleInCircle(50), deg_to_rad(90) + deg_to_rad(randf_range(-1, 1) * 10))
|
||||
await TickTool.millseconds(200)
|
||||
await TickTool.millseconds(1000)
|
||||
tryDestroy()
|
||||
func ai():
|
||||
PresetBulletAI.forward(self , rotation)
|
||||
Reference in New Issue
Block a user