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.

208 lines
4.9 KiB

  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://scripts/objective.gd" type="Script" id=1]
  3. [sub_resource type="BoxShape" id=1]
  4. extents = Vector3( 7, 0.25, 7 )
  5. [sub_resource type="CubeMesh" id=2]
  6. size = Vector3( 14, 0.5, 14 )
  7. subdivide_width = 0
  8. subdivide_height = 0
  9. subdivide_depth = 0
  10. [sub_resource type="CapsuleShape" id=3]
  11. radius = 0.5
  12. height = 14.0
  13. [node name="FullObjective" type="Spatial" index="0"]
  14. [node name="Objective" type="RigidBody" parent="." index="0"]
  15. input_ray_pickable = true
  16. input_capture_on_drag = false
  17. collision_layer = 1
  18. collision_mask = 2
  19. mode = 0
  20. mass = 1000.0
  21. friction = 1.0
  22. bounce = 0.0
  23. gravity_scale = 1.0
  24. custom_integrator = false
  25. continuous_cd = true
  26. contacts_reported = 8
  27. contact_monitor = true
  28. sleeping = false
  29. can_sleep = true
  30. axis_lock_linear_x = false
  31. axis_lock_linear_y = false
  32. axis_lock_linear_z = false
  33. axis_lock_angular_x = false
  34. axis_lock_angular_y = false
  35. axis_lock_angular_z = false
  36. linear_velocity = Vector3( 0, 0, 0 )
  37. linear_damp = -1.0
  38. angular_velocity = Vector3( 0, 0, 0 )
  39. angular_damp = -1.0
  40. script = ExtResource( 1 )
  41. _sections_unfolded = [ "Axis Lock", "Collision", "Linear", "Transform", "Visibility" ]
  42. [node name="CollisionShape" type="CollisionShape" parent="Objective" index="0"]
  43. shape = SubResource( 1 )
  44. disabled = false
  45. _sections_unfolded = [ "Transform" ]
  46. [node name="MeshInstance5" type="MeshInstance" parent="Objective/CollisionShape" index="0"]
  47. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.274852 )
  48. layers = 1
  49. material_override = null
  50. cast_shadow = 1
  51. extra_cull_margin = 0.0
  52. use_in_baked_light = false
  53. lod_min_distance = 0.0
  54. lod_min_hysteresis = 0.0
  55. lod_max_distance = 0.0
  56. lod_max_hysteresis = 0.0
  57. mesh = SubResource( 2 )
  58. skeleton = NodePath("..")
  59. material/0 = null
  60. _sections_unfolded = [ "Transform" ]
  61. [node name="HingeJoint" type="HingeJoint" parent="." index="1"]
  62. transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 0, -0.25, 0 )
  63. nodes/node_a = NodePath("../Objective")
  64. nodes/node_b = NodePath("../Rod")
  65. solver/priority = 1
  66. collision/exclude_nodes = true
  67. params/bias = 0.3
  68. angular_limit/enable = false
  69. angular_limit/upper = 90.0
  70. angular_limit/lower = -90.0
  71. angular_limit/bias = 0.3
  72. angular_limit/softness = 0.9
  73. angular_limit/relaxation = 1.0
  74. motor/enable = false
  75. motor/target_velocity = 1.0
  76. motor/max_impulse = 1.0
  77. _sections_unfolded = [ "Transform", "Visibility", "angular_limit", "collision", "motor", "nodes", "params", "solver" ]
  78. [node name="Rod" type="StaticBody" parent="." index="2"]
  79. transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 0, -0.75, 0 )
  80. input_ray_pickable = true
  81. input_capture_on_drag = false
  82. collision_layer = 1
  83. collision_mask = 1
  84. friction = 1.0
  85. bounce = 0.0
  86. constant_linear_velocity = Vector3( 0, 0, 0 )
  87. constant_angular_velocity = Vector3( 0, 0, 0 )
  88. _sections_unfolded = [ "Collision", "Transform" ]
  89. [node name="CollisionShape" type="CollisionShape" parent="Rod" index="0"]
  90. shape = SubResource( 3 )
  91. disabled = false
  92. _sections_unfolded = [ "Transform", "Visibility" ]
  93. [node name="HUD" type="Control" parent="." index="3"]
  94. anchor_left = 0.5
  95. anchor_top = 0.0
  96. anchor_right = 0.5
  97. anchor_bottom = 0.0
  98. margin_left = -20.0
  99. margin_right = 20.0
  100. margin_bottom = 40.0
  101. rect_pivot_offset = Vector2( 0, 0 )
  102. mouse_filter = 0
  103. mouse_default_cursor_shape = 0
  104. size_flags_horizontal = 1
  105. size_flags_vertical = 1
  106. [node name="ColorRect" type="ColorRect" parent="HUD" index="0"]
  107. anchor_left = 0.0
  108. anchor_top = 0.0
  109. anchor_right = 0.0
  110. anchor_bottom = 0.0
  111. margin_left = -35.0
  112. margin_top = 18.0
  113. margin_right = 95.0
  114. margin_bottom = 57.0
  115. rect_pivot_offset = Vector2( 0, 0 )
  116. mouse_filter = 0
  117. mouse_default_cursor_shape = 0
  118. size_flags_horizontal = 1
  119. size_flags_vertical = 1
  120. color = Color( 0, 0, 0, 0.3 )
  121. [node name="LeftTeam" type="Label" parent="HUD" index="1"]
  122. anchor_left = 0.5
  123. anchor_top = 0.0
  124. anchor_right = 0.5
  125. anchor_bottom = 0.0
  126. margin_left = -47.0
  127. margin_top = 32.0
  128. margin_right = -7.0
  129. margin_bottom = 63.0
  130. rect_pivot_offset = Vector2( 0, 0 )
  131. mouse_filter = 2
  132. mouse_default_cursor_shape = 0
  133. size_flags_horizontal = 1
  134. size_flags_vertical = 4
  135. text = "0%"
  136. align = 1
  137. percent_visible = 1.0
  138. lines_skipped = 0
  139. max_lines_visible = -1
  140. _sections_unfolded = [ "Theme" ]
  141. [node name="RightTeam" type="Label" parent="HUD" index="2"]
  142. anchor_left = 0.5
  143. anchor_top = 0.0
  144. anchor_right = 0.5
  145. anchor_bottom = 0.0
  146. margin_left = 29.0
  147. margin_top = 30.0
  148. margin_right = 69.0
  149. margin_bottom = 44.0
  150. rect_pivot_offset = Vector2( 0, 0 )
  151. mouse_filter = 2
  152. mouse_default_cursor_shape = 0
  153. size_flags_horizontal = 1
  154. size_flags_vertical = 4
  155. text = "0%"
  156. align = 1
  157. percent_visible = 1.0
  158. lines_skipped = 0
  159. max_lines_visible = -1
  160. [node name="Finish" type="Label" parent="HUD" index="3"]
  161. anchor_left = 0.5
  162. anchor_top = 0.0
  163. anchor_right = 0.5
  164. anchor_bottom = 0.0
  165. margin_left = -14.0
  166. margin_top = 83.0
  167. margin_right = 26.0
  168. margin_bottom = 97.0
  169. rect_pivot_offset = Vector2( 0, 0 )
  170. mouse_filter = 2
  171. mouse_default_cursor_shape = 0
  172. size_flags_horizontal = 1
  173. size_flags_vertical = 4
  174. percent_visible = 1.0
  175. lines_skipped = 0
  176. max_lines_visible = -1