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
|
|
@ -1,6 +1,7 @@
|
|||
[gd_resource type="Resource" script_class="WeaponShot" format=3 uid="uid://cck3gmnhu5agc"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://clpyd8qfwthk2" path="res://scenes/player_weapons/weapon_spreadshot.tscn" id="1_07hyh"]
|
||||
[ext_resource type="Script" uid="uid://d0ios82vubijg" path="res://scripts/weapon_projectile_group.gd" id="2_bhv8k"]
|
||||
[ext_resource type="Script" uid="uid://7n1itonn35fm" path="res://scripts/weapon_shot.gd" id="2_syw6j"]
|
||||
|
||||
[resource]
|
||||
|
|
@ -10,8 +11,6 @@ bullet_scene = ExtResource("1_07hyh")
|
|||
damage = 3
|
||||
speed = 700
|
||||
projectiles = 3
|
||||
spacing = 45.0
|
||||
origin = -15
|
||||
horizontal_offset = 12.5
|
||||
stagger_offset = 0.35
|
||||
stagger_animation = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue