Elevation shot

This commit is contained in:
2023-09-08 14:09:18 -07:00
parent f7008b40ff
commit 29140712f6
17 changed files with 57 additions and 45 deletions

View File

@@ -68,6 +68,7 @@ public partial class Character : CharacterBody3D
private async void Fire()
{
GD.Print("Firing projectile at " + GlobalPosition);
var projectile = _fireProjectile.Instantiate<Node3D>();
projectile.Position = Position;
GetParent().AddChild(projectile);

View File

@@ -30,6 +30,7 @@ public partial class Projectile : Node3D
public override void _PhysicsProcess(double delta)
{
GD.Print("Projectile is at " + GlobalPosition);
var pathFollow = GetNode<PathFollow3D>("PathFollow3D");
pathFollow.Progress += Speed * (float)delta;
if (pathFollow.ProgressRatio > 0.98f)

View File

@@ -216,7 +216,7 @@ size = Vector3(0.856928, 1.65704, 0.82877)
[node name="Capricorn" type="CharacterBody3D" groups=["Player"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.408962, 0)
collision_layer = 2
collision_layer = 18
motion_mode = 1
script = ExtResource("1_aqn5t")
_fireProjectile = ExtResource("2_e6qos")

View File

@@ -20,7 +20,7 @@ radius = 0.3
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.73894, 0)
[node name="Center Shot" type="Path3D" parent="." node_paths=PackedStringArray("_hitBox")]
transform = Transform3D(0.999968, 0, -0.00802843, 0, 1, 0, 0.00802843, 0, 0.999968, -0.0325268, 0, -0.821681)
transform = Transform3D(0.999968, 0, -0.00802843, 0, 1, 0, 0.00802843, 0, 0.999968, -0.0325268, 0.758171, -0.821681)
top_level = true
curve = SubResource("Curve3D_h8ghr")
script = ExtResource("1_ivbjp")
@@ -53,7 +53,7 @@ axis = 1
texture = ExtResource("2_a612r")
[node name="Left Shot" type="Path3D" parent="." node_paths=PackedStringArray("_hitBox")]
transform = Transform3D(0.970524, 0, 0.241007, 0, 1, 0, -0.241007, 0, 0.970524, -0.444877, 0, -0.564578)
transform = Transform3D(0.970524, 0, 0.241007, 0, 1, 0, -0.241007, 0, 0.970524, -0.444877, 0.758171, -0.564578)
top_level = true
curve = SubResource("Curve3D_h8ghr")
script = ExtResource("1_ivbjp")
@@ -64,7 +64,7 @@ _onHitSfx = ExtResource("4_2g102")
_hitBox = NodePath("PathFollow3D/Hitbox")
[node name="PathFollow3D" type="PathFollow3D" parent="Left Shot"]
transform = Transform3D(0.999998, 0, -0.0016, 0, 1, 0, 0.0016, 0, 0.999998, 0, 0, 0)
transform = Transform3D(0.999998, 0, -0.00159998, 0, 1, 0, 0.00159998, 0, 0.999998, 0, 0, 0)
loop = false
tilt_enabled = false
@@ -86,7 +86,7 @@ axis = 1
texture = ExtResource("2_a612r")
[node name="Right Shot" type="Path3D" parent="." node_paths=PackedStringArray("_hitBox")]
transform = Transform3D(0.95246, 0, -0.304665, 0, 1, 0, 0.304665, 0, 0.95246, 0.441688, 0, -0.681987)
transform = Transform3D(0.95246, 0, -0.304665, 0, 1, 0, 0.304665, 0, 0.95246, 0.441688, 0.758171, -0.681987)
top_level = true
curve = SubResource("Curve3D_h8ghr")
script = ExtResource("1_ivbjp")
@@ -97,7 +97,7 @@ _onHitSfx = ExtResource("4_2g102")
_hitBox = NodePath("PathFollow3D/Hitbox")
[node name="PathFollow3D" type="PathFollow3D" parent="Right Shot"]
transform = Transform3D(0.999998, 0, -0.0016, 0, 1, 0, 0.0016, 0, 0.999998, 0, 0, 0)
transform = Transform3D(0.999998, 0, -0.00159997, 0, 1, 0, 0.00159997, 0, 0.999998, 0, 0, 0)
loop = false
tilt_enabled = false

View File

@@ -19,7 +19,7 @@ radius = 0.3
[node name="Single" type="Node3D"]
[node name="Center Shot" type="Path3D" parent="." node_paths=PackedStringArray("_hitBox")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -0.620083)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.10168, -0.620083)
top_level = true
curve = SubResource("Curve3D_do6j1")
script = ExtResource("1_62kpd")
@@ -35,6 +35,7 @@ loop = false
tilt_enabled = false
[node name="Hitbox" type="RigidBody3D" parent="Center Shot/PathFollow3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.92646, 0)
collision_layer = 12
gravity_scale = 0.0
continuous_cd = true
@@ -43,11 +44,11 @@ contact_monitor = true
can_sleep = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="Center Shot/PathFollow3D/Hitbox"]
transform = Transform3D(0.5, 0, -7.10543e-15, 0, 0.5, 0, 7.10543e-15, 0, 0.5, 0, 0, 0)
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -1.93013, 0)
shape = SubResource("CylinderShape3D_njobr")
[node name="Sprite3D" type="Sprite3D" parent="Center Shot/PathFollow3D/Hitbox/CollisionShape3D"]
transform = Transform3D(1, 0, -3.55271e-14, 0, 1, 0, 3.55271e-14, 0, 1, -0.299847, 0, 0.288742)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.299847, 0, 0.288742)
centered = false
axis = 1
texture = ExtResource("2_d8lwd")

View File

@@ -10,7 +10,7 @@ size = Vector3(1.52195, 15.0934, 1)
[node name="Pisces" type="CharacterBody3D" groups=["Player"]]
transform = Transform3D(0.33, 0, 0, 0, 0.33, 0, 0, 0, 0.33, 0, 0.332056, 0)
collision_layer = 2
collision_layer = 18
motion_mode = 1
script = ExtResource("1_gp8nm")
_fireProjectile = ExtResource("2_rsvhh")

View File

@@ -7,18 +7,19 @@
[sub_resource type="Curve3D" id="Curve3D_7ok4f"]
_data = {
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0.008, 1, -10),
"tilts": PackedFloat32Array(0, 0)
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, -0.0755615, 2.8497, -5.04305, 0, 0, 0, 0, 0, 0, 0, 1, -10),
"tilts": PackedFloat32Array(0, 0, 0)
}
point_count = 2
point_count = 3
[sub_resource type="CylinderShape3D" id="CylinderShape3D_bnunv"]
height = 9.57027
height = 3.3177
radius = 0.57027
[node name="MegamiBeam" type="Node3D"]
[node name="Path3D" type="Path3D" parent="." node_paths=PackedStringArray("_hitBox")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0430247, 0.484383)
top_level = true
curve = SubResource("Curve3D_7ok4f")
script = ExtResource("1_6e1or")
@@ -30,13 +31,14 @@ _hitBox = NodePath("PathFollow3D/Beam")
HasRotation = true
[node name="PathFollow3D" type="PathFollow3D" parent="Path3D"]
transform = Transform3D(0.999999, 0, -0.000799999, 0, 1, 0, 0.000799999, 0, 0.999999, 0, 1, 0)
transform = Transform3D(0.999993, 0, 0, 0, 0.970138, -0.242535, 0, 0.242534, 0.970141, 0, 1, -1)
loop = false
tilt_enabled = false
[node name="Beam" type="RigidBody3D" parent="Path3D/PathFollow3D"]
transform = Transform3D(-1, 0, -8.74229e-08, 0, 1, 0, 8.74229e-08, 0, -1, 0, 0, 0)
transform = Transform3D(1, 0, 0, 0, -1, -1.50996e-07, 0, 1.50996e-07, -1, 0, 0, 0)
collision_layer = 12
collision_mask = 0
gravity_scale = 0.0
continuous_cd = true
max_contacts_reported = 1000
@@ -44,11 +46,11 @@ contact_monitor = true
can_sleep = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="Path3D/PathFollow3D/Beam"]
transform = Transform3D(0.5, 0, 5.82077e-11, 0, 0.5, 0, -5.82077e-11, 0, 0.5, 0.000155393, 0, 0.194262)
transform = Transform3D(0.5, 0, 8.73115e-11, 0, 0.5, 0, -8.73115e-11, 0, 0.5, 0.000155393, 0, 0.194262)
shape = SubResource("CylinderShape3D_bnunv")
[node name="Sprite3D2" type="Sprite3D" parent="Path3D/PathFollow3D/Beam"]
transform = Transform3D(-1, 0, 0.000663249, 0, 1, 0, -0.000663249, 0, -1, -0.00355998, 0, 0.140453)
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -0.00355998, -0.119854, 0.205225)
axis = 1
texture = ExtResource("1_57flt")

View File

@@ -603,7 +603,7 @@ radius = 0.25
[node name="Sagittarius" type="CharacterBody3D" groups=["Player"]]
transform = Transform3D(0.9, 0, 0, 0, 0.9, 0, 0, 0, 0.9, 0, 0.559088, 0)
collision_layer = 2
collision_layer = 18
motion_mode = 1
wall_min_slide_angle = 3.14159
script = ExtResource("1_s1hsr")

View File

@@ -5,9 +5,9 @@
[ext_resource type="AudioStream" uid="uid://ce40y3hln3twm" path="res://Audio/SFX/grass cutter.wav" id="2_u4aoe"]
[ext_resource type="AudioStream" uid="uid://cat08h84wm5gm" path="res://Audio/SFX/ominous.wav" id="3_32sc2"]
[sub_resource type="Curve3D" id="Curve3D_5hmi4"]
[sub_resource type="Curve3D" id="Curve3D_i1cv2"]
_data = {
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2.502, 1, -3.145, 0, 0, 0, 0, 0, 0, 2.033, 1, -6, 0, 0, 0, 0, 0, 0, -5, 1, -8),
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0.889019, 0.987915, -2.75022, 0, 0, 0, 0, 0, 0, 0.595381, 0.990112, -4.18814, 0, 0, 0, 0, 0, 0, -1.2854, 0.993652, -4.79623),
"tilts": PackedFloat32Array(0, 0, 0, 0)
}
point_count = 4
@@ -19,7 +19,7 @@ height = 8.481
[node name="Path3D" type="Path3D" parent="." node_paths=PackedStringArray("_sprite", "_hitBox")]
top_level = true
curve = SubResource("Curve3D_5hmi4")
curve = SubResource("Curve3D_i1cv2")
script = ExtResource("1_inha4")
_sprite = NodePath("PathFollow3D/RigidBody3D/CollisionShape3D/Sprite3D")
Cooldown = 0.7
@@ -29,7 +29,7 @@ _onHitSfx = ExtResource("3_32sc2")
_hitBox = NodePath("PathFollow3D/RigidBody3D")
[node name="PathFollow3D" type="PathFollow3D" parent="Path3D"]
transform = Transform3D(0.782564, 0, -0.622568, 0, 1, 0, 0.622568, 0, 0.782564, 0, 1, 0)
transform = Transform3D(0.95152, 0.00128604, -0.30758, 0, 0.999991, 0.00418112, 0.307583, -0.00397843, 0.951511, 0, 1, 0)
loop = false
tilt_enabled = false

View File

@@ -5,9 +5,9 @@
[ext_resource type="AudioStream" uid="uid://ce40y3hln3twm" path="res://Audio/SFX/grass cutter.wav" id="2_qmvk7"]
[ext_resource type="AudioStream" uid="uid://cat08h84wm5gm" path="res://Audio/SFX/ominous.wav" id="3_v1t2f"]
[sub_resource type="Curve3D" id="Curve3D_5hmi4"]
[sub_resource type="Curve3D" id="Curve3D_ocip8"]
_data = {
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, -2.502, 1, -3.145, 0, 0, 0, 0, 0, 0, -2.033, 1, -6, 0, 0, 0, 0, 0, 0, 5, 1, -8),
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, -0.889, 0.988, -2.75, 0, 0, 0, 0, 0, 0, -0.595, 0.99, -4.188, 0, 0, 0, 0, 0, 0, 1.285, 0.994, -4.796),
"tilts": PackedFloat32Array(0, 0, 0, 0)
}
point_count = 4
@@ -19,7 +19,7 @@ height = 8.481
[node name="CutterShot" type="Path3D" parent="." node_paths=PackedStringArray("_sprite", "_hitBox")]
top_level = true
curve = SubResource("Curve3D_5hmi4")
curve = SubResource("Curve3D_ocip8")
script = ExtResource("1_7xtlh")
_sprite = NodePath("PathFollow3D/RigidBody3D/CollisionShape3D/Sprite3D")
Cooldown = 0.7
@@ -29,7 +29,7 @@ _onHitSfx = ExtResource("3_v1t2f")
_hitBox = NodePath("PathFollow3D/RigidBody3D")
[node name="PathFollow3D" type="PathFollow3D" parent="CutterShot"]
transform = Transform3D(0.782564, 0, 0.622568, 0, 1, 0, -0.622568, 0, 0.782564, 0, 1, 0)
transform = Transform3D(0.951515, -0.00127717, 0.307596, 1.16415e-10, 0.999991, 0.00415204, -0.307599, -0.00395073, 0.951506, 0, 1, 0)
loop = false
tilt_enabled = false

View File

@@ -10,7 +10,7 @@ size = Vector3(0.8, 3, 0.8)
[node name="Scorpio" type="CharacterBody3D" groups=["Player"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.55696, 0)
collision_layer = 2
collision_layer = 18
motion_mode = 1
slide_on_ceiling = false
script = ExtResource("1_gw30u")