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.

207 lines
5.0 KiB

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