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.

205 lines
4.9 KiB

  1. [gd_scene load_steps=7 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. [sub_resource type="CapsuleShape" id=1]
  5. radius = 0.4
  6. height = 0.5
  7. [sub_resource type="RayShape" id=2]
  8. length = 0.3
  9. _sections_unfolded = [ "Resource" ]
  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. _sections_unfolded = [ "Resource" ]
  22. [node name="RigidBody" type="RigidBody" groups=[
  23. "player",
  24. ]]
  25. input_ray_pickable = true
  26. input_capture_on_drag = false
  27. collision_layer = 1
  28. collision_mask = 1
  29. mode = 2
  30. mass = 200.0
  31. friction = 1.0
  32. bounce = 0.0
  33. gravity_scale = 1.0
  34. custom_integrator = false
  35. continuous_cd = true
  36. contacts_reported = 0
  37. contact_monitor = false
  38. sleeping = false
  39. can_sleep = false
  40. axis_lock_linear_x = false
  41. axis_lock_linear_y = false
  42. axis_lock_linear_z = false
  43. axis_lock_angular_x = false
  44. axis_lock_angular_y = false
  45. axis_lock_angular_z = false
  46. linear_velocity = Vector3( 0, 0, 0 )
  47. linear_damp = -1.0
  48. angular_velocity = Vector3( 0, 0, 0 )
  49. angular_damp = -1.0
  50. script = ExtResource( 1 )
  51. _sections_unfolded = [ "Angular", "Axis Lock", "Collision", "Linear", "Transform", "Visibility", "collision" ]
  52. [node name="Body" type="CollisionShape" parent="." index="0"]
  53. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.95, 0 )
  54. shape = SubResource( 1 )
  55. disabled = false
  56. _sections_unfolded = [ "Pause", "Transform", "Visibility" ]
  57. [node name="Leg" type="CollisionShape" parent="." index="1"]
  58. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0.05, 0.35, 0 )
  59. shape = SubResource( 2 )
  60. disabled = false
  61. _sections_unfolded = [ "Transform", "Visibility" ]
  62. [node name="Ray" type="RayCast" parent="." index="2"]
  63. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0 )
  64. enabled = true
  65. exclude_parent = true
  66. cast_to = Vector3( 0, -0.3, 0 )
  67. collision_mask = 1
  68. _sections_unfolded = [ "Transform", "Visibility" ]
  69. [node name="Yaw" type="Spatial" parent="." index="3"]
  70. [node name="Pitch" type="Spatial" parent="Yaw" index="0"]
  71. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, 0 )
  72. _sections_unfolded = [ "Transform" ]
  73. [node name="MeshInstance" type="MeshInstance" parent="Yaw/Pitch" index="0"]
  74. 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 )
  75. layers = 1
  76. material_override = null
  77. cast_shadow = 1
  78. extra_cull_margin = 0.0
  79. use_in_baked_light = false
  80. lod_min_distance = 0.0
  81. lod_min_hysteresis = 0.0
  82. lod_max_distance = 0.0
  83. lod_max_hysteresis = 0.0
  84. mesh = SubResource( 3 )
  85. skeleton = NodePath("..")
  86. material/0 = null
  87. _sections_unfolded = [ "Transform" ]
  88. [node name="MasterOnly" type="Node" parent="." index="4"]
  89. [node name="Crosshair" type="Label" parent="MasterOnly" index="0"]
  90. anchor_left = 0.5
  91. anchor_top = 0.5
  92. anchor_right = 0.5
  93. anchor_bottom = 0.5
  94. margin_left = -20.0
  95. margin_top = -7.0
  96. margin_right = 20.0
  97. margin_bottom = 7.0
  98. rect_pivot_offset = Vector2( 0, 0 )
  99. mouse_filter = 2
  100. mouse_default_cursor_shape = 0
  101. size_flags_horizontal = 1
  102. size_flags_vertical = 4
  103. text = "+"
  104. align = 1
  105. percent_visible = 1.0
  106. lines_skipped = 0
  107. max_lines_visible = -1
  108. _sections_unfolded = [ "Anchor", "Margin", "Rect" ]
  109. [node name="SwitchCharge" type="Label" parent="MasterOnly" index="1"]
  110. anchor_left = 0.5
  111. anchor_top = 1.0
  112. anchor_right = 0.5
  113. anchor_bottom = 1.0
  114. margin_left = -62.0
  115. margin_top = -98.0
  116. margin_right = 61.0
  117. margin_bottom = -84.0
  118. rect_pivot_offset = Vector2( 0, 0 )
  119. mouse_filter = 2
  120. mouse_default_cursor_shape = 0
  121. size_flags_horizontal = 1
  122. size_flags_vertical = 4
  123. align = 1
  124. percent_visible = 1.0
  125. lines_skipped = 0
  126. max_lines_visible = -1
  127. [node name="TPCamera" type="Spatial" parent="." index="5"]
  128. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.74343, 0 )
  129. script = ExtResource( 2 )
  130. _sections_unfolded = [ "Transform" ]
  131. cam = NodePath("Camera")
  132. pivot = NodePath("Pivot")
  133. [node name="Pivot" type="Spatial" parent="TPCamera" index="0"]
  134. [node name="Camera" type="Camera" parent="TPCamera" index="1"]
  135. keep_aspect = 1
  136. cull_mask = 1048575
  137. environment = null
  138. h_offset = 0.0
  139. v_offset = 0.0
  140. doppler_tracking = 0
  141. projection = 0
  142. current = false
  143. fov = 70.0
  144. size = 1.0
  145. near = 0.05
  146. far = 100.0
  147. [node name="Ray" type="RayCast" parent="TPCamera/Camera" index="0"]
  148. enabled = true
  149. exclude_parent = true
  150. cast_to = Vector3( 0, 0, -100 )
  151. collision_mask = 1
  152. _sections_unfolded = [ "Transform" ]
  153. [node name="MeshInstance" type="MeshInstance" parent="." index="6"]
  154. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.787368, 0 )
  155. layers = 1
  156. material_override = null
  157. cast_shadow = 1
  158. extra_cull_margin = 0.0
  159. use_in_baked_light = false
  160. lod_min_distance = 0.0
  161. lod_min_hysteresis = 0.0
  162. lod_max_distance = 0.0
  163. lod_max_hysteresis = 0.0
  164. mesh = SubResource( 4 )
  165. skeleton = NodePath("..")
  166. material/0 = null
  167. _sections_unfolded = [ "Transform" ]