SlimeoosOdyssey/godot/cultist.tscn

55 lines
2.2 KiB
Plaintext

[gd_scene load_steps=10 format=3 uid="uid://e0s4phx2jiit"]
[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"]
[ext_resource type="AudioStream" uid="uid://cxadu5w3jwv0b" path="res://Sounds/evilslime.ogg" id="3_novm4"]
[ext_resource type="Script" path="res://MeshInstance3D.gd" id="4_trs5a"]
[sub_resource type="SphereShape3D" id="SphereShape3D_rypky"]
radius = 2.5
[sub_resource type="SphereShape3D" id="SphereShape3D_pa038"]
radius = 0.055
[sub_resource type="SphereShape3D" id="SphereShape3D_bmc5i"]
radius = 0.05
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_y5n1c"]
albedo_color = Color(1, 0, 1, 1)
[sub_resource type="SphereMesh" id="SphereMesh_75ex5"]
[node name="Cultist" type="CharacterBody3D"]
script = ExtResource("1_k6djk")
[node name="TargetRadius" type="Area3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="TargetRadius"]
shape = SubResource("SphereShape3D_rypky")
[node name="slime" parent="." instance=ExtResource("2_004fn")]
transform = Transform3D(0.035, 0, 0, 0, 0.035, 0, 0, 0, 0.035, 0, 0, 0)
[node name="CollisionDetection" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.03, 0)
[node name="collision_ range" type="CollisionShape3D" parent="CollisionDetection"]
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="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0429018, 0)
shape = SubResource("SphereShape3D_bmc5i")
[node name="evilslime" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("3_novm4")
[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"]