gun system + minigun
This commit is contained in:
parent
84415d5aca
commit
f73f093ae2
13 changed files with 84 additions and 24 deletions
|
|
@ -6,7 +6,7 @@ func _ready() -> void:
|
|||
assert(get_parent() is PoliceCar)
|
||||
parent = get_parent()
|
||||
|
||||
func hit(projectile: PlayerProjectile) -> bool:
|
||||
func hit(projectile: PlayerProjectile, _damage: float) -> bool:
|
||||
if projectile == null: return false
|
||||
|
||||
var angle := projectile.velocity.angle_to(-parent.velocity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue