break-utopia/project/objects/enemies/cop_bot.tscn

91 lines
4.2 KiB
Text

[gd_scene format=3 uid="uid://dvb6sye4mtl5b"]
[ext_resource type="PackedScene" uid="uid://coe4vutm4vgkp" path="res://assets/models/props/cop_bot.blend" id="1_i4ydo"]
[ext_resource type="Material" uid="uid://ct1ew3ffchshe" path="res://assets/effects/particle_materials/spark_dithered.tres" id="1_t6o0h"]
[ext_resource type="PackedScene" uid="uid://2bcdil33vx2s" path="res://objects/enemies/cop_bot_destroyed.tscn" id="3_olfcy"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_t6o0h"]
radius = 0.37841797
height = 1.6645508
[sub_resource type="BoxShape3D" id="BoxShape3D_olfcy"]
size = Vector3(0.0703125, 0.671875, 0.20605469)
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_t6o0h"]
particle_flag_align_y = true
particle_flag_rotate_y = true
emission_shape = 3
emission_box_extents = Vector3(0.01, -0.01, 0.05)
angle_min = -720.0
angle_max = 1.0728835e-05
gravity = Vector3(0, 0, 0)
scale_min = 0.14999999
scale_max = 0.14999999
color = Color(0.14999998, 0.67416656, 1, 1)
[sub_resource type="QuadMesh" id="QuadMesh_i4ydo"]
material = ExtResource("1_t6o0h")
orientation = 1
[sub_resource type="CylinderShape3D" id="CylinderShape3D_t6o0h"]
height = 1.6069336
radius = 0.46777344
[node name="CopBot" type="CopBot" unique_id=66926075 node_paths=PackedStringArray("anim")]
collision_layer = 8
collision_mask = 9
anim = NodePath("cop_bot/AnimationPlayer")
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=503308426]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.16772461, 0)
shape = SubResource("CapsuleShape3D_t6o0h")
[node name="cop_bot" parent="." unique_id=788834029 instance=ExtResource("1_i4ydo")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
[node name="BoneAttachment3D" type="BoneAttachment3D" parent="cop_bot/Armature/Skeleton3D" parent_id_path=PackedInt32Array(788834029, 642477053) index="1" unique_id=645571021]
transform = Transform3D(1, 2.2737366e-13, 4.0530495e-06, 4.005052e-06, 0.15344219, -0.9881577, -6.2190895e-07, 0.98815763, 0.1534422, 0.11442539, 0.86816293, 0.29733047)
bone_name = "taser"
bone_idx = 1
[node name="EnemyDamageBox" type="EnemyDamageBox" parent="cop_bot/Armature/Skeleton3D/BoneAttachment3D" unique_id=56020013]
transform = Transform3D(1, 2.4812152e-09, -4.0902837e-06, -4.3633406e-08, 0.99994946, -0.010060966, 4.090051e-06, 0.010060966, 0.9999494, -0.0014341921, 0.40225992, 0.007517293)
collision_layer = 2
collision_mask = 8
monitoring = false
monitorable = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="cop_bot/Armature/Skeleton3D/BoneAttachment3D/EnemyDamageBox" unique_id=670387685]
transform = Transform3D(1, 1.0267343e-12, -8.881784e-16, 7.1054274e-15, 1, 0, 1.3322676e-15, 0, 1, 0, 0, 0)
shape = SubResource("BoxShape3D_olfcy")
debug_color = Color(0.99999994, 0.010690658, 0.058527865, 0.41960785)
[node name="GPUParticles3D" type="GPUParticles3D" parent="cop_bot/Armature/Skeleton3D/BoneAttachment3D" unique_id=1732638006]
transform = Transform3D(-0.015385676, -0.99988097, -0.0012136628, 0.0076193064, -0.0013310233, 0.99996996, -0.99985254, 0.015375984, 0.007638857, 0.0006350279, 0.59466016, 0.0005196184)
amount = 3
lifetime = 0.02
local_coords = true
process_material = SubResource("ParticleProcessMaterial_t6o0h")
draw_pass_1 = SubResource("QuadMesh_i4ydo")
[node name="GPUParticles3D2" type="GPUParticles3D" parent="cop_bot/Armature/Skeleton3D/BoneAttachment3D" unique_id=1378819993]
transform = Transform3D(-0.96612483, -0.25761592, 0.015385703, 0.25752568, -0.9662414, -0.007619247, 0.016829167, -0.00339894, 0.9998524, 0.00076676905, 0.5951543, 0.0005213469)
amount = 3
lifetime = 0.02
local_coords = true
process_material = SubResource("ParticleProcessMaterial_t6o0h")
draw_pass_1 = SubResource("QuadMesh_i4ydo")
[node name="DestructableObject" type="DestructableObject" parent="." unique_id=233972661]
collision_layer = 2
collision_mask = 2
sync_to_physics = false
destroyed_object = ExtResource("3_olfcy")
count_in_total = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="DestructableObject" unique_id=1189907532]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.06762695, 0)
shape = SubResource("CylinderShape3D_t6o0h")
debug_color = Color(0, 0.6324614, 0.45467412, 0.41960785)
[editable path="cop_bot"]