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.

200 lines
4.7 KiB

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