|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
|
[gd_scene load_steps=22 format=3 uid="uid://dxt0e2ugmttqq"]
|
|
|
|
|
[gd_scene format=3 uid="uid://dxt0e2ugmttqq"]
|
|
|
|
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://bn7sc6id7n166" path="res://scenes/enemies/Enemy.cs" id="1_r6506"]
|
|
|
|
|
[ext_resource type="Resource" uid="uid://otfc2snh8umc" path="res://scenes/enemies/grounded_enemy/grounded_enemy_damage.tres" id="2_bn56u"]
|
|
|
|
|
@@ -48,7 +48,7 @@ albedo_color = Color(0.06469653, 0.06469653, 0.06469653, 1)
|
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_4yfjf"]
|
|
|
|
|
size = Vector3(1, 2, 1.5)
|
|
|
|
|
|
|
|
|
|
[node name="GroundedEnemy" type="CharacterBody3D"]
|
|
|
|
|
[node name="GroundedEnemy" type="CharacterBody3D" unique_id=1747444936]
|
|
|
|
|
collision_layer = 16
|
|
|
|
|
collision_mask = 273
|
|
|
|
|
script = ExtResource("1_r6506")
|
|
|
|
|
@@ -59,40 +59,40 @@ RDamage = ExtResource("2_bn56u")
|
|
|
|
|
RKnockback = ExtResource("11_8k3xb")
|
|
|
|
|
RMovement = ExtResource("4_na24f")
|
|
|
|
|
|
|
|
|
|
[node name="CHealth" type="Node" parent="."]
|
|
|
|
|
[node name="CHealth" type="Node" parent="." unique_id=188153645]
|
|
|
|
|
script = ExtResource("2_gsmti")
|
|
|
|
|
RHealth = ExtResource("2_w4lm8")
|
|
|
|
|
metadata/_custom_type_script = "uid://bjwrpv3jpsc1e"
|
|
|
|
|
|
|
|
|
|
[node name="CHealthBar" parent="." instance=ExtResource("7_18xwy")]
|
|
|
|
|
[node name="CHealthBar" parent="." unique_id=1278247727 instance=ExtResource("7_18xwy")]
|
|
|
|
|
transform = Transform3D(0.4, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.2, 0)
|
|
|
|
|
texture = SubResource("ViewportTexture_18xwy")
|
|
|
|
|
|
|
|
|
|
[node name="CDamageable" type="Node" parent="."]
|
|
|
|
|
[node name="CDamageable" type="Node" parent="." unique_id=1601518000]
|
|
|
|
|
script = ExtResource("7_1tw73")
|
|
|
|
|
DamageModifiers = Array[Object]([SubResource("Resource_qj0ob"), SubResource("Resource_18xwy")])
|
|
|
|
|
metadata/_custom_type_script = "uid://b0u23nkpaimyc"
|
|
|
|
|
|
|
|
|
|
[node name="CMovement" parent="." node_paths=PackedStringArray("WallInFrontRayCast") instance=ExtResource("7_qyswd")]
|
|
|
|
|
[node name="CMovement" parent="." unique_id=1080640834 node_paths=PackedStringArray("WallInFrontRayCast") instance=ExtResource("7_qyswd")]
|
|
|
|
|
RMovement = SubResource("Resource_6d4gl")
|
|
|
|
|
WallInFrontRayCast = NodePath("../WallInFrontRayCast")
|
|
|
|
|
|
|
|
|
|
[node name="CKnockback" parent="." instance=ExtResource("10_jqqi6")]
|
|
|
|
|
[node name="CKnockback" parent="." unique_id=1769689477 instance=ExtResource("10_jqqi6")]
|
|
|
|
|
RKnockback = ExtResource("11_8k3xb")
|
|
|
|
|
|
|
|
|
|
[node name="CTarget" type="Marker3D" parent="."]
|
|
|
|
|
[node name="CTarget" type="Marker3D" parent="." unique_id=383414478]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=237956006]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
|
|
|
shape = SubResource("CapsuleShape3D_62kkh")
|
|
|
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=1261225229]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
|
|
|
layers = 33
|
|
|
|
|
mesh = SubResource("CapsuleMesh_3uydm")
|
|
|
|
|
|
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
|
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="." unique_id=934245732]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.2, 1.5, -0.5)
|
|
|
|
|
layers = 33
|
|
|
|
|
cast_shadow = 0
|
|
|
|
|
@@ -100,7 +100,7 @@ ignore_occlusion_culling = true
|
|
|
|
|
mesh = SubResource("SphereMesh_4yfjf")
|
|
|
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_4yfjf")
|
|
|
|
|
|
|
|
|
|
[node name="MeshInstance3D3" type="MeshInstance3D" parent="."]
|
|
|
|
|
[node name="MeshInstance3D3" type="MeshInstance3D" parent="." unique_id=1877433806]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.2, 1.5, -0.5)
|
|
|
|
|
layers = 33
|
|
|
|
|
cast_shadow = 0
|
|
|
|
|
@@ -108,15 +108,15 @@ ignore_occlusion_culling = true
|
|
|
|
|
mesh = SubResource("SphereMesh_4yfjf")
|
|
|
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_4yfjf")
|
|
|
|
|
|
|
|
|
|
[node name="WallInFrontRayCast" type="RayCast3D" parent="."]
|
|
|
|
|
[node name="WallInFrontRayCast" type="RayCast3D" parent="." unique_id=834403687]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0)
|
|
|
|
|
target_position = Vector3(0, 0, -1.5)
|
|
|
|
|
collision_mask = 272
|
|
|
|
|
|
|
|
|
|
[node name="DamageBox" type="Area3D" parent="."]
|
|
|
|
|
[node name="DamageBox" type="Area3D" parent="." unique_id=399872344]
|
|
|
|
|
collision_layer = 0
|
|
|
|
|
monitorable = false
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="DamageBox"]
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="DamageBox" unique_id=978720734]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -0.25)
|
|
|
|
|
shape = SubResource("BoxShape3D_4yfjf")
|
|
|
|
|
|