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.

312 lines
7.8 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=4]
  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=5]
  24. size = Vector3( 2, 2, 2 )
  25. subdivide_width = 0
  26. subdivide_height = 0
  27. subdivide_depth = 0
  28. [sub_resource type="SpatialMaterial" id=6]
  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 = 1
  41. params_specular_mode = 3
  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. _sections_unfolded = [ "Flags", "Parameters", "Roughness" ]
  78. [node name="RigidBody" type="RigidBody" index="0" groups=[
  79. "player",
  80. ]]
  81. input_ray_pickable = true
  82. input_capture_on_drag = false
  83. collision_layer = 4
  84. collision_mask = 5
  85. mode = 2
  86. mass = 200.0
  87. friction = 1.0
  88. bounce = 0.0
  89. gravity_scale = 1.0
  90. custom_integrator = false
  91. continuous_cd = true
  92. contacts_reported = 3
  93. contact_monitor = true
  94. sleeping = false
  95. can_sleep = false
  96. axis_lock_linear_x = false
  97. axis_lock_linear_y = false
  98. axis_lock_linear_z = false
  99. axis_lock_angular_x = false
  100. axis_lock_angular_y = false
  101. axis_lock_angular_z = false
  102. linear_velocity = Vector3( 0, 0, 0 )
  103. linear_damp = -1.0
  104. angular_velocity = Vector3( 0, 0, 0 )
  105. angular_damp = -1.0
  106. script = ExtResource( 1 )
  107. _sections_unfolded = [ "Angular", "Axis Lock", "Collision", "Linear", "Transform", "Visibility", "collision" ]
  108. [node name="Body" type="CollisionShape" parent="." index="0"]
  109. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.75, 0 )
  110. shape = SubResource( 1 )
  111. disabled = false
  112. _sections_unfolded = [ "Pause", "Transform", "Visibility" ]
  113. [node name="Leg" type="CollisionShape" parent="." index="1"]
  114. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0.05, 0.1, 0 )
  115. shape = SubResource( 2 )
  116. disabled = false
  117. _sections_unfolded = [ "Transform", "Visibility" ]
  118. [node name="Ray" type="RayCast" parent="." index="2"]
  119. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.15, 0 )
  120. enabled = true
  121. exclude_parent = true
  122. cast_to = Vector3( 0, -0.2, 0 )
  123. collision_mask = 1
  124. _sections_unfolded = [ "Transform", "Visibility" ]
  125. [node name="Yaw" type="Spatial" parent="." index="3"]
  126. _sections_unfolded = [ "Transform" ]
  127. [node name="Pitch" type="Spatial" parent="Yaw" index="0"]
  128. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.19053, 0 )
  129. _sections_unfolded = [ "Transform" ]
  130. [node name="RotatedHead" type="MeshInstance" parent="Yaw/Pitch" index="0"]
  131. 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 )
  132. layers = 1
  133. material_override = null
  134. cast_shadow = 1
  135. extra_cull_margin = 0.0
  136. use_in_baked_light = false
  137. lod_min_distance = 0.0
  138. lod_min_hysteresis = 0.0
  139. lod_max_distance = 0.0
  140. lod_max_hysteresis = 0.0
  141. mesh = SubResource( 3 )
  142. skeleton = NodePath("..")
  143. material/0 = null
  144. _sections_unfolded = [ "Transform", "material" ]
  145. [node name="MainMesh" type="MeshInstance" parent="Yaw" index="1"]
  146. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.567933, 0 )
  147. layers = 1
  148. material_override = null
  149. cast_shadow = 1
  150. extra_cull_margin = 0.0
  151. use_in_baked_light = false
  152. lod_min_distance = 0.0
  153. lod_min_hysteresis = 0.0
  154. lod_max_distance = 0.0
  155. lod_max_hysteresis = 0.0
  156. mesh = SubResource( 4 )
  157. skeleton = NodePath("..")
  158. material/0 = null
  159. _sections_unfolded = [ "Transform", "material" ]
  160. [node name="MasterOnly" type="Node" parent="." index="4"]
  161. [node name="Crosshair" type="Label" parent="MasterOnly" index="0"]
  162. anchor_left = 0.5
  163. anchor_top = 0.5
  164. anchor_right = 0.5
  165. anchor_bottom = 0.5
  166. margin_left = -20.0
  167. margin_top = -7.0
  168. margin_right = 20.0
  169. margin_bottom = 7.0
  170. rect_pivot_offset = Vector2( 0, 0 )
  171. mouse_filter = 2
  172. mouse_default_cursor_shape = 0
  173. size_flags_horizontal = 1
  174. size_flags_vertical = 4
  175. custom_colors/font_color = Color( 0.277344, 0.277344, 0.277344, 1 )
  176. text = "+"
  177. align = 1
  178. percent_visible = 1.0
  179. lines_skipped = 0
  180. max_lines_visible = -1
  181. _sections_unfolded = [ "Anchor", "Margin", "custom_colors" ]
  182. [node name="SwitchCharge" type="Label" parent="MasterOnly" index="1"]
  183. anchor_left = 0.5
  184. anchor_top = 1.0
  185. anchor_right = 0.5
  186. anchor_bottom = 1.0
  187. margin_left = -62.0
  188. margin_top = -98.0
  189. margin_right = 61.0
  190. margin_bottom = -84.0
  191. rect_pivot_offset = Vector2( 0, 0 )
  192. mouse_filter = 2
  193. mouse_default_cursor_shape = 0
  194. size_flags_horizontal = 1
  195. size_flags_vertical = 4
  196. custom_colors/font_color = Color( 0.289062, 0.289062, 0.289062, 1 )
  197. align = 1
  198. percent_visible = 1.0
  199. lines_skipped = 0
  200. max_lines_visible = -1
  201. _sections_unfolded = [ "custom_colors" ]
  202. [node name="TPCamera" type="Spatial" parent="." index="5"]
  203. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.56913, 0 )
  204. script = ExtResource( 2 )
  205. _sections_unfolded = [ "Transform" ]
  206. cam = NodePath("Camera")
  207. pivot = NodePath("Pivot")
  208. [node name="Pivot" type="Spatial" parent="TPCamera" index="0"]
  209. [node name="Camera" type="Camera" parent="TPCamera" index="1"]
  210. keep_aspect = 1
  211. cull_mask = 1048575
  212. environment = null
  213. h_offset = 0.0
  214. v_offset = 0.0
  215. doppler_tracking = 0
  216. projection = 0
  217. current = false
  218. fov = 70.0
  219. size = 1.0
  220. near = 0.1
  221. far = 250.0
  222. [node name="Ray" type="RayCast" parent="TPCamera/Camera" index="0"]
  223. enabled = true
  224. exclude_parent = true
  225. cast_to = Vector3( 0, 0, -500 )
  226. collision_mask = 13
  227. _sections_unfolded = [ "Transform" ]
  228. [node name="MaterialSettings" type="MeshInstance" parent="." index="6"]
  229. visible = false
  230. layers = 1
  231. material_override = null
  232. cast_shadow = 1
  233. extra_cull_margin = 0.0
  234. use_in_baked_light = false
  235. lod_min_distance = 0.0
  236. lod_min_hysteresis = 0.0
  237. lod_max_distance = 0.0
  238. lod_max_hysteresis = 0.0
  239. mesh = SubResource( 5 )
  240. skeleton = NodePath("..")
  241. material/0 = SubResource( 6 )
  242. _sections_unfolded = [ "material" ]
  243. [node name="NamePosition" type="Spatial" parent="." index="7"]
  244. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.56117, 0 )
  245. [node name="PlayerName" type="Label" parent="." index="8"]
  246. anchor_left = 0.0
  247. anchor_top = 0.0
  248. anchor_right = 0.0
  249. anchor_bottom = 0.0
  250. margin_right = 40.0
  251. margin_bottom = 14.0
  252. rect_pivot_offset = Vector2( 0, 0 )
  253. mouse_filter = 2
  254. mouse_default_cursor_shape = 0
  255. size_flags_horizontal = 1
  256. size_flags_vertical = 4
  257. custom_colors/font_color = Color( 0.3125, 0.3125, 0.3125, 1 )
  258. align = 1
  259. percent_visible = 1.0
  260. lines_skipped = 0
  261. max_lines_visible = -1
  262. script = ExtResource( 3 )
  263. _sections_unfolded = [ "custom_colors" ]