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.

199 lines
4.8 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=4]
  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=3]
  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" index="0" 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 = true
  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( 4 )
  87. skeleton = NodePath("..")
  88. material/0 = null
  89. _sections_unfolded = [ "Transform" ]
  90. [node name="MeshInstance" type="MeshInstance" parent="Yaw" index="1"]
  91. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.787368, 0 )
  92. layers = 1
  93. material_override = null
  94. cast_shadow = 1
  95. extra_cull_margin = 0.0
  96. use_in_baked_light = false
  97. lod_min_distance = 0.0
  98. lod_min_hysteresis = 0.0
  99. lod_max_distance = 0.0
  100. lod_max_hysteresis = 0.0
  101. mesh = SubResource( 3 )
  102. skeleton = NodePath("..")
  103. material/0 = null
  104. _sections_unfolded = [ "Transform" ]
  105. [node name="MasterOnly" type="Node" parent="." index="4"]
  106. [node name="Crosshair" type="Label" parent="MasterOnly" index="0"]
  107. anchor_left = 0.5
  108. anchor_top = 0.5
  109. anchor_right = 0.5
  110. anchor_bottom = 0.5
  111. margin_left = -20.0
  112. margin_top = -7.0
  113. margin_right = 20.0
  114. margin_bottom = 7.0
  115. rect_pivot_offset = Vector2( 0, 0 )
  116. mouse_filter = 2
  117. mouse_default_cursor_shape = 0
  118. size_flags_horizontal = 1
  119. size_flags_vertical = 4
  120. text = "+"
  121. align = 1
  122. percent_visible = 1.0
  123. lines_skipped = 0
  124. max_lines_visible = -1
  125. _sections_unfolded = [ "Anchor", "Margin", "Rect" ]
  126. [node name="SwitchCharge" type="Label" parent="MasterOnly" index="1"]
  127. anchor_left = 0.5
  128. anchor_top = 1.0
  129. anchor_right = 0.5
  130. anchor_bottom = 1.0
  131. margin_left = -62.0
  132. margin_top = -98.0
  133. margin_right = 61.0
  134. margin_bottom = -84.0
  135. rect_pivot_offset = Vector2( 0, 0 )
  136. mouse_filter = 2
  137. mouse_default_cursor_shape = 0
  138. size_flags_horizontal = 1
  139. size_flags_vertical = 4
  140. align = 1
  141. percent_visible = 1.0
  142. lines_skipped = 0
  143. max_lines_visible = -1
  144. [node name="TPCamera" type="Spatial" parent="." index="5"]
  145. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.74343, 0 )
  146. script = ExtResource( 2 )
  147. _sections_unfolded = [ "Transform" ]
  148. cam = NodePath("Camera")
  149. pivot = NodePath("Pivot")
  150. [node name="Pivot" type="Spatial" parent="TPCamera" index="0"]
  151. [node name="Camera" type="Camera" parent="TPCamera" index="1"]
  152. keep_aspect = 1
  153. cull_mask = 1048575
  154. environment = null
  155. h_offset = 0.0
  156. v_offset = 0.0
  157. doppler_tracking = 0
  158. projection = 0
  159. current = false
  160. fov = 70.0
  161. size = 1.0
  162. near = 0.05
  163. far = 100.0