knockback; base enemy scene; police van
This commit is contained in:
parent
370eb54163
commit
d0bfe8d1be
13 changed files with 218 additions and 111 deletions
|
|
@ -1,90 +1,74 @@
|
|||
[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="PackedScene" uid="uid://oyqyvj5xo5mf" path="res://enemies/base_enemy.tscn" id="1_s5uvd"]
|
||||
[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="BoxShape3D" id="BoxShape3D_8ru0n"]
|
||||
size = Vector3(1.7734375, 0.5839844, 1.1367188)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_2kvnc"]
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_s5uvd"]
|
||||
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"]
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_8ru0n"]
|
||||
size = Vector3(0.1, 0.05, 0.2)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8364l"]
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8t57f"]
|
||||
albedo_color = Color(1, 0.32, 0.32, 1)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6u34r"]
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_s7vp5"]
|
||||
albedo_color = Color(0.26, 0.45733315, 1, 1)
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_e8ulu"]
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_tdg6c"]
|
||||
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(1, 0.25, 0.5)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_8t57f"]
|
||||
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="PoliceCar" unique_id=206023291 instance=ExtResource("1_s5uvd")]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=423323850]
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Hurtbox" parent_id_path=PackedInt32Array(688205599) index="0" unique_id=1939097710]
|
||||
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")
|
||||
shape = SubResource("BoxShape3D_8ru0n")
|
||||
debug_color = Color(0.9913104, 0, 0.27320355, 0.41960785)
|
||||
|
||||
[node name="WeakPoint" type="Area3D" parent="." unique_id=1032610086]
|
||||
[node name="Meshes" type="Node3D" parent="." index="2" unique_id=1144793877]
|
||||
|
||||
[node name="MeshInstance3D6" type="MeshInstance3D" parent="Meshes" index="0" unique_id=1731567677]
|
||||
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -0.122092836, 0.34972915, -0.0012522953)
|
||||
mesh = SubResource("BoxMesh_s5uvd")
|
||||
|
||||
[node name="MeshInstance3D7" type="MeshInstance3D" parent="Meshes" index="1" unique_id=761614106]
|
||||
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0.59585166, 0.65602696, 0.24429089)
|
||||
mesh = SubResource("BoxMesh_8ru0n")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_8t57f")
|
||||
|
||||
[node name="MeshInstance3D8" type="MeshInstance3D" parent="Meshes" index="2" unique_id=765553113]
|
||||
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0.60364604, 0.65602696, -0.23176795)
|
||||
mesh = SubResource("BoxMesh_8ru0n")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_s7vp5")
|
||||
|
||||
[node name="MeshInstance3D9" type="MeshInstance3D" parent="Meshes" index="3" unique_id=1082889749]
|
||||
transform = Transform3D(2, 0, 0, 0, -8.742278e-08, -2, 0, 2, -8.742278e-08, -0.8505253, -0.079150766, -0.0012522853)
|
||||
mesh = SubResource("CylinderMesh_tdg6c")
|
||||
|
||||
[node name="MeshInstance3D10" type="MeshInstance3D" parent="Meshes" index="4" unique_id=609558882]
|
||||
transform = Transform3D(2, 0, 0, 0, -8.742278e-08, -2, 0, 2, -8.742278e-08, 0.62777025, -0.079150766, -0.0012522853)
|
||||
mesh = SubResource("CylinderMesh_tdg6c")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="." index="3" unique_id=1488758257]
|
||||
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -0.122092836, 0.34972915, -0.0012522953)
|
||||
shape = SubResource("BoxShape3D_s5uvd")
|
||||
|
||||
[node name="WeakPoint" type="Area3D" parent="." index="4" unique_id=403044177]
|
||||
collision_layer = 8
|
||||
collision_mask = 0
|
||||
script = ExtResource("2_8ru0n")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="WeakPoint" unique_id=950314743]
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="WeakPoint" index="0" unique_id=1979015401]
|
||||
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"]
|
||||
shape = SubResource("BoxShape3D_8t57f")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue