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.

174 lines
4.2 KiB

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