23 lines
1,002 B
GDScript
23 lines
1,002 B
GDScript
class_name WeaponProjectileGroup
|
|
extends Resource
|
|
|
|
@export_category("Identification")
|
|
@export var pattern_name: String = ""
|
|
@export_category("Group Settings")
|
|
@export var bullet_count: int = 3
|
|
# Horizontal distance between bullets in this group
|
|
@export var horizontal_spacing: float = 6.5
|
|
# Total spread angle for bullets in this group (in degrees)
|
|
@export var spread_angle: float = 0.0
|
|
# Angle of the entire group from the shot origin (positive = right/up, negative = left)
|
|
@export var angle_offset: float = 0.0
|
|
# Horizontal offset from the center line (positive = right, negative = left)
|
|
@export var horizontal_offset: float = 0.0
|
|
@export_category("Timing")
|
|
# Time delay for this group's first bullet (relative to shot start)
|
|
@export var group_delay: float = 0.0
|
|
# Stagger delay between bullets within this group
|
|
@export var stagger_offset: float = 0.25
|
|
@export_category("Mirroring")
|
|
# If true, duplicate this group's bullets mirrored across the ship's vertical axis
|
|
@export var mirror: bool = false
|