Separated shot positioning math to helper utility and refactored shoot
component - introduced shot origin issue.
This commit is contained in:
parent
6c5a0a0bae
commit
99a5d9838d
17 changed files with 147 additions and 98 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
[ext_resource type="PackedScene" uid="uid://ddpclu2vdy2ve" path="res://scenes/player_weapons/weapon_stock.tscn" id="1_pn64g"]
|
||||
[ext_resource type="Script" uid="uid://7n1itonn35fm" path="res://scripts/weapon_shot.gd" id="2_4b7mw"]
|
||||
[ext_resource type="Script" uid="uid://d0ios82vubijg" path="res://scripts/weapon_projectile_group.gd" id="2_ak5x4"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_4b7mw")
|
||||
|
|
@ -10,8 +11,6 @@ bullet_scene = ExtResource("1_pn64g")
|
|||
damage = 5
|
||||
speed = 720
|
||||
projectiles = 5
|
||||
spacing = 100.0
|
||||
origin = -15
|
||||
horizontal_offset = 8.25
|
||||
spread_angle = 25.0
|
||||
stagger_offset = 0.5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue