1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-30 07:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/AcidP.gd
T

10 lines
312 B
GDScript
Raw Normal View History

extends AcidBulletBase
class_name AcidP
func succeedToHit(_dmg: float, entity: EntityBase):
entity.fields[FieldStore.Entity.OFFSET_SHOOT] = clamp(entity.fields[FieldStore.Entity.OFFSET_SHOOT] + arg1, 0, INF)
func ai():
super.ai()
if is_instance_valid(arg2):
PresetBulletAI.trace(self, arg2.position, 0.01)