added Graphics and sound Effects and more overhauls

This commit is contained in:
Exobyt 2025-08-03 20:56:32 +02:00
parent c887a2168c
commit b9d4288900
214 changed files with 3378 additions and 198 deletions

View file

@ -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)