refactored bullet script, broke shotgun pellets which will need to be fixed

This commit is contained in:
derek
2025-03-25 16:55:22 -05:00
parent 3e3a0d2192
commit 8d0f925be6
24 changed files with 1283 additions and 122 deletions

View File

@@ -2,4 +2,8 @@ extends Area3D
func _on_body_exited(body: Node3D) -> void:
print("PLAYER OUT OF BOUNDS")
get_tree().current_scene.die()
var level_control = get_tree().current_scene
if level_control.gamemode.die_on_leaving_bounds == true:
get_tree().current_scene.die()
else:
body.global_position = body.last_ground_pos + Vector3(0,10,0)