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.

207 lines
5.0 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. tp_camera = NodePath("TPCamera")
  53. master_only = NodePath("MasterOnly")
  54. [node name="Body" type="CollisionShape" parent="." index="0"]
  55. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.95, 0 )
  56. shape = SubResource( 1 )
  57. disabled = false
  58. _sections_unfolded = [ "Pause", "Transform", "Visibility" ]
  59. [node name="Leg" type="CollisionShape" parent="." index="1"]
  60. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0.05, 0.35, 0 )
  61. shape = SubResource( 2 )
  62. disabled = false
  63. _sections_unfolded = [ "Transform", "Visibility" ]
  64. [node name="Ray" type="RayCast" parent="." index="2"]
  65. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0 )
  66. enabled = true
  67. exclude_parent = true
  68. cast_to = Vector3( 0, -0.3, 0 )
  69. collision_mask = 1
  70. _sections_unfolded = [ "Transform", "Visibility" ]
  71. [node name="Yaw" type="Spatial" parent="." index="3"]
  72. [node name="Pitch" type="Spatial" parent="Yaw" index="0"]
  73. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, 0 )
  74. _sections_unfolded = [ "Transform" ]
  75. [node name="MeshInstance" type="MeshInstance" parent="Yaw/Pitch" index="0"]
  76. 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 )
  77. layers = 1
  78. material_override = null
  79. cast_shadow = 1
  80. extra_cull_margin = 0.0
  81. use_in_baked_light = false
  82. lod_min_distance = 0.0
  83. lod_min_hysteresis = 0.0
  84. lod_max_distance = 0.0
  85. lod_max_hysteresis = 0.0
  86. mesh = SubResource( 3 )
  87. skeleton = NodePath("..")
  88. material/0 = null
  89. _sections_unfolded = [ "Transform" ]
  90. [node name="MasterOnly" type="Node" parent="." index="4"]
  91. [node name="Crosshair" type="Label" parent="MasterOnly" index="0"]
  92. anchor_left = 0.5
  93. anchor_top = 0.5
  94. anchor_right = 0.5
  95. anchor_bottom = 0.5
  96. margin_left = -20.0
  97. margin_top = -7.0
  98. margin_right = 20.0
  99. margin_bottom = 7.0
  100. rect_pivot_offset = Vector2( 0, 0 )
  101. mouse_filter = 2
  102. mouse_default_cursor_shape = 0
  103. size_flags_horizontal = 1
  104. size_flags_vertical = 4
  105. text = "+"
  106. align = 1
  107. percent_visible = 1.0
  108. lines_skipped = 0
  109. max_lines_visible = -1
  110. _sections_unfolded = [ "Anchor", "Margin", "Rect" ]
  111. [node name="SwitchCharge" type="Label" parent="MasterOnly" index="1"]
  112. anchor_left = 0.5
  113. anchor_top = 1.0
  114. anchor_right = 0.5
  115. anchor_bottom = 1.0
  116. margin_left = -62.0
  117. margin_top = -98.0
  118. margin_right = 61.0
  119. margin_bottom = -84.0
  120. rect_pivot_offset = Vector2( 0, 0 )
  121. mouse_filter = 2
  122. mouse_default_cursor_shape = 0
  123. size_flags_horizontal = 1
  124. size_flags_vertical = 4
  125. align = 1
  126. percent_visible = 1.0
  127. lines_skipped = 0
  128. max_lines_visible = -1
  129. [node name="TPCamera" type="Spatial" parent="." index="5"]
  130. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.74343, 0 )
  131. script = ExtResource( 2 )
  132. _sections_unfolded = [ "Transform" ]
  133. cam = NodePath("Camera")
  134. pivot = NodePath("Pivot")
  135. [node name="Pivot" type="Spatial" parent="TPCamera" index="0"]
  136. [node name="Camera" type="Camera" parent="TPCamera" index="1"]
  137. keep_aspect = 1
  138. cull_mask = 1048575
  139. environment = null
  140. h_offset = 0.0
  141. v_offset = 0.0
  142. doppler_tracking = 0
  143. projection = 0
  144. current = false
  145. fov = 70.0
  146. size = 1.0
  147. near = 0.05
  148. far = 100.0
  149. [node name="Ray" type="RayCast" parent="TPCamera/Camera" index="0"]
  150. enabled = true
  151. exclude_parent = true
  152. cast_to = Vector3( 0, 0, -100 )
  153. collision_mask = 1
  154. _sections_unfolded = [ "Transform" ]
  155. [node name="MeshInstance" type="MeshInstance" parent="." index="6"]
  156. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.787368, 0 )
  157. layers = 1
  158. material_override = null
  159. cast_shadow = 1
  160. extra_cull_margin = 0.0
  161. use_in_baked_light = false
  162. lod_min_distance = 0.0
  163. lod_min_hysteresis = 0.0
  164. lod_max_distance = 0.0
  165. lod_max_hysteresis = 0.0
  166. mesh = SubResource( 4 )
  167. skeleton = NodePath("..")
  168. material/0 = null
  169. _sections_unfolded = [ "Transform" ]