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
|
|
@ -6,13 +6,13 @@ class_name Shotgun extends "res://scenes/weapon/weapon.gd"
|
|||
|
||||
func attack():
|
||||
if cooldownTimer.is_stopped():
|
||||
shoot.play()
|
||||
spawnBullet()
|
||||
cooldownTimer.start(cooldown)
|
||||
|
||||
func spawnBullet():
|
||||
var rng = RandomNumberGenerator.new()
|
||||
|
||||
for i in range(0, bulletAmount):
|
||||
var newBullet = 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