minor tweaks and fixed barrel explosion
This commit is contained in:
@@ -45,7 +45,7 @@ func _on_body_entered(body: Node) -> void:
|
||||
if body != null and !body.is_in_group("player") and linear_velocity.length() >= VELOCITY_REQUIRED_TO_HIT:
|
||||
|
||||
if body.is_in_group("switch"):
|
||||
body.hit()
|
||||
body.hit(bullet_damage)
|
||||
|
||||
if body.is_in_group("breakable"):
|
||||
var current_velocity = transform.basis * Vector3(0,0,-1 * bullet_force_mod)
|
||||
|
||||
Reference in New Issue
Block a user