feat: added ragdoll, health, death, and adjusted mortar

This commit is contained in:
DottsGit
2026-06-06 00:01:27 -04:00
parent 8984739334
commit acd495893d
7 changed files with 368 additions and 43 deletions
+2 -1
View File
@@ -194,7 +194,8 @@ func _shoot_hitscan() -> void:
damage = lerpf(base_dmg, min_dmg, falloff_factor)
if result.collider.has_method("take_damage"):
result.collider.take_damage(damage, result.position, player)
var hit_impulse = pellet_dir * 8.0 # Apply strong physical force for ragdoll
result.collider.take_damage(damage, result.position, player, hit_impulse)
else:
ImpactSpawner.spawn(get_tree(), "bullet", result.position, result.normal, 0.08)