mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 23:41:54 +08:00
14 lines
331 B
GDScript
14 lines
331 B
GDScript
|
|
extends BulletBase
|
||
|
|
class_name InternalDamageBullet
|
||
|
|
|
||
|
|
var hoster: EntityBase
|
||
|
|
|
||
|
|
func spawn():
|
||
|
|
if is_instance_valid(hoster):
|
||
|
|
hoster.died.connect(tryDestroy)
|
||
|
|
hoster.hit.connect(
|
||
|
|
func(_damage, bullet: BulletBase, _crit):
|
||
|
|
if bullet.motionType == BulletBase.MotionType.EXPLOSION:
|
||
|
|
hitbox.set_deferred("disabled", false)
|
||
|
|
)
|