86 lines
2.9 KiB
Plaintext
86 lines
2.9 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://bcjijcf8br8t4"]
|
|
|
|
[ext_resource type="Script" path="res://Assets/scripts/player.gd" id="1_b2ij4"]
|
|
[ext_resource type="Script" path="res://Assets/scripts/Head.gd" id="2_is0vo"]
|
|
[ext_resource type="Script" path="res://Assets/scripts/vapelight.gd" id="2_ndvgb"]
|
|
[ext_resource type="Script" path="res://Assets/scripts/InteractRay.gd" id="4_x7epo"]
|
|
[ext_resource type="Texture2D" uid="uid://c786idyo8hs4l" path="res://Assets/textures/Crosshair.png" id="5_4upch"]
|
|
[ext_resource type="Theme" uid="uid://dx4a66pg3q8cy" path="res://Assets/Resources/UI_Theme.tres" id="5_qcry7"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_lm3xc"]
|
|
|
|
[node name="Player" type="CharacterBody3D" groups=["Player"]]
|
|
script = ExtResource("1_b2ij4")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
shape = SubResource("CapsuleShape3D_lm3xc")
|
|
|
|
[node name="Head" type="Node3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
|
|
script = ExtResource("2_is0vo")
|
|
|
|
[node name="Camera" type="Camera3D" parent="Head"]
|
|
current = true
|
|
|
|
[node name="VapeLight" type="SpotLight3D" parent="Head"]
|
|
transform = Transform3D(1, 0, 0, 0, 0.934826, 0.355107, 0, -0.355107, 0.934826, 0, -0.19053, -0.105637)
|
|
light_color = Color(0.247059, 0.407843, 0.603922, 1)
|
|
shadow_enabled = true
|
|
spot_range = 5.368
|
|
spot_attenuation = 0.847127
|
|
spot_angle = 62.91
|
|
spot_angle_attenuation = 1.38495
|
|
script = ExtResource("2_ndvgb")
|
|
|
|
[node name="RayCast3D" type="RayCast3D" parent="Head"]
|
|
target_position = Vector3(0, 0, -4)
|
|
script = ExtResource("4_x7epo")
|
|
|
|
[node name="Prompt" type="Label" parent="Head/RayCast3D"]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -39.0
|
|
offset_top = 14.0
|
|
offset_right = 40.0
|
|
offset_bottom = 30.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme = ExtResource("5_qcry7")
|
|
text = "Press E"
|
|
|
|
[node name="Crosshair" type="TextureRect" parent="Head"]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -10.0
|
|
offset_top = -10.0
|
|
offset_right = 10.0
|
|
offset_bottom = 10.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
texture = ExtResource("5_4upch")
|
|
stretch_mode = 2
|
|
|
|
[node name="Severe Coughing Timer" type="Timer" parent="."]
|
|
wait_time = 10.0
|
|
|
|
[node name="Coughing Timer" type="Timer" parent="."]
|
|
wait_time = 3.0
|
|
|
|
[node name="Coughing Recovery" type="Timer" parent="."]
|
|
wait_time = 5.0
|
|
|
|
[node name="Severe Coughing Recovery" type="Timer" parent="."]
|
|
wait_time = 15.0
|
|
|
|
[connection signal="timeout" from="Severe Coughing Timer" to="." method="_on_severe_coughing_timer_timeout"]
|
|
[connection signal="timeout" from="Coughing Timer" to="." method="_on_coughing_timer_timeout"]
|
|
[connection signal="timeout" from="Coughing Recovery" to="." method="_on_coughing_recovery_timeout"]
|
|
[connection signal="timeout" from="Severe Coughing Recovery" to="." method="_on_severe_coughing_recovery_timeout"]
|