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.

283 lines
7.0 KiB

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