way too many changes to list, oops. big rewrite.

This commit is contained in:
2025-05-27 03:38:03 +10:00
parent 16951a9beb
commit 4a21701a35
663 changed files with 7389 additions and 3283 deletions

View File

@ -0,0 +1,19 @@
class_name BombProjectile extends ExplosiveProjectile
var max_bounces: int = 1
var bounces: int = 0
func _ready() -> void:
apply_central_impulse(direction.normalized() * force)
#print(direction.length())
#print(force)
if owner_id == 0:
max_bounces = 0
func _on_body_entered(_body: Node) -> void:
bounces += 1
var collided_body: bool = get_colliding_bodies()[0].get_collision_layer_value(3)
if bounces > max_bounces or collided_body:
explode()