mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
a7e05cff65
将子弹AI预设类从PresetsAI重命名为PresetAIs 为BulletBase添加autoDestroyOnHitMap选项控制地图碰撞销毁 修改多个子弹脚本使用新的PresetAIs类名 为ChickSprint子弹添加地图碰撞伤害逻辑
15 lines
276 B
GDScript
15 lines
276 B
GDScript
extends BulletBase
|
|
class_name ChickSprint
|
|
|
|
func register():
|
|
speed = 0
|
|
damage = 20
|
|
penerate = 1
|
|
func ai():
|
|
PresetAIs.lockLauncher(self, launcher, true)
|
|
if !launcher.sprinting:
|
|
tryDestroy()
|
|
func destroy(beacuseMap: bool):
|
|
if beacuseMap:
|
|
launcher.takeDamage(self, 0.5)
|