Update weapon resources, default weapon loaded; implemented call weapon
by name.
This commit is contained in:
parent
cf172bc546
commit
d0664a87fa
8 changed files with 69 additions and 30 deletions
17
scripts/weapon_shot.gd
Normal file
17
scripts/weapon_shot.gd
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
class_name WeaponShot
|
||||
extends Resource
|
||||
|
||||
@export_category("Info")
|
||||
@export var shot_name: String
|
||||
@export var bullet_scene: PackedScene = null
|
||||
|
||||
@export_category("Shot Data")
|
||||
@export var damage: int = 1
|
||||
@export var speed: int = 135
|
||||
@export var projectiles: int = 2
|
||||
@export var spacing: float = 35
|
||||
@export var origin: int = -23
|
||||
|
||||
@export_category("Spread")
|
||||
@export var horizontal_offset: float = 6.5 # Horizontal distance between projectiles
|
||||
@export var stagger_offset: float = 0.1 # Time delay per projectile index
|
||||
Loading…
Add table
Add a link
Reference in a new issue