A team game with an emphasis on movement (with no shooting), inspired by Overwatch and Zineth
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

170 lines
4.0 KiB

  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://scripts/player.gd" type="Script" id=1]
  3. [sub_resource type="CapsuleShape" id=1]
  4. radius = 0.4
  5. height = 0.5
  6. [sub_resource type="RayShape" id=2]
  7. length = 0.3
  8. _sections_unfolded = [ "Resource" ]
  9. [sub_resource type="CapsuleMesh" id=3]
  10. radius = 0.4
  11. mid_height = 0.5
  12. radial_segments = 64
  13. rings = 8
  14. _sections_unfolded = [ "Resource" ]
  15. [node name="RigidBody" type="RigidBody" index="0" groups=[
  16. "player",
  17. ]]
  18. input_ray_pickable = true
  19. input_capture_on_drag = false
  20. collision_layer = 1
  21. collision_mask = 1
  22. mode = 2
  23. mass = 200.0
  24. friction = 1.0
  25. bounce = 0.0
  26. gravity_scale = 1.0
  27. custom_integrator = false
  28. continuous_cd = true
  29. contacts_reported = 0
  30. contact_monitor = false
  31. sleeping = false
  32. can_sleep = true
  33. axis_lock_linear_x = false
  34. axis_lock_linear_y = false
  35. axis_lock_linear_z = false
  36. axis_lock_angular_x = false
  37. axis_lock_angular_y = false
  38. axis_lock_angular_z = false
  39. linear_velocity = Vector3( 0, 0, 0 )
  40. linear_damp = -1.0
  41. angular_velocity = Vector3( 0, 0, 0 )
  42. angular_damp = -1.0
  43. script = ExtResource( 1 )
  44. _sections_unfolded = [ "Angular", "Axis Lock", "Collision", "Linear", "Transform", "Visibility", "collision" ]
  45. [node name="Body" type="CollisionShape" parent="." index="0"]
  46. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.95, 0 )
  47. shape = SubResource( 1 )
  48. disabled = false
  49. _sections_unfolded = [ "Pause", "Transform", "Visibility" ]
  50. [node name="Leg" type="CollisionShape" parent="." index="1"]
  51. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0.05, 0.35, 0 )
  52. shape = SubResource( 2 )
  53. disabled = false
  54. _sections_unfolded = [ "Transform", "Visibility" ]
  55. [node name="Ray" type="RayCast" parent="." index="2"]
  56. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0 )
  57. enabled = true
  58. exclude_parent = true
  59. cast_to = Vector3( 0, -0.3, 0 )
  60. collision_mask = 1
  61. _sections_unfolded = [ "Transform", "Visibility" ]
  62. [node name="Yaw" type="Spatial" parent="." index="3"]
  63. [node name="Pitch" type="Spatial" parent="Yaw" index="0"]
  64. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, 0 )
  65. _sections_unfolded = [ "Transform" ]
  66. [node name="Camera" type="Camera" parent="Yaw/Pitch" index="0"]
  67. keep_aspect = 0
  68. cull_mask = 1048575
  69. environment = null
  70. h_offset = 0.0
  71. v_offset = 0.0
  72. doppler_tracking = 0
  73. projection = 0
  74. current = false
  75. fov = 70.0
  76. size = 1.0
  77. near = 0.05
  78. far = 100.0
  79. _sections_unfolded = [ "Transform", "Visibility" ]
  80. [node name="Ray" type="RayCast" parent="Yaw/Pitch" index="1"]
  81. enabled = true
  82. exclude_parent = true
  83. cast_to = Vector3( 0, 0, -100 )
  84. collision_mask = 1
  85. _sections_unfolded = [ "Transform" ]
  86. [node name="MeshInstance" type="MeshInstance" parent="." index="4"]
  87. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.95, 0 )
  88. layers = 1
  89. material_override = null
  90. cast_shadow = 1
  91. extra_cull_margin = 0.0
  92. use_in_baked_light = false
  93. lod_min_distance = 0.0
  94. lod_min_hysteresis = 0.0
  95. lod_max_distance = 0.0
  96. lod_max_hysteresis = 0.0
  97. mesh = SubResource( 3 )
  98. skeleton = NodePath("..")
  99. material/0 = null
  100. _sections_unfolded = [ "Transform" ]
  101. [node name="MasterOnly" type="Node" parent="." index="5"]
  102. [node name="Crosshair" type="Label" parent="MasterOnly" index="0"]
  103. anchor_left = 0.5
  104. anchor_top = 0.5
  105. anchor_right = 0.5
  106. anchor_bottom = 0.5
  107. margin_left = -20.0
  108. margin_top = -7.0
  109. margin_right = 20.0
  110. margin_bottom = 7.0
  111. rect_pivot_offset = Vector2( 0, 0 )
  112. mouse_filter = 2
  113. mouse_default_cursor_shape = 0
  114. size_flags_horizontal = 1
  115. size_flags_vertical = 4
  116. text = "+"
  117. align = 1
  118. percent_visible = 1.0
  119. lines_skipped = 0
  120. max_lines_visible = -1
  121. _sections_unfolded = [ "Anchor", "Margin", "Rect" ]
  122. [node name="SwitchCharge" type="Label" parent="MasterOnly" index="1"]
  123. anchor_left = 0.5
  124. anchor_top = 1.0
  125. anchor_right = 0.5
  126. anchor_bottom = 1.0
  127. margin_left = -62.0
  128. margin_top = -98.0
  129. margin_right = 61.0
  130. margin_bottom = -84.0
  131. rect_pivot_offset = Vector2( 0, 0 )
  132. mouse_filter = 2
  133. mouse_default_cursor_shape = 0
  134. size_flags_horizontal = 1
  135. size_flags_vertical = 4
  136. align = 1
  137. percent_visible = 1.0
  138. lines_skipped = 0
  139. max_lines_visible = -1