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.

123 lines
2.9 KiB

  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://scripts/player.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. [node name="RigidBody" type="KinematicBody" index="0" groups=[
  16. "player",
  17. ]]
  18. input_ray_pickable = true
  19. input_capture_on_drag = false
  20. collision_layer = 1
  21. collision_mask = 1
  22. axis_lock_linear_x = false
  23. axis_lock_linear_y = false
  24. axis_lock_linear_z = false
  25. axis_lock_angular_x = false
  26. axis_lock_angular_y = false
  27. axis_lock_angular_z = false
  28. collision/safe_margin = 0.001
  29. script = ExtResource( 1 )
  30. _sections_unfolded = [ "Angular", "Axis Lock", "Collision", "Linear", "Pause", "Transform", "Visibility", "collision" ]
  31. [node name="Body" type="CollisionShape" parent="." index="0"]
  32. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.95, 0 )
  33. shape = SubResource( 1 )
  34. disabled = false
  35. _sections_unfolded = [ "Pause", "Transform", "Visibility" ]
  36. [node name="Leg" type="CollisionShape" parent="." index="1"]
  37. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0.05, 0.35, 0 )
  38. shape = SubResource( 2 )
  39. disabled = false
  40. _sections_unfolded = [ "Transform", "Visibility" ]
  41. [node name="Ray" type="RayCast" parent="." index="2"]
  42. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0 )
  43. enabled = true
  44. exclude_parent = true
  45. cast_to = Vector3( 0, -0.3, 0 )
  46. collision_mask = 1
  47. _sections_unfolded = [ "Transform", "Visibility" ]
  48. [node name="Yaw" type="Spatial" parent="." index="3"]
  49. _sections_unfolded = [ "Transform", "Visibility" ]
  50. [node name="Camera" type="Camera" parent="Yaw" index="0"]
  51. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, 0 )
  52. keep_aspect = 0
  53. cull_mask = 1048575
  54. environment = null
  55. h_offset = 0.0
  56. v_offset = 0.0
  57. doppler_tracking = 0
  58. projection = 0
  59. current = false
  60. fov = 70.0
  61. size = 1.0
  62. near = 0.05
  63. far = 100.0
  64. _sections_unfolded = [ "Transform", "Visibility" ]
  65. [node name="Crosshair" type="Label" parent="." index="4"]
  66. anchor_left = 0.5
  67. anchor_top = 0.5
  68. anchor_right = 0.5
  69. anchor_bottom = 0.5
  70. margin_left = -20.0
  71. margin_top = -7.0
  72. margin_right = 20.0
  73. margin_bottom = 7.0
  74. rect_pivot_offset = Vector2( 0, 0 )
  75. mouse_filter = 2
  76. mouse_default_cursor_shape = 0
  77. size_flags_horizontal = 1
  78. size_flags_vertical = 4
  79. text = "+"
  80. align = 1
  81. percent_visible = 1.0
  82. lines_skipped = 0
  83. max_lines_visible = -1
  84. [node name="MeshInstance" type="MeshInstance" parent="." index="5"]
  85. transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.95, 0 )
  86. layers = 1
  87. material_override = null
  88. cast_shadow = 1
  89. extra_cull_margin = 0.0
  90. use_in_baked_light = false
  91. lod_min_distance = 0.0
  92. lod_min_hysteresis = 0.0
  93. lod_max_distance = 0.0
  94. lod_max_hysteresis = 0.0
  95. mesh = SubResource( 3 )
  96. skeleton = NodePath("..")
  97. material/0 = null
  98. _sections_unfolded = [ "Transform" ]