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.

306 lines
7.4 KiB

  1. [gd_scene load_steps=10 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. [ext_resource path="res://scripts/player_name.gd" type="Script" id=3]
  5. [sub_resource type="CapsuleShape" id=1]
  6. radius = 0.4
  7. height = 0.5
  8. [sub_resource type="RayShape" id=2]
  9. length = 0.1
  10. _sections_unfolded = [ "Resource" ]
  11. [sub_resource type="PrismMesh" id=3]
  12. left_to_right = 0.5
  13. size = Vector3( 0.5, 0.5, 0.5 )
  14. subdivide_width = 0
  15. subdivide_height = 0
  16. subdivide_depth = 0
  17. [sub_resource type="CapsuleMesh" id=5]
  18. radius = 0.4
  19. mid_height = 0.1
  20. radial_segments = 64
  21. rings = 8
  22. _sections_unfolded = [ "Resource" ]
  23. [sub_resource type="CubeMesh" id=6]
  24. size = Vector3( 2, 2, 2 )
  25. subdivide_width = 0
  26. subdivide_height = 0
  27. subdivide_depth = 0
  28. [sub_resource type="SpatialMaterial" id=7]
  29. render_priority = 0
  30. flags_transparent = false
  31. flags_unshaded = false
  32. flags_vertex_lighting = false
  33. flags_no_depth_test = false
  34. flags_use_point_size = false
  35. flags_world_triplanar = false
  36. flags_fixed_size = false
  37. flags_albedo_tex_force_srgb = false
  38. vertex_color_use_as_albedo = false
  39. vertex_color_is_srgb = false
  40. params_diffuse_mode = 0
  41. params_specular_mode = 0
  42. params_blend_mode = 0
  43. params_cull_mode = 0
  44. params_depth_draw_mode = 0
  45. params_line_width = 1.0
  46. params_point_size = 1.0
  47. params_billboard_mode = 0
  48. params_grow = false
  49. params_use_alpha_scissor = false
  50. albedo_color = Color( 1, 1, 1, 1 )
  51. metallic = 0.0
  52. metallic_specular = 0.5
  53. metallic_texture_channel = 0
  54. roughness = 0.0
  55. roughness_texture_channel = 0
  56. emission_enabled = false
  57. normal_enabled = false
  58. rim_enabled = false
  59. clearcoat_enabled = false
  60. anisotropy_enabled = false
  61. ao_enabled = false
  62. depth_enabled = false
  63. subsurf_scatter_enabled = false
  64. transmission_enabled = false
  65. refraction_enabled = false
  66. detail_enabled = false
  67. uv1_scale = Vector3( 1, 1, 1 )
  68. uv1_offset = Vector3( 0, 0, 0 )
  69. uv1_triplanar = false
  70. uv1_triplanar_sharpness = 1.0
  71. uv2_scale = Vector3( 1, 1, 1 )
  72. uv2_offset = Vector3( 0, 0, 0 )
  73. uv2_triplanar = false
  74. uv2_triplanar_sharpness = 1.0
  75. proximity_fade_enable = false
  76. distance_fade_enable = false
  77. [node name="RigidBody" type="RigidBody" index="0" groups=[
  78. "player",
  79. ]]
  80. input_ray_pickable = true
  81. input_capture_on_drag = false
  82. collision_layer = 4
  83. collision_mask = 5
  84. mode = 2
  85. mass = 200.0
  86. friction = 1.0
  87. bounce = 0.0
  88. gravity_scale = 1.0
  89. custom_integrator = false
  90. continuous_cd = true
  91. contacts_reported = 1
  92. contact_monitor = true
  93. sleeping = false
  94. can_sleep = false
  95. axis_lock_linear_x = false
  96. axis_lock_linear_y = false
  97. axis_lock_linear_z = false
  98. axis_lock_angular_x = false
  99. axis_lock_angular_y = false
  100. axis_lock_angular_z = false
  101. linear_velocity = Vector3( 0, 0, 0 )
  102. linear_damp = -1.0
  103. angular_velocity = Vector3( 0, 0, 0 )
  104. angular_damp = -1.0
  105. script = ExtResource( 1 )
  106. _sections_unfolded = [ "Angular", "Axis Lock", "Collision", "Linear", "Transform", "Visibility", "collision" ]
  107. [node name="Body" type="CollisionShape" parent="." index="0"]
  108. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.75, 0 )
  109. shape = SubResource( 1 )
  110. disabled = false
  111. _sections_unfolded = [ "Pause", "Transform", "Visibility" ]
  112. [node name="Leg" type="CollisionShape" parent="." index="1"]
  113. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0.05, 0.1, 0 )
  114. shape = SubResource( 2 )
  115. disabled = false
  116. _sections_unfolded = [ "Transform", "Visibility" ]
  117. [node name="Ray" type="RayCast" parent="." index="2"]
  118. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.15, 0 )
  119. enabled = true
  120. exclude_parent = true
  121. cast_to = Vector3( 0, -0.2, 0 )
  122. collision_mask = 1
  123. _sections_unfolded = [ "Transform", "Visibility" ]
  124. [node name="Yaw" type="Spatial" parent="." index="3"]
  125. _sections_unfolded = [ "Transform" ]
  126. [node name="Pitch" type="Spatial" parent="Yaw" index="0"]
  127. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.19053, 0 )
  128. _sections_unfolded = [ "Transform" ]
  129. [node name="RotatedHead" type="MeshInstance" parent="Yaw/Pitch" index="0"]
  130. 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 )
  131. layers = 1
  132. material_override = null
  133. cast_shadow = 1
  134. extra_cull_margin = 0.0
  135. use_in_baked_light = false
  136. lod_min_distance = 0.0
  137. lod_min_hysteresis = 0.0
  138. lod_max_distance = 0.0
  139. lod_max_hysteresis = 0.0
  140. mesh = SubResource( 3 )
  141. skeleton = NodePath("..")
  142. material/0 = null
  143. _sections_unfolded = [ "Transform", "material" ]
  144. [node name="MainMesh" type="MeshInstance" parent="Yaw" index="1"]
  145. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.567933, 0 )
  146. layers = 1
  147. material_override = null
  148. cast_shadow = 1
  149. extra_cull_margin = 0.0
  150. use_in_baked_light = false
  151. lod_min_distance = 0.0
  152. lod_min_hysteresis = 0.0
  153. lod_max_distance = 0.0
  154. lod_max_hysteresis = 0.0
  155. mesh = SubResource( 5 )
  156. skeleton = NodePath("..")
  157. material/0 = null
  158. _sections_unfolded = [ "Transform", "material" ]
  159. [node name="MasterOnly" type="Node" parent="." index="4"]
  160. [node name="Crosshair" type="Label" parent="MasterOnly" index="0"]
  161. anchor_left = 0.5
  162. anchor_top = 0.5
  163. anchor_right = 0.5
  164. anchor_bottom = 0.5
  165. margin_left = -20.0
  166. margin_top = -7.0
  167. margin_right = 20.0
  168. margin_bottom = 7.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. text = "+"
  175. align = 1
  176. percent_visible = 1.0
  177. lines_skipped = 0
  178. max_lines_visible = -1
  179. _sections_unfolded = [ "Anchor", "Margin", "Rect" ]
  180. [node name="SwitchCharge" type="Label" parent="MasterOnly" index="1"]
  181. anchor_left = 0.5
  182. anchor_top = 1.0
  183. anchor_right = 0.5
  184. anchor_bottom = 1.0
  185. margin_left = -62.0
  186. margin_top = -98.0
  187. margin_right = 61.0
  188. margin_bottom = -84.0
  189. rect_pivot_offset = Vector2( 0, 0 )
  190. mouse_filter = 2
  191. mouse_default_cursor_shape = 0
  192. size_flags_horizontal = 1
  193. size_flags_vertical = 4
  194. align = 1
  195. percent_visible = 1.0
  196. lines_skipped = 0
  197. max_lines_visible = -1
  198. [node name="TPCamera" type="Spatial" parent="." index="5"]
  199. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.56913, 0 )
  200. script = ExtResource( 2 )
  201. _sections_unfolded = [ "Transform" ]
  202. cam = NodePath("Camera")
  203. pivot = NodePath("Pivot")
  204. [node name="Pivot" type="Spatial" parent="TPCamera" index="0"]
  205. [node name="Camera" type="Camera" parent="TPCamera" index="1"]
  206. keep_aspect = 1
  207. cull_mask = 1048575
  208. environment = null
  209. h_offset = 0.0
  210. v_offset = 0.0
  211. doppler_tracking = 0
  212. projection = 0
  213. current = false
  214. fov = 70.0
  215. size = 1.0
  216. near = 0.1
  217. far = 250.0
  218. [node name="Ray" type="RayCast" parent="TPCamera/Camera" index="0"]
  219. enabled = true
  220. exclude_parent = true
  221. cast_to = Vector3( 0, 0, -500 )
  222. collision_mask = 1
  223. _sections_unfolded = [ "Transform" ]
  224. [node name="MaterialSettings" type="MeshInstance" parent="." index="6"]
  225. visible = false
  226. layers = 1
  227. material_override = null
  228. cast_shadow = 1
  229. extra_cull_margin = 0.0
  230. use_in_baked_light = false
  231. lod_min_distance = 0.0
  232. lod_min_hysteresis = 0.0
  233. lod_max_distance = 0.0
  234. lod_max_hysteresis = 0.0
  235. mesh = SubResource( 6 )
  236. skeleton = NodePath("..")
  237. material/0 = SubResource( 7 )
  238. _sections_unfolded = [ "material" ]
  239. [node name="NamePosition" type="Spatial" parent="." index="7"]
  240. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.56117, 0 )
  241. [node name="PlayerName" type="Label" parent="." index="8"]
  242. anchor_left = 0.0
  243. anchor_top = 0.0
  244. anchor_right = 0.0
  245. anchor_bottom = 0.0
  246. margin_right = 40.0
  247. margin_bottom = 14.0
  248. rect_pivot_offset = Vector2( 0, 0 )
  249. mouse_filter = 2
  250. mouse_default_cursor_shape = 0
  251. size_flags_horizontal = 1
  252. size_flags_vertical = 4
  253. align = 1
  254. percent_visible = 1.0
  255. lines_skipped = 0
  256. max_lines_visible = -1
  257. script = ExtResource( 3 )