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.

253 lines
6.1 KiB

  1. [gd_scene load_steps=6 format=2]
  2. [ext_resource path="res://scripts/objective.gd" type="Script" id=1]
  3. [ext_resource path="res://assets/objective.obj" type="ArrayMesh" id=2]
  4. [sub_resource type="BoxShape" id=1]
  5. extents = Vector3( 7, 0.25, 7 )
  6. [sub_resource type="SpatialMaterial" id=5]
  7. render_priority = 0
  8. flags_transparent = false
  9. flags_unshaded = false
  10. flags_vertex_lighting = false
  11. flags_no_depth_test = false
  12. flags_use_point_size = false
  13. flags_world_triplanar = false
  14. flags_fixed_size = false
  15. flags_albedo_tex_force_srgb = false
  16. vertex_color_use_as_albedo = false
  17. vertex_color_is_srgb = false
  18. params_diffuse_mode = 0
  19. params_specular_mode = 0
  20. params_blend_mode = 0
  21. params_cull_mode = 0
  22. params_depth_draw_mode = 0
  23. params_line_width = 1.0
  24. params_point_size = 1.0
  25. params_billboard_mode = 0
  26. params_grow = false
  27. params_use_alpha_scissor = false
  28. albedo_color = Color( 1, 1, 1, 1 )
  29. metallic = 0.0
  30. metallic_specular = 0.5
  31. metallic_texture_channel = 0
  32. roughness = 0.0
  33. roughness_texture_channel = 0
  34. emission_enabled = false
  35. normal_enabled = false
  36. rim_enabled = false
  37. clearcoat_enabled = false
  38. anisotropy_enabled = false
  39. ao_enabled = false
  40. depth_enabled = false
  41. subsurf_scatter_enabled = false
  42. transmission_enabled = false
  43. refraction_enabled = false
  44. detail_enabled = false
  45. uv1_scale = Vector3( 1, 1, 1 )
  46. uv1_offset = Vector3( 0, 0, 0 )
  47. uv1_triplanar = false
  48. uv1_triplanar_sharpness = 1.0
  49. uv2_scale = Vector3( 1, 1, 1 )
  50. uv2_offset = Vector3( 0, 0, 0 )
  51. uv2_triplanar = false
  52. uv2_triplanar_sharpness = 1.0
  53. proximity_fade_enable = false
  54. distance_fade_enable = false
  55. _sections_unfolded = [ "Albedo" ]
  56. [sub_resource type="CapsuleShape" id=4]
  57. radius = 0.5
  58. height = 14.0
  59. [node name="FullObjective" type="Spatial" index="0"]
  60. [node name="Objective" type="RigidBody" parent="." index="0"]
  61. input_ray_pickable = true
  62. input_capture_on_drag = false
  63. collision_layer = 1
  64. collision_mask = 2
  65. mode = 0
  66. mass = 1000.0
  67. friction = 1.0
  68. bounce = 0.0
  69. gravity_scale = 1.0
  70. custom_integrator = false
  71. continuous_cd = true
  72. contacts_reported = 8
  73. contact_monitor = true
  74. sleeping = false
  75. can_sleep = true
  76. axis_lock_linear_x = false
  77. axis_lock_linear_y = false
  78. axis_lock_linear_z = false
  79. axis_lock_angular_x = false
  80. axis_lock_angular_y = false
  81. axis_lock_angular_z = false
  82. linear_velocity = Vector3( 0, 0, 0 )
  83. linear_damp = -1.0
  84. angular_velocity = Vector3( 0, 0, 0 )
  85. angular_damp = -1.0
  86. script = ExtResource( 1 )
  87. _sections_unfolded = [ "Axis Lock", "Collision", "Linear", "Transform", "Visibility" ]
  88. [node name="CollisionShape" type="CollisionShape" parent="Objective" index="0"]
  89. shape = SubResource( 1 )
  90. disabled = false
  91. _sections_unfolded = [ "Transform" ]
  92. [node name="MeshInstance" type="MeshInstance" parent="Objective" index="1"]
  93. layers = 1
  94. material_override = null
  95. cast_shadow = 1
  96. extra_cull_margin = 0.0
  97. use_in_baked_light = false
  98. lod_min_distance = 0.0
  99. lod_min_hysteresis = 0.0
  100. lod_max_distance = 0.0
  101. lod_max_hysteresis = 0.0
  102. mesh = ExtResource( 2 )
  103. skeleton = NodePath("..")
  104. material/0 = SubResource( 5 )
  105. _sections_unfolded = [ "Transform", "material" ]
  106. [node name="HingeJoint" type="HingeJoint" parent="." index="1"]
  107. transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 0, -0.25, 0 )
  108. nodes/node_a = NodePath("../Objective")
  109. nodes/node_b = NodePath("../Rod")
  110. solver/priority = 1
  111. collision/exclude_nodes = true
  112. params/bias = 0.3
  113. angular_limit/enable = false
  114. angular_limit/upper = 90.0
  115. angular_limit/lower = -90.0
  116. angular_limit/bias = 0.3
  117. angular_limit/softness = 0.9
  118. angular_limit/relaxation = 1.0
  119. motor/enable = false
  120. motor/target_velocity = 1.0
  121. motor/max_impulse = 1.0
  122. _sections_unfolded = [ "Transform", "Visibility", "angular_limit", "collision", "motor", "nodes", "params", "solver" ]
  123. [node name="Rod" type="StaticBody" parent="." index="2"]
  124. transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 0, -0.75, 0 )
  125. input_ray_pickable = true
  126. input_capture_on_drag = false
  127. collision_layer = 1
  128. collision_mask = 1
  129. friction = 1.0
  130. bounce = 0.0
  131. constant_linear_velocity = Vector3( 0, 0, 0 )
  132. constant_angular_velocity = Vector3( 0, 0, 0 )
  133. _sections_unfolded = [ "Collision", "Transform" ]
  134. [node name="CollisionShape" type="CollisionShape" parent="Rod" index="0"]
  135. shape = SubResource( 4 )
  136. disabled = false
  137. _sections_unfolded = [ "Transform", "Visibility" ]
  138. [node name="HUD" type="Control" parent="." index="3"]
  139. anchor_left = 0.5
  140. anchor_top = 0.0
  141. anchor_right = 0.5
  142. anchor_bottom = 0.0
  143. margin_left = -20.0
  144. margin_right = 20.0
  145. margin_bottom = 40.0
  146. rect_pivot_offset = Vector2( 0, 0 )
  147. mouse_filter = 0
  148. mouse_default_cursor_shape = 0
  149. size_flags_horizontal = 1
  150. size_flags_vertical = 1
  151. [node name="ColorRect" type="ColorRect" parent="HUD" index="0"]
  152. anchor_left = 0.0
  153. anchor_top = 0.0
  154. anchor_right = 0.0
  155. anchor_bottom = 0.0
  156. margin_left = -35.0
  157. margin_top = 18.0
  158. margin_right = 95.0
  159. margin_bottom = 57.0
  160. rect_pivot_offset = Vector2( 0, 0 )
  161. mouse_filter = 0
  162. mouse_default_cursor_shape = 0
  163. size_flags_horizontal = 1
  164. size_flags_vertical = 1
  165. color = Color( 0, 0, 0, 0.3 )
  166. [node name="LeftTeam" type="Label" parent="HUD" index="1"]
  167. anchor_left = 0.5
  168. anchor_top = 0.0
  169. anchor_right = 0.5
  170. anchor_bottom = 0.0
  171. margin_left = -47.0
  172. margin_top = 32.0
  173. margin_right = -7.0
  174. margin_bottom = 63.0
  175. rect_pivot_offset = Vector2( 0, 0 )
  176. mouse_filter = 2
  177. mouse_default_cursor_shape = 0
  178. size_flags_horizontal = 1
  179. size_flags_vertical = 4
  180. text = "0%"
  181. align = 1
  182. percent_visible = 1.0
  183. lines_skipped = 0
  184. max_lines_visible = -1
  185. _sections_unfolded = [ "Theme" ]
  186. [node name="RightTeam" type="Label" parent="HUD" index="2"]
  187. anchor_left = 0.5
  188. anchor_top = 0.0
  189. anchor_right = 0.5
  190. anchor_bottom = 0.0
  191. margin_left = 29.0
  192. margin_top = 30.0
  193. margin_right = 69.0
  194. margin_bottom = 44.0
  195. rect_pivot_offset = Vector2( 0, 0 )
  196. mouse_filter = 2
  197. mouse_default_cursor_shape = 0
  198. size_flags_horizontal = 1
  199. size_flags_vertical = 4
  200. text = "0%"
  201. align = 1
  202. percent_visible = 1.0
  203. lines_skipped = 0
  204. max_lines_visible = -1
  205. [node name="Finish" type="Label" parent="HUD" index="3"]
  206. anchor_left = 0.5
  207. anchor_top = 0.0
  208. anchor_right = 0.5
  209. anchor_bottom = 0.0
  210. margin_left = -14.0
  211. margin_top = 83.0
  212. margin_right = 26.0
  213. margin_bottom = 97.0
  214. rect_pivot_offset = Vector2( 0, 0 )
  215. mouse_filter = 2
  216. mouse_default_cursor_shape = 0
  217. size_flags_horizontal = 1
  218. size_flags_vertical = 4
  219. percent_visible = 1.0
  220. lines_skipped = 0
  221. max_lines_visible = -1