Added grouped shots as sub resources, as well as the abilit to mirror
pairs.
This commit is contained in:
parent
313e013543
commit
3303d937fd
8 changed files with 166 additions and 34 deletions
21
scripts/weapon_projectile_group.gd
Normal file
21
scripts/weapon_projectile_group.gd
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
class_name WeaponProjectileGroup
|
||||
extends Resource
|
||||
|
||||
@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
|
||||
Loading…
Add table
Add a link
Reference in a new issue