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.3
  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 = 1
  28. collision_mask = 1
  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 = 0
  37. contact_monitor = false
  38. sleeping = false
  39. can_sleep = true
  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. tp_camera = NodePath("TPCamera")
  53. master_only = NodePath("MasterOnly")
  54. [node name="Body" type="CollisionShape" parent="." index="0"]
  55. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.95, 0 )
  56. shape = SubResource( 1 )
  57. disabled = false
  58. _sections_unfolded = [ "Pause", "Transform", "Visibility" ]
  59. [node name="Leg" type="CollisionShape" parent="." index="1"]
  60. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0.05, 0.35, 0 )
  61. shape = SubResource( 2 )
  62. disabled = false
  63. _sections_unfolded = [ "Transform", "Visibility" ]
  64. [node name="Ray" type="RayCast" parent="." index="2"]
  65. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0 )
  66. enabled = true
  67. exclude_parent = true
  68. cast_to = Vector3( 0, -0.3, 0 )
  69. collision_mask = 1
  70. _sections_unfolded = [ "Transform", "Visibility" ]
  71. [node name="Yaw" type="Spatial" parent="." index="3"]
  72. [node name="Pitch" type="Spatial" parent="Yaw" index="0"]
  73. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, 0 )
  74. _sections_unfolded = [ "Transform" ]
  75. [node name="MeshInstance" type="MeshInstance" parent="Yaw/Pitch" index="0"]
  76. 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 )
  77. layers = 1
  78. material_override = null
  79. cast_shadow = 1
  80. extra_cull_margin = 0.0
  81. use_in_baked_light = false
  82. lod_min_distance = 0.0
  83. lod_min_hysteresis = 0.0
  84. lod_max_distance = 0.0
  85. lod_max_hysteresis = 0.0
  86. mesh = SubResource( 3 )
  87. skeleton = NodePath("..")
  88. material/0 = null
  89. _sections_unfolded = [ "Transform" ]
  90. [node name="Ray" type="RayCast" parent="Yaw/Pitch" index="1"]
  91. enabled = true
  92. exclude_parent = true
  93. cast_to = Vector3( 0, 0, -100 )
  94. collision_mask = 1
  95. _sections_unfolded = [ "Transform" ]
  96. [node name="MasterOnly" type="Node" parent="." index="4"]
  97. [node name="Crosshair" type="Label" parent="MasterOnly" index="0"]
  98. anchor_left = 0.5
  99. anchor_top = 0.5
  100. anchor_right = 0.5
  101. anchor_bottom = 0.5
  102. margin_left = -20.0
  103. margin_top = -7.0
  104. margin_right = 20.0
  105. margin_bottom = 7.0
  106. rect_pivot_offset = Vector2( 0, 0 )
  107. mouse_filter = 2
  108. mouse_default_cursor_shape = 0
  109. size_flags_horizontal = 1
  110. size_flags_vertical = 4
  111. text = "+"
  112. align = 1
  113. percent_visible = 1.0
  114. lines_skipped = 0
  115. max_lines_visible = -1
  116. _sections_unfolded = [ "Anchor", "Margin", "Rect" ]
  117. [node name="SwitchCharge" type="Label" parent="MasterOnly" index="1"]
  118. anchor_left = 0.5
  119. anchor_top = 1.0
  120. anchor_right = 0.5
  121. anchor_bottom = 1.0
  122. margin_left = -62.0
  123. margin_top = -98.0
  124. margin_right = 61.0
  125. margin_bottom = -84.0
  126. rect_pivot_offset = Vector2( 0, 0 )
  127. mouse_filter = 2
  128. mouse_default_cursor_shape = 0
  129. size_flags_horizontal = 1
  130. size_flags_vertical = 4
  131. align = 1
  132. percent_visible = 1.0
  133. lines_skipped = 0
  134. max_lines_visible = -1
  135. [node name="TPCamera" type="Spatial" parent="." index="5"]
  136. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.74343, 0 )
  137. script = ExtResource( 2 )
  138. _sections_unfolded = [ "Transform" ]
  139. cam = NodePath("Camera")
  140. pivot = NodePath("Pivot")
  141. [node name="Pivot" type="Spatial" parent="TPCamera" index="0"]
  142. [node name="Camera" type="Camera" parent="TPCamera" index="1"]
  143. keep_aspect = 1
  144. cull_mask = 1048575
  145. environment = null
  146. h_offset = 0.0
  147. v_offset = 0.0
  148. doppler_tracking = 0
  149. projection = 0
  150. current = false
  151. fov = 70.0
  152. size = 1.0
  153. near = 0.05
  154. far = 100.0
  155. [node name="MeshInstance" type="MeshInstance" parent="." index="6"]
  156. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.787368, 0 )
  157. layers = 1
  158. material_override = null
  159. cast_shadow = 1
  160. extra_cull_margin = 0.0
  161. use_in_baked_light = false
  162. lod_min_distance = 0.0
  163. lod_min_hysteresis = 0.0
  164. lod_max_distance = 0.0
  165. lod_max_hysteresis = 0.0
  166. mesh = SubResource( 4 )
  167. skeleton = NodePath("..")
  168. material/0 = null
  169. _sections_unfolded = [ "Transform" ]