Fix capricorn projectile bug

This commit is contained in:
2023-09-08 12:46:23 -07:00
parent 9256c0a09e
commit f7008b40ff
21 changed files with 161 additions and 279 deletions

View File

@@ -1,13 +1,10 @@
[gd_scene load_steps=48 format=3 uid="uid://bt5rolsyjmx55"]
[gd_scene load_steps=47 format=3 uid="uid://bt5rolsyjmx55"]
[ext_resource type="Script" path="res://Enemies/Scripts/MeleeEnemy.cs" id="1_50och"]
[sub_resource type="BoxShape3D" id="BoxShape3D_1nq5h"]
size = Vector3(0.579358, 2.18762, 0.423598)
[sub_resource type="BoxShape3D" id="BoxShape3D_i1yvp"]
size = Vector3(0.470892, 2.18133, 0.423598)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_hp6tg"]
resource_name = "Material.003"
cull_mode = 2
@@ -1176,85 +1173,72 @@ _data = {
"Animation": SubResource("Animation_xyhqi")
}
[node name="MeleeEnemyOrb" type="Node3D" groups=["Enemy"]]
script = ExtResource("1_50och")
[node name="CharacterBody3D" type="RigidBody3D" parent="."]
[node name="Melee Enemy" type="CharacterBody3D" groups=["Enemy"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.251952, 0)
collision_layer = 0
collision_mask = 5
axis_lock_angular_x = true
script = ExtResource("1_50och")
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0840461, 0.475385, 0.143401)
shape = SubResource("BoxShape3D_1nq5h")
[node name="meleeenemy - Updated" type="Node3D" parent="CharacterBody3D/CollisionShape3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0840461, -0.475385, -0.143401)
[node name="Area3D" type="Area3D" parent="CharacterBody3D/CollisionShape3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0840461, -0.475385, -0.143401)
collision_layer = 0
collision_mask = 0
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D/CollisionShape3D/Area3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0840461, 0.475385, 0.143401)
shape = SubResource("BoxShape3D_i1yvp")
[node name="MeleeEnemy" type="Node3D" parent="CharacterBody3D/CollisionShape3D"]
[node name="MeleeEnemy" type="Node3D" parent="CollisionShape3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0840461, -0.010569, -0.143401)
[node name="Icosphere001" type="MeshInstance3D" parent="CharacterBody3D/CollisionShape3D/MeleeEnemy"]
[node name="Icosphere001" type="MeshInstance3D" parent="CollisionShape3D/MeleeEnemy"]
transform = Transform3D(0.850843, 0, 0, 0, 0.850843, 0, 0, 0, 0.850843, 0.0805536, 0.468312, 0.158035)
cast_shadow = 0
mesh = SubResource("ArrayMesh_vf33t")
skeleton = NodePath("")
[node name="Circle001" type="MeshInstance3D" parent="CharacterBody3D/CollisionShape3D/MeleeEnemy"]
[node name="Circle001" type="MeshInstance3D" parent="CollisionShape3D/MeleeEnemy"]
transform = Transform3D(1.05, 0, 0, 0, 1.05, 0, 0, 0, 1.05, 0.0457887, 0.476383, 0.128917)
cast_shadow = 0
mesh = SubResource("ArrayMesh_ngagc")
skeleton = NodePath("")
[node name="Circle002" type="MeshInstance3D" parent="CharacterBody3D/CollisionShape3D/MeleeEnemy"]
[node name="Circle002" type="MeshInstance3D" parent="CollisionShape3D/MeleeEnemy"]
transform = Transform3D(1.1, 0, 0, 0, 1.1, 0, 0, 0, 1.1, 0.0659095, 0.483551, 0.119628)
cast_shadow = 0
mesh = SubResource("ArrayMesh_nmeup")
skeleton = NodePath("")
[node name="Circle004" type="MeshInstance3D" parent="CharacterBody3D/CollisionShape3D/MeleeEnemy"]
[node name="Circle004" type="MeshInstance3D" parent="CollisionShape3D/MeleeEnemy"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0868937, 0.567455, 0.186096)
cast_shadow = 0
mesh = SubResource("ArrayMesh_nso1s")
skeleton = NodePath("")
[node name="Text003" type="MeshInstance3D" parent="CharacterBody3D/CollisionShape3D/MeleeEnemy"]
[node name="Text003" type="MeshInstance3D" parent="CollisionShape3D/MeleeEnemy"]
transform = Transform3D(0.0536953, 0, 0, 0, 0.0536953, 0, 0, 0, 0.0536953, 0.0626427, 0.123465, 0.11049)
cast_shadow = 0
mesh = SubResource("ArrayMesh_xasdc")
skeleton = NodePath("")
[node name="BezierCircle" type="Node3D" parent="CharacterBody3D/CollisionShape3D/MeleeEnemy"]
[node name="BezierCircle" type="Node3D" parent="CollisionShape3D/MeleeEnemy"]
transform = Transform3D(0.495255, 0, 0, 0, 0.495255, 0, 0, 0, 0.495255, 0.0690689, -0.0909151, 0.128142)
[node name="Text004" type="MeshInstance3D" parent="CharacterBody3D/CollisionShape3D/MeleeEnemy"]
[node name="Text004" type="MeshInstance3D" parent="CollisionShape3D/MeleeEnemy"]
transform = Transform3D(0.0480592, 0, 0, 0, 0.0480592, 0, 0, 0, 0.0480592, 0.0626427, 0.123465, 0.11049)
cast_shadow = 0
mesh = SubResource("ArrayMesh_8gdy4")
skeleton = NodePath("")
[node name="BezierCircle001" type="Node3D" parent="CharacterBody3D/CollisionShape3D/MeleeEnemy"]
[node name="BezierCircle001" type="Node3D" parent="CollisionShape3D/MeleeEnemy"]
transform = Transform3D(0.443271, 0, 0, 0, 0.443271, 0, 0, 0, 0.443271, 0.0690689, -0.0909151, 0.128142)
[node name="Text005" type="MeshInstance3D" parent="CharacterBody3D/CollisionShape3D/MeleeEnemy"]
[node name="Text005" type="MeshInstance3D" parent="CollisionShape3D/MeleeEnemy"]
transform = Transform3D(0.0438454, 0, 0, 0, 0.0438454, 0, 0, 0, 0.0438454, 0.0626427, 0.123465, 0.11049)
cast_shadow = 0
mesh = SubResource("ArrayMesh_bkeh8")
skeleton = NodePath("")
[node name="BezierCircle002" type="Node3D" parent="CharacterBody3D/CollisionShape3D/MeleeEnemy"]
[node name="BezierCircle002" type="Node3D" parent="CollisionShape3D/MeleeEnemy"]
transform = Transform3D(0.404405, 0, 0, 0, 0.404405, 0, 0, 0, 0.404405, 0.0690689, -0.0909151, 0.128142)
[node name="AnimationPlayer" type="AnimationPlayer" parent="CharacterBody3D/CollisionShape3D/MeleeEnemy"]
[node name="AnimationPlayer" type="AnimationPlayer" parent="CollisionShape3D/MeleeEnemy"]
libraries = {
"": SubResource("AnimationLibrary_ivhl3")
}