Player.tscn 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. [gd_scene load_steps=16 format=3 uid="uid://cj25f7gkne3m5"]
  2. [ext_resource type="Script" path="res://entities/player/Player.gd" id="1_qvxk1"]
  3. [ext_resource type="PackedScene" uid="uid://cjtln1brv5njd" path="res://entities/GridBasedMovable.tscn" id="1_yi73l"]
  4. [ext_resource type="PackedScene" uid="uid://2ejyjbxihw1j" path="res://entities/player/player_robot.glb" id="3_3ogh4"]
  5. [ext_resource type="ArrayMesh" uid="uid://dxbwd4lpboue6" path="res://entities/player/player_robot.obj" id="3_4tcrj"]
  6. [ext_resource type="Script" path="res://entities/player/playertools/PlayerToolManager.gd" id="3_u5s57"]
  7. [ext_resource type="Shader" uid="uid://bt1b26ask6lmt" path="res://entities/player/Playeranim_mat.tres" id="5_u6prk"]
  8. [ext_resource type="Material" uid="uid://st2d73wbhj7" path="res://entities/objects/tools/PlayerTools01.material" id="7_lkukr"]
  9. [ext_resource type="PackedScene" uid="uid://dgchngvqkam5r" path="res://entities/player/playertools/pull_tool_attached.tscn" id="7_m7tvc"]
  10. [ext_resource type="ArrayMesh" uid="uid://6yigk3c1ugdh" path="res://entities/player/playertools/push_tool_attached.obj" id="7_tkix3"]
  11. [ext_resource type="PackedScene" uid="uid://m38l4lmo1t7p" path="res://entities/player/playertools/grinding_tool_attached.tscn" id="8_s2ism"]
  12. [ext_resource type="Script" path="res://entities/player/playertools/grinding_tool_attached.gd" id="9_fc70a"]
  13. [ext_resource type="PackedScene" uid="uid://c2jobsx0clplx" path="res://entities/player/playertools/cleaning_tool_attached.tscn" id="9_huqpk"]
  14. [ext_resource type="PackedScene" uid="uid://l3rfhxnw8nmc" path="res://entities/player/components/HeadLight.tscn" id="13_a885t"]
  15. [ext_resource type="Script" path="res://entities/player/components/BombCounter.gd" id="14_plp5v"]
  16. [sub_resource type="ShaderMaterial" id="ShaderMaterial_k88tj"]
  17. render_priority = 0
  18. shader = ExtResource("5_u6prk")
  19. [node name="Player" groups=["player", "pushable"] instance=ExtResource("1_yi73l")]
  20. collision_layer = 2
  21. collision_mask = 5
  22. script = ExtResource("1_qvxk1")
  23. can_pull = true
  24. tool_change_time = 0.1
  25. enable_rotation = true
  26. [node name="PlayerToolManager" type="Node3D" parent="RotationPoint" index="0"]
  27. script = ExtResource("3_u5s57")
  28. [node name="PushToolMesh" type="MeshInstance3D" parent="RotationPoint/PlayerToolManager" index="0"]
  29. visible = false
  30. layers = 2
  31. mesh = ExtResource("7_tkix3")
  32. skeleton = NodePath("")
  33. surface_material_override/0 = ExtResource("7_lkukr")
  34. [node name="pull_tool_attached" parent="RotationPoint/PlayerToolManager" index="1" instance=ExtResource("7_m7tvc")]
  35. visible = false
  36. [node name="cleaning_tool_attached" parent="RotationPoint/PlayerToolManager" index="2" instance=ExtResource("9_huqpk")]
  37. visible = false
  38. [node name="grinding_tool_attached" parent="RotationPoint/PlayerToolManager" index="3" instance=ExtResource("8_s2ism")]
  39. script = ExtResource("9_fc70a")
  40. [node name="AnimatedMesh" parent="RotationPoint" index="2" instance=ExtResource("3_3ogh4")]
  41. [node name="StaticMesh" parent="RotationPoint" index="3"]
  42. visible = false
  43. mesh = ExtResource("3_4tcrj")
  44. surface_material_override/0 = SubResource("ShaderMaterial_k88tj")
  45. [node name="Light" parent="RotationPoint" index="4" instance=ExtResource("13_a885t")]
  46. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.527381, 0.943825, -0.72225)
  47. visible = false
  48. [node name="Light2" parent="RotationPoint" index="5" instance=ExtResource("13_a885t")]
  49. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.526577, 0.940809, -0.750476)
  50. visible = false
  51. [node name="DetectionArea" parent="." index="3"]
  52. collision_layer = 2
  53. collision_mask = 37
  54. [node name="RayCastFront" parent="RC_Holder" index="0"]
  55. target_position = Vector3(0, 0, 0.6)
  56. collision_mask = 45
  57. [node name="RayCastDownRamp" parent="RC_Holder" index="1"]
  58. collision_mask = 45
  59. [node name="RayCastBack" parent="RC_Holder" index="3"]
  60. collision_mask = 37
  61. [node name="RayCastGround" parent="RC_Holder" index="4"]
  62. collision_mask = 37
  63. [node name="ToolManager" type="Node" parent="." index="6"]
  64. [node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="." index="8"]
  65. attenuation_model = 3
  66. unit_size = 100.0
  67. [node name="BombCounter" type="Node" parent="." index="9"]
  68. script = ExtResource("14_plp5v")
  69. [node name="DefaultAttachedCam" type="Camera3D" parent="." index="10"]
  70. transform = Transform3D(0.948498, -0.225993, 0.221988, -0.0247417, 0.645766, 0.763134, -0.315815, -0.729324, 0.606917, 10.3795, 50.8927, 36.6674)
  71. current = true
  72. fov = 22.5
  73. size = 40.0
  74. near = 10.0
  75. far = 5000.0
  76. [connection signal="no_health" from="Health" to="." method="_on_Health_no_health"]
  77. [editable path="RC_Holder"]