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.

439 lines
10 KiB

  1. [gd_scene load_steps=14 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. [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. [sub_resource type="StyleBoxFlat" id=7]
  22. content_margin_left = -1.0
  23. content_margin_right = -1.0
  24. content_margin_top = -1.0
  25. content_margin_bottom = -1.0
  26. bg_color = Color( 0.541351, 0.855469, 0.612519, 1 )
  27. draw_center = true
  28. border_width_left = 0
  29. border_width_top = 0
  30. border_width_right = 0
  31. border_width_bottom = 0
  32. border_color = Color( 0.8, 0.8, 0.8, 1 )
  33. border_blend = false
  34. corner_radius_top_left = 0
  35. corner_radius_top_right = 0
  36. corner_radius_bottom_right = 0
  37. corner_radius_bottom_left = 0
  38. corner_detail = 8
  39. expand_margin_left = 0.0
  40. expand_margin_right = 0.0
  41. expand_margin_top = 0.0
  42. expand_margin_bottom = 0.0
  43. shadow_color = Color( 0, 0, 0, 0.6 )
  44. shadow_size = 0
  45. anti_aliasing = true
  46. anti_aliasing_size = 1
  47. [sub_resource type="StyleBoxFlat" id=8]
  48. content_margin_left = -1.0
  49. content_margin_right = -1.0
  50. content_margin_top = -1.0
  51. content_margin_bottom = -1.0
  52. bg_color = Color( 0.00305176, 0.0976562, 0.0111818, 1 )
  53. draw_center = true
  54. border_width_left = 0
  55. border_width_top = 0
  56. border_width_right = 0
  57. border_width_bottom = 0
  58. border_color = Color( 0.8, 0.8, 0.8, 1 )
  59. border_blend = false
  60. corner_radius_top_left = 0
  61. corner_radius_top_right = 0
  62. corner_radius_bottom_right = 0
  63. corner_radius_bottom_left = 0
  64. corner_detail = 8
  65. expand_margin_left = 0.0
  66. expand_margin_right = 0.0
  67. expand_margin_top = 0.0
  68. expand_margin_bottom = 0.0
  69. shadow_color = Color( 0, 0, 0, 0.6 )
  70. shadow_size = 0
  71. anti_aliasing = true
  72. anti_aliasing_size = 1
  73. [sub_resource type="StyleBoxFlat" id=9]
  74. content_margin_left = -1.0
  75. content_margin_right = -1.0
  76. content_margin_top = -1.0
  77. content_margin_bottom = -1.0
  78. bg_color = Color( 0.878769, 0.949219, 0.911242, 1 )
  79. draw_center = true
  80. border_width_left = 0
  81. border_width_top = 0
  82. border_width_right = 0
  83. border_width_bottom = 0
  84. border_color = Color( 0.8, 0.8, 0.8, 1 )
  85. border_blend = false
  86. corner_radius_top_left = 0
  87. corner_radius_top_right = 0
  88. corner_radius_bottom_right = 0
  89. corner_radius_bottom_left = 0
  90. corner_detail = 8
  91. expand_margin_left = 0.0
  92. expand_margin_right = 0.0
  93. expand_margin_top = 0.0
  94. expand_margin_bottom = 0.0
  95. shadow_color = Color( 0, 0, 0, 0.6 )
  96. shadow_size = 0
  97. anti_aliasing = true
  98. anti_aliasing_size = 1
  99. [sub_resource type="StyleBoxEmpty" id=10]
  100. content_margin_left = -1.0
  101. content_margin_right = -1.0
  102. content_margin_top = -1.0
  103. content_margin_bottom = -1.0
  104. [sub_resource type="CubeMesh" id=5]
  105. size = Vector3( 2, 2, 2 )
  106. subdivide_width = 0
  107. subdivide_height = 0
  108. subdivide_depth = 0
  109. [sub_resource type="SpatialMaterial" id=6]
  110. render_priority = 0
  111. flags_transparent = false
  112. flags_unshaded = false
  113. flags_vertex_lighting = false
  114. flags_no_depth_test = false
  115. flags_use_point_size = false
  116. flags_world_triplanar = false
  117. flags_fixed_size = false
  118. flags_albedo_tex_force_srgb = false
  119. vertex_color_use_as_albedo = false
  120. vertex_color_is_srgb = false
  121. params_diffuse_mode = 1
  122. params_specular_mode = 3
  123. params_blend_mode = 0
  124. params_cull_mode = 0
  125. params_depth_draw_mode = 0
  126. params_line_width = 1.0
  127. params_point_size = 1.0
  128. params_billboard_mode = 0
  129. params_grow = false
  130. params_use_alpha_scissor = false
  131. albedo_color = Color( 1, 1, 1, 1 )
  132. metallic = 0.0
  133. metallic_specular = 0.5
  134. metallic_texture_channel = 0
  135. roughness = 0.0
  136. roughness_texture_channel = 0
  137. emission_enabled = false
  138. normal_enabled = false
  139. rim_enabled = false
  140. clearcoat_enabled = false
  141. anisotropy_enabled = false
  142. ao_enabled = false
  143. depth_enabled = false
  144. subsurf_scatter_enabled = false
  145. transmission_enabled = false
  146. refraction_enabled = false
  147. detail_enabled = false
  148. uv1_scale = Vector3( 1, 1, 1 )
  149. uv1_offset = Vector3( 0, 0, 0 )
  150. uv1_triplanar = false
  151. uv1_triplanar_sharpness = 1.0
  152. uv2_scale = Vector3( 1, 1, 1 )
  153. uv2_offset = Vector3( 0, 0, 0 )
  154. uv2_triplanar = false
  155. uv2_triplanar_sharpness = 1.0
  156. proximity_fade_enable = false
  157. distance_fade_enable = false
  158. [node name="RigidBody" type="RigidBody" groups=[
  159. "player",
  160. ]]
  161. input_ray_pickable = true
  162. input_capture_on_drag = false
  163. collision_layer = 4
  164. collision_mask = 5
  165. mode = 2
  166. mass = 200.0
  167. friction = 1.0
  168. bounce = 0.0
  169. gravity_scale = 1.0
  170. custom_integrator = false
  171. continuous_cd = true
  172. contacts_reported = 3
  173. contact_monitor = true
  174. sleeping = false
  175. can_sleep = false
  176. axis_lock_linear_x = false
  177. axis_lock_linear_y = false
  178. axis_lock_linear_z = false
  179. axis_lock_angular_x = false
  180. axis_lock_angular_y = false
  181. axis_lock_angular_z = false
  182. linear_velocity = Vector3( 0, 0, 0 )
  183. linear_damp = -1.0
  184. angular_velocity = Vector3( 0, 0, 0 )
  185. angular_damp = -1.0
  186. script = ExtResource( 1 )
  187. [node name="Body" type="CollisionShape" parent="." index="0"]
  188. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.75, 0 )
  189. shape = SubResource( 1 )
  190. disabled = false
  191. [node name="Leg" type="CollisionShape" parent="." index="1"]
  192. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0.05, 0.1, 0 )
  193. shape = SubResource( 2 )
  194. disabled = false
  195. [node name="Ray" type="RayCast" parent="." index="2"]
  196. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.15, 0 )
  197. enabled = true
  198. exclude_parent = true
  199. cast_to = Vector3( 0, -0.2, 0 )
  200. collision_mask = 1
  201. [node name="Yaw" type="Spatial" parent="." index="3"]
  202. [node name="Pitch" type="Spatial" parent="Yaw" index="0"]
  203. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.19053, 0 )
  204. [node name="RotatedHead" type="MeshInstance" parent="Yaw/Pitch" index="0"]
  205. 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 )
  206. layers = 1
  207. material_override = null
  208. cast_shadow = 1
  209. extra_cull_margin = 0.0
  210. use_in_baked_light = false
  211. lod_min_distance = 0.0
  212. lod_min_hysteresis = 0.0
  213. lod_max_distance = 0.0
  214. lod_max_hysteresis = 0.0
  215. mesh = SubResource( 3 )
  216. skeleton = NodePath("..")
  217. material/0 = null
  218. [node name="MainMesh" type="MeshInstance" parent="Yaw" index="1"]
  219. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.567933, 0 )
  220. layers = 1
  221. material_override = null
  222. cast_shadow = 1
  223. extra_cull_margin = 0.0
  224. use_in_baked_light = false
  225. lod_min_distance = 0.0
  226. lod_min_hysteresis = 0.0
  227. lod_max_distance = 0.0
  228. lod_max_hysteresis = 0.0
  229. mesh = SubResource( 4 )
  230. skeleton = NodePath("..")
  231. material/0 = null
  232. [node name="MasterOnly" type="Node" parent="." index="4"]
  233. [node name="Crosshair" type="Label" parent="MasterOnly" index="0"]
  234. anchor_left = 0.5
  235. anchor_top = 0.5
  236. anchor_right = 0.5
  237. anchor_bottom = 0.5
  238. margin_left = -20.0
  239. margin_top = -7.0
  240. margin_right = 20.0
  241. margin_bottom = 7.0
  242. rect_pivot_offset = Vector2( 0, 0 )
  243. mouse_filter = 2
  244. mouse_default_cursor_shape = 0
  245. size_flags_horizontal = 1
  246. size_flags_vertical = 4
  247. custom_colors/font_color = Color( 0.277344, 0.277344, 0.277344, 1 )
  248. text = "+"
  249. align = 1
  250. percent_visible = 1.0
  251. lines_skipped = 0
  252. max_lines_visible = -1
  253. [node name="ChargeBar" type="ProgressBar" parent="MasterOnly" index="1"]
  254. anchor_left = 0.5
  255. anchor_top = 1.0
  256. anchor_right = 0.5
  257. anchor_bottom = 1.0
  258. margin_left = -484.0
  259. margin_top = -41.0
  260. margin_right = 483.0
  261. margin_bottom = -25.0
  262. rect_pivot_offset = Vector2( 0, 0 )
  263. mouse_filter = 0
  264. mouse_default_cursor_shape = 0
  265. size_flags_horizontal = 1
  266. size_flags_vertical = 0
  267. custom_styles/fg = SubResource( 7 )
  268. custom_styles/bg = SubResource( 8 )
  269. min_value = 0.0
  270. max_value = 100.0
  271. step = 1.0
  272. page = 0.0
  273. value = 0.0
  274. exp_edit = false
  275. rounded = false
  276. percent_visible = false
  277. [node name="Extra" type="ProgressBar" parent="MasterOnly/ChargeBar" index="0"]
  278. anchor_left = 0.5
  279. anchor_top = 0.5
  280. anchor_right = 0.5
  281. anchor_bottom = 0.5
  282. margin_left = -484.0
  283. margin_top = -8.0
  284. margin_right = 484.0
  285. margin_bottom = 8.0
  286. rect_pivot_offset = Vector2( 0, 0 )
  287. mouse_filter = 0
  288. mouse_default_cursor_shape = 0
  289. size_flags_horizontal = 1
  290. size_flags_vertical = 0
  291. custom_styles/fg = SubResource( 9 )
  292. custom_styles/bg = SubResource( 10 )
  293. min_value = 0.0
  294. max_value = 100.0
  295. step = 1.0
  296. page = 0.0
  297. value = 0.0
  298. exp_edit = false
  299. rounded = false
  300. percent_visible = false
  301. [node name="ChargeText" type="Label" parent="MasterOnly/ChargeBar" index="1"]
  302. anchor_left = 0.5
  303. anchor_top = 1.0
  304. anchor_right = 0.5
  305. anchor_bottom = 1.0
  306. margin_left = -61.5
  307. margin_top = -14.0
  308. margin_right = 61.5
  309. rect_pivot_offset = Vector2( 0, 0 )
  310. mouse_filter = 2
  311. mouse_default_cursor_shape = 0
  312. size_flags_horizontal = 1
  313. size_flags_vertical = 4
  314. custom_colors/font_color = Color( 0.456299, 0.689711, 0.695312, 1 )
  315. custom_colors/font_color_shadow = Color( 0.0868835, 0.304688, 0.304688, 1 )
  316. text = "0%"
  317. align = 1
  318. percent_visible = 1.0
  319. lines_skipped = 0
  320. max_lines_visible = -1
  321. [node name="TPCamera" type="Spatial" parent="." index="5"]
  322. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.56913, 0 )
  323. script = ExtResource( 2 )
  324. cam = NodePath("Camera")
  325. pivot = NodePath("Pivot")
  326. [node name="Pivot" type="Spatial" parent="TPCamera" index="0"]
  327. [node name="Camera" type="Camera" parent="TPCamera" index="1"]
  328. keep_aspect = 1
  329. cull_mask = 1048575
  330. environment = null
  331. h_offset = 0.0
  332. v_offset = 0.0
  333. doppler_tracking = 0
  334. projection = 0
  335. current = false
  336. fov = 70.0
  337. size = 1.0
  338. near = 0.1
  339. far = 250.0
  340. [node name="Ray" type="RayCast" parent="TPCamera/Camera" index="0"]
  341. enabled = true
  342. exclude_parent = true
  343. cast_to = Vector3( 0, 0, -500 )
  344. collision_mask = 13
  345. [node name="MaterialSettings" type="MeshInstance" parent="." index="6"]
  346. visible = false
  347. layers = 1
  348. material_override = null
  349. cast_shadow = 1
  350. extra_cull_margin = 0.0
  351. use_in_baked_light = false
  352. lod_min_distance = 0.0
  353. lod_min_hysteresis = 0.0
  354. lod_max_distance = 0.0
  355. lod_max_hysteresis = 0.0
  356. mesh = SubResource( 5 )
  357. skeleton = NodePath("..")
  358. material/0 = SubResource( 6 )
  359. [node name="NamePosition" type="Spatial" parent="." index="7"]
  360. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.56117, 0 )
  361. [node name="PlayerName" type="Label" parent="." index="8"]
  362. anchor_left = 0.0
  363. anchor_top = 0.0
  364. anchor_right = 0.0
  365. anchor_bottom = 0.0
  366. margin_right = 40.0
  367. margin_bottom = 14.0
  368. rect_pivot_offset = Vector2( 0, 0 )
  369. mouse_filter = 2
  370. mouse_default_cursor_shape = 0
  371. size_flags_horizontal = 1
  372. size_flags_vertical = 4
  373. custom_colors/font_color = Color( 0.3125, 0.3125, 0.3125, 1 )
  374. align = 1
  375. percent_visible = 1.0
  376. lines_skipped = 0
  377. max_lines_visible = -1
  378. script = ExtResource( 3 )