20 lines
662 B
GDScript
20 lines
662 B
GDScript
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("Stagger")
|
|
@export var horizontal_offset: float = 6.5 # Horizontal distance between projectiles
|
|
@export var stagger_offset: float = 5 # Time delay per projectile index
|
|
|
|
# Angle in degrees, default is 0
|
|
@export var angle: float = 0.0 # Angle at which the bullet should be fired
|
|
@export var rotate_to_velocity: bool = true
|