Implemented dynamic projectile spread.
This commit is contained in:
parent
029175ccde
commit
a9af69e7bb
5 changed files with 146 additions and 72 deletions
|
|
@ -8,9 +8,10 @@ script = ExtResource("2_by0nb")
|
|||
shot_name = "Stock Shot"
|
||||
bullet_scene = ExtResource("1_by0nb")
|
||||
speed = 500
|
||||
projectiles = 3
|
||||
spacing = 25.0
|
||||
origin = -12
|
||||
horizontal_offset = 8.0
|
||||
stagger_offset = 0.35
|
||||
projectiles = 5
|
||||
spacing = 20.0
|
||||
origin = -25
|
||||
horizontal_offset = 6.0
|
||||
stagger_offset = 5.5
|
||||
angle = 2.0
|
||||
metadata/_custom_type_script = "uid://7n1itonn35fm"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
class_name WeaponShot
|
||||
extends Resource
|
||||
class_name WeaponShot extends Resource
|
||||
|
||||
@export_category("Info")
|
||||
@export var shot_name: String
|
||||
|
|
@ -13,7 +12,8 @@ extends Resource
|
|||
@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
|
||||
@export var firing_angle: float = 0.0 # Angle in degrees (0 = straight up, positive = angled right)
|
||||
@export var num_groups: int = 1 # Number of symmetrical groups to fire (1 = single direction, 2 = left/right, 3 = left/center/right)
|
||||
@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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue