1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 23:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/Cement.gd
T

12 lines
408 B
GDScript
Raw Normal View History

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)