added Graphics and sound Effects and more overhauls
This commit is contained in:
parent
c887a2168c
commit
b9d4288900
214 changed files with 3378 additions and 198 deletions
|
|
@ -4,11 +4,12 @@ class_name Minigun extends "res://scenes/weapon/weapon.gd"
|
|||
|
||||
func attack():
|
||||
if cooldownTimer.is_stopped():
|
||||
print(getSpread())
|
||||
shoot.play()
|
||||
spawnBullet()
|
||||
cooldownTimer.start(cooldown)
|
||||
|
||||
func spawnBullet():
|
||||
var newBullet = bullet.instantiate()
|
||||
get_tree().get_first_node_in_group("bulletPool").add_child(newBullet)
|
||||
var newBullet: Bullet = bullet.instantiate()
|
||||
newBullet.spawn(bulletPoint.global_position, get_parent().get_parent().rotation + getSpread(), damage, range, penetration)
|
||||
newBullet.fromTimeGhost = get_parent().get_parent().is_in_group("timeGhost")
|
||||
get_tree().get_first_node_in_group("bulletPool").add_child(newBullet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue