SlimeoosOdyssey/godot/cultist.tscn

55 lines
2.2 KiB
Plaintext
Raw Normal View History

2023-08-20 17:18:44 -06:00
[gd_scene load_steps=10 format=3 uid="uid://e0s4phx2jiit"]
2023-08-19 11:04:45 -06:00
2023-08-20 00:00:17 -06:00
[ext_resource type="Script" path="res://cultist.gd" id="1_k6djk"]
[ext_resource type="PackedScene" uid="uid://c3q6fva1c1baa" path="res://Models/slime.tscn" id="2_004fn"]
2023-08-20 13:31:07 -06:00
[ext_resource type="AudioStream" uid="uid://cxadu5w3jwv0b" path="res://Sounds/evilslime.ogg" id="3_novm4"]
2023-08-20 17:18:44 -06:00
[ext_resource type="Script" path="res://MeshInstance3D.gd" id="4_trs5a"]
2023-08-19 11:04:45 -06:00
[sub_resource type="SphereShape3D" id="SphereShape3D_rypky"]
2023-08-20 15:03:09 -06:00
radius = 2.5
2023-08-19 11:04:45 -06:00
[sub_resource type="SphereShape3D" id="SphereShape3D_pa038"]
2023-08-20 15:03:09 -06:00
radius = 0.055
2023-08-19 11:04:45 -06:00
[sub_resource type="SphereShape3D" id="SphereShape3D_bmc5i"]
2023-08-20 13:31:07 -06:00
radius = 0.05
2023-08-19 11:04:45 -06:00
2023-08-20 17:18:44 -06:00
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_y5n1c"]
albedo_color = Color(1, 0, 1, 1)
[sub_resource type="SphereMesh" id="SphereMesh_75ex5"]
2023-08-20 00:00:17 -06:00
[node name="Cultist" type="CharacterBody3D"]
script = ExtResource("1_k6djk")
2023-08-19 11:04:45 -06:00
[node name="TargetRadius" type="Area3D" parent="."]
2023-08-19 11:04:45 -06:00
[node name="CollisionShape3D" type="CollisionShape3D" parent="TargetRadius"]
shape = SubResource("SphereShape3D_rypky")
2023-08-20 00:00:17 -06:00
[node name="slime" parent="." instance=ExtResource("2_004fn")]
2023-08-20 15:03:09 -06:00
transform = Transform3D(0.035, 0, 0, 0, 0.035, 0, 0, 0, 0.035, 0, 0, 0)
2023-08-20 00:00:17 -06:00
[node name="CollisionDetection" type="Area3D" parent="."]
2023-08-20 15:03:09 -06:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.03, 0)
[node name="collision_ range" type="CollisionShape3D" parent="CollisionDetection"]
2023-08-20 15:03:09 -06:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.013, 0)
shape = SubResource("SphereShape3D_pa038")
[node name="cultist_collision" type="CollisionShape3D" parent="."]
2023-08-20 15:03:09 -06:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0429018, 0)
shape = SubResource("SphereShape3D_bmc5i")
2023-08-20 00:00:17 -06:00
2023-08-20 13:31:07 -06:00
[node name="evilslime" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("3_novm4")
2023-08-20 17:18:44 -06:00
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(0.05, 0, 0, 0, 0.05, 0, 0, 0, 0.05, 0, 0.181789, 0)
material_override = SubResource("StandardMaterial3D_y5n1c")
mesh = SubResource("SphereMesh_75ex5")
script = ExtResource("4_trs5a")
[connection signal="body_entered" from="TargetRadius" to="." method="_on_target_radius_body_entered"]
[connection signal="body_entered" from="CollisionDetection" to="." method="_on_collision_detection_body_entered"]