mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
12 lines
408 B
GDScript
12 lines
408 B
GDScript
|
|
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)
|