do not throw stick into player
This commit is contained in:
@@ -153,6 +153,8 @@ func _try_enemy_kick() -> void:
|
||||
var k := node as Node3D
|
||||
if k == null or not is_instance_valid(k):
|
||||
continue
|
||||
if k.get("kickable_type") == "stick":
|
||||
continue
|
||||
var kfv = k.get("fly_vel")
|
||||
if kfv != null and Vector2((kfv as Vector3).x, (kfv as Vector3).z).length() > 15.0:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user