90 lines
3.8 KiB
Text
90 lines
3.8 KiB
Text
[gd_scene format=3 uid="uid://dusfu1hidkmsk"]
|
|
|
|
[ext_resource type="Script" uid="uid://c6xr2j0g1ep7j" path="res://enemies/police_car/police_car.gd" id="1_spw8y"]
|
|
[ext_resource type="Script" uid="uid://c14x24qxx1wc3" path="res://enemies/police_car/weak_point.gd" id="2_8ru0n"]
|
|
|
|
[sub_resource type="Curve" id="Curve_spw8y"]
|
|
_limits = [1.0, 20.0, -1.0, 1.0]
|
|
_data = [Vector2(-1, 20), 0.0, 0.0, 0, 0, Vector2(0.20895529, 4.7216473), -18.980904, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
|
point_count = 3
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_2kvnc"]
|
|
size = Vector3(1, 0.25, 0.5)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_spw8y"]
|
|
size = Vector3(1, 0.25, 0.5)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_spw8y"]
|
|
size = Vector3(0.1, 0.05, 0.2)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8364l"]
|
|
albedo_color = Color(1, 0.32, 0.32, 1)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6u34r"]
|
|
albedo_color = Color(0.26, 0.45733315, 1, 1)
|
|
|
|
[sub_resource type="CylinderMesh" id="CylinderMesh_e8ulu"]
|
|
top_radius = 0.1
|
|
bottom_radius = 0.1
|
|
height = 0.5
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_8364l"]
|
|
size = Vector3(1.7734375, 0.5839844, 1.1367188)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_s5uvd"]
|
|
size = Vector3(0.6993408, 1, 0.88671875)
|
|
|
|
[node name="PoliceCar" type="CharacterBody3D" unique_id=206023291]
|
|
collision_layer = 8
|
|
collision_mask = 15
|
|
script = ExtResource("1_spw8y")
|
|
dot_curve = SubResource("Curve_spw8y")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=423323850]
|
|
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -0.122092836, 0.34972915, -0.0012522953)
|
|
mesh = SubResource("BoxMesh_2kvnc")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=637101729]
|
|
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -0.122092836, 0.34972915, -0.0012522953)
|
|
shape = SubResource("BoxShape3D_spw8y")
|
|
|
|
[node name="MeshInstance3D4" type="MeshInstance3D" parent="." unique_id=1230197866]
|
|
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0.59585166, 0.65602696, 0.24429089)
|
|
mesh = SubResource("BoxMesh_spw8y")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_8364l")
|
|
|
|
[node name="MeshInstance3D5" type="MeshInstance3D" parent="." unique_id=100028974]
|
|
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0.60364604, 0.65602696, -0.23176795)
|
|
mesh = SubResource("BoxMesh_spw8y")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_6u34r")
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="." unique_id=425081066]
|
|
transform = Transform3D(2, 0, 0, 0, -8.742278e-08, -2, 0, 2, -8.742278e-08, -0.8505253, -0.079150766, -0.0012522853)
|
|
mesh = SubResource("CylinderMesh_e8ulu")
|
|
|
|
[node name="MeshInstance3D3" type="MeshInstance3D" parent="." unique_id=1992142361]
|
|
transform = Transform3D(2, 0, 0, 0, -8.742278e-08, -2, 0, 2, -8.742278e-08, 0.62777025, -0.079150766, -0.0012522853)
|
|
mesh = SubResource("CylinderMesh_e8ulu")
|
|
|
|
[node name="NavAgent" type="NavigationAgent3D" parent="." unique_id=774393024]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="Hurtbox" type="Area3D" parent="." unique_id=688205599]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Hurtbox" unique_id=192758567]
|
|
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -0.122092836, 0.34972915, -0.0012522953)
|
|
shape = SubResource("BoxShape3D_8364l")
|
|
debug_color = Color(0.9913104, 0, 0.27320355, 0.41960785)
|
|
|
|
[node name="WeakPoint" type="Area3D" parent="." unique_id=1032610086]
|
|
collision_layer = 8
|
|
collision_mask = 0
|
|
script = ExtResource("2_8ru0n")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="WeakPoint" unique_id=950314743]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.9923661, 0.27572453, -0.0006608963)
|
|
shape = SubResource("BoxShape3D_s5uvd")
|
|
|
|
[connection signal="body_entered" from="Hurtbox" to="." method="_on_hurtbox_body_entered"]
|