player.tscn 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  1. [gd_scene load_steps=51 format=3 uid="uid://cs1k22tdf04k4"]
  2. [ext_resource type="Script" uid="uid://ctlx3bqglonsx" path="res://player/player.gd" id="1"]
  3. [ext_resource type="PackedScene" uid="uid://div25sd40yx1d" path="res://player/model/player.glb" id="2"]
  4. [ext_resource type="Script" uid="uid://m1xn31x0lssx" path="res://player/player_input.gd" id="2_g11dy"]
  5. [ext_resource type="Texture2D" uid="uid://vpkjqsku35mr" path="res://player/crosshair.png" id="3"]
  6. [ext_resource type="AudioStream" uid="uid://do3ko5enqvvrb" path="res://player/audio/step_random_pitch.tres" id="4"]
  7. [ext_resource type="AudioStream" uid="uid://evwr35k4yn6g" path="res://player/audio/jump.wav" id="5"]
  8. [ext_resource type="AudioStream" uid="uid://fbnqspetw2oy" path="res://player/audio/land.wav" id="6"]
  9. [ext_resource type="Texture2D" uid="uid://8d78kbpqjumj" path="res://effects_shared/blob_shadow.tres" id="7_5auco"]
  10. [ext_resource type="Script" uid="uid://byrvr71jmaisi" path="res://player/camera_noise_shake_effect.gd" id="8"]
  11. [ext_resource type="Material" uid="uid://byb8a73wgvytk" path="res://player/bullet/bullet_material.tres" id="9"]
  12. [ext_resource type="ArrayMesh" uid="uid://pok2ib14r47b" path="res://player/model/muzzle_flash_particle_mesh_Cone.mesh" id="10"]
  13. [ext_resource type="Texture2D" uid="uid://dj46di0ip66q5" path="res://player/bullet/effect/FlarePolar.png" id="11"]
  14. [ext_resource type="AudioStream" uid="uid://glpjepixvmdl" path="res://player/audio/shoot.wav" id="11_cqsut"]
  15. [ext_resource type="PackedScene" uid="uid://jphgr3qep5" path="res://player/bullet/bullet.tscn" id="14_bx31p"]
  16. [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_o4rt5"]
  17. properties/0/path = NodePath(".:transform")
  18. properties/0/spawn = true
  19. properties/0/replication_mode = 1
  20. properties/1/path = NodePath(".:player_id")
  21. properties/1/spawn = true
  22. properties/1/replication_mode = 0
  23. properties/2/path = NodePath("PlayerModel:transform")
  24. properties/2/spawn = true
  25. properties/2/replication_mode = 1
  26. properties/3/path = NodePath(".:motion")
  27. properties/3/spawn = true
  28. properties/3/replication_mode = 1
  29. properties/4/path = NodePath(".:current_animation")
  30. properties/4/spawn = true
  31. properties/4/replication_mode = 1
  32. [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_8yuxf"]
  33. properties/0/path = NodePath("CameraBase:rotation")
  34. properties/0/spawn = true
  35. properties/0/replication_mode = 1
  36. properties/1/path = NodePath("CameraBase/CameraRot:rotation")
  37. properties/1/spawn = true
  38. properties/1/replication_mode = 1
  39. properties/2/path = NodePath("InputSynchronizer:shoot_target")
  40. properties/2/spawn = true
  41. properties/2/replication_mode = 1
  42. properties/3/path = NodePath("InputSynchronizer:motion")
  43. properties/3/spawn = true
  44. properties/3/replication_mode = 1
  45. properties/4/path = NodePath("InputSynchronizer:shooting")
  46. properties/4/spawn = true
  47. properties/4/replication_mode = 1
  48. properties/5/path = NodePath("InputSynchronizer:aiming")
  49. properties/5/spawn = true
  50. properties/5/replication_mode = 1
  51. [sub_resource type="SphereMesh" id="2"]
  52. radius = 0.003
  53. height = 0.02
  54. [sub_resource type="StandardMaterial3D" id="3"]
  55. transparency = 1
  56. cull_mode = 2
  57. shading_mode = 0
  58. vertex_color_use_as_albedo = true
  59. albedo_texture = ExtResource("11")
  60. [sub_resource type="Curve" id="6"]
  61. _data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.791139, 0.990909), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
  62. point_count = 3
  63. [sub_resource type="AnimationNodeAdd3" id="9"]
  64. resource_local_to_scene = true
  65. filter_enabled = true
  66. filters = ["Robot_Skeleton/Skeleton3D:neck.001", "Robot_Skeleton/Skeleton3D:upper_arm.R"]
  67. [sub_resource type="AnimationNodeAnimation" id="10"]
  68. resource_local_to_scene = true
  69. animation = &"AIM-Down"
  70. [sub_resource type="AnimationNodeAnimation" id="11"]
  71. resource_local_to_scene = true
  72. animation = &"AIM-Up"
  73. [sub_resource type="AnimationNodeBlend2" id="12"]
  74. resource_local_to_scene = true
  75. filter_enabled = true
  76. filters = ["Robot_Skeleton/Skeleton3D:eyelid.d.L", "Robot_Skeleton/Skeleton3D:eyelid.d.R", "Robot_Skeleton/Skeleton3D:eyelid.u.L", "Robot_Skeleton/Skeleton3D:eyelid.u.R", "Robot_Skeleton/Skeleton3D:eyes"]
  77. [sub_resource type="AnimationNodeAnimation" id="13"]
  78. resource_local_to_scene = true
  79. animation = &"eyes"
  80. [sub_resource type="AnimationNodeAnimation" id="14"]
  81. resource_local_to_scene = true
  82. animation = &"jump_5_hardlanding"
  83. [sub_resource type="AnimationNodeAnimation" id="15"]
  84. resource_local_to_scene = true
  85. animation = &"jump_4_falling"
  86. [sub_resource type="AnimationNodeAnimation" id="16"]
  87. resource_local_to_scene = true
  88. animation = &"jump_2_upwards"
  89. [sub_resource type="AnimationNodeOneShot" id="17"]
  90. resource_local_to_scene = true
  91. fadein_time = 0.25
  92. fadeout_time = 0.25
  93. autorestart_random_delay = 1.0
  94. [sub_resource type="AnimationNodeTransition" id="18"]
  95. resource_local_to_scene = true
  96. xfade_time = 0.2
  97. input_0/name = "strafe"
  98. input_0/auto_advance = false
  99. input_0/break_loop_at_end = false
  100. input_0/reset = true
  101. input_1/name = "walk"
  102. input_1/auto_advance = false
  103. input_1/break_loop_at_end = false
  104. input_1/reset = true
  105. input_2/name = "jump_up"
  106. input_2/auto_advance = false
  107. input_2/break_loop_at_end = false
  108. input_2/reset = true
  109. input_3/name = "jump_down"
  110. input_3/auto_advance = false
  111. input_3/break_loop_at_end = false
  112. input_3/reset = true
  113. [sub_resource type="AnimationNodeAnimation" id="19"]
  114. resource_local_to_scene = true
  115. animation = &"strafe_left"
  116. [sub_resource type="AnimationNodeAnimation" id="20"]
  117. resource_local_to_scene = true
  118. animation = &"strafe_right"
  119. [sub_resource type="AnimationNodeAnimation" id="21"]
  120. resource_local_to_scene = true
  121. animation = &"strafe_back"
  122. [sub_resource type="AnimationNodeAnimation" id="22"]
  123. resource_local_to_scene = true
  124. animation = &"strafe_front"
  125. [sub_resource type="AnimationNodeAnimation" id="23"]
  126. resource_local_to_scene = true
  127. animation = &"Idlecombat"
  128. [sub_resource type="AnimationNodeBlendSpace2D" id="24"]
  129. resource_local_to_scene = true
  130. blend_point_0/node = SubResource("19")
  131. blend_point_0/pos = Vector2(1, 0)
  132. blend_point_1/node = SubResource("20")
  133. blend_point_1/pos = Vector2(-1, 0)
  134. blend_point_2/node = SubResource("21")
  135. blend_point_2/pos = Vector2(0, -1)
  136. blend_point_3/node = SubResource("22")
  137. blend_point_3/pos = Vector2(0, 1)
  138. blend_point_4/node = SubResource("23")
  139. blend_point_4/pos = Vector2(0, 0)
  140. [sub_resource type="AnimationNodeTimeScale" id="37"]
  141. [sub_resource type="AnimationNodeAnimation" id="25"]
  142. resource_local_to_scene = true
  143. animation = &"Idle"
  144. [sub_resource type="AnimationNodeAnimation" id="26"]
  145. resource_local_to_scene = true
  146. animation = &"running_nogun"
  147. [sub_resource type="AnimationNodeAnimation" id="27"]
  148. resource_local_to_scene = true
  149. animation = &"running_gun"
  150. [sub_resource type="AnimationNodeAnimation" id="28"]
  151. resource_local_to_scene = true
  152. animation = &"Idlecombat"
  153. [sub_resource type="AnimationNodeBlendSpace2D" id="29"]
  154. resource_local_to_scene = true
  155. blend_point_0/node = SubResource("25")
  156. blend_point_0/pos = Vector2(0, 0)
  157. blend_point_1/node = SubResource("26")
  158. blend_point_1/pos = Vector2(1, 0)
  159. blend_point_2/node = SubResource("27")
  160. blend_point_2/pos = Vector2(1, 1)
  161. blend_point_3/node = SubResource("28")
  162. blend_point_3/pos = Vector2(0, 1)
  163. min_space = Vector2(0, 0)
  164. x_label = "speed"
  165. y_label = "gun"
  166. [sub_resource type="AnimationNodeTimeScale" id="36"]
  167. [sub_resource type="AnimationNodeBlendTree" id="30"]
  168. resource_local_to_scene = true
  169. nodes/aim/node = SubResource("9")
  170. nodes/aim/position = Vector2(1120, 1240)
  171. nodes/aimdown/node = SubResource("10")
  172. nodes/aimdown/position = Vector2(140, 580)
  173. nodes/aimup/node = SubResource("11")
  174. nodes/aimup/position = Vector2(140, 380)
  175. nodes/eye_blend/node = SubResource("12")
  176. nodes/eye_blend/position = Vector2(1340, 1220)
  177. nodes/eyes/node = SubResource("13")
  178. nodes/eyes/position = Vector2(140, 580)
  179. nodes/hardland/node = SubResource("14")
  180. nodes/hardland/position = Vector2(140, 780)
  181. nodes/jumpdown/node = SubResource("15")
  182. nodes/jumpdown/position = Vector2(140, 980)
  183. nodes/jumpup/node = SubResource("16")
  184. nodes/jumpup/position = Vector2(140, 1180)
  185. nodes/land/node = SubResource("17")
  186. nodes/land/position = Vector2(880, 1300)
  187. nodes/output/position = Vector2(1560, 1220)
  188. nodes/state/node = SubResource("18")
  189. nodes/state/position = Vector2(680, 1340)
  190. nodes/strafe/node = SubResource("24")
  191. nodes/strafe/position = Vector2(140, 1400)
  192. nodes/strafe_speed/node = SubResource("37")
  193. nodes/strafe_speed/position = Vector2(440, 1360)
  194. nodes/walk/node = SubResource("29")
  195. nodes/walk/position = Vector2(140, 1640)
  196. nodes/walk_speed/node = SubResource("36")
  197. nodes/walk_speed/position = Vector2(440, 1600)
  198. node_connections = [&"aim", 0, &"aimdown", &"aim", 1, &"land", &"aim", 2, &"aimup", &"eye_blend", 0, &"aim", &"eye_blend", 1, &"eyes", &"land", 0, &"state", &"land", 1, &"hardland", &"output", 0, &"eye_blend", &"state", 0, &"strafe_speed", &"state", 1, &"walk_speed", &"state", 2, &"jumpup", &"state", 3, &"jumpdown", &"strafe_speed", 0, &"strafe", &"walk_speed", 0, &"walk"]
  199. [sub_resource type="CapsuleShape3D" id="31"]
  200. [sub_resource type="SeparationRayShape3D" id="32"]
  201. [sub_resource type="Animation" id="Animation_daexs"]
  202. length = 0.001
  203. tracks/0/type = "value"
  204. tracks/0/imported = false
  205. tracks/0/enabled = true
  206. tracks/0/path = NodePath("CameraRot/SpringArm3D:position")
  207. tracks/0/interp = 1
  208. tracks/0/loop_wrap = true
  209. tracks/0/keys = {
  210. "times": PackedFloat32Array(0),
  211. "transitions": PackedFloat32Array(1),
  212. "update": 0,
  213. "values": [Vector3(0, 0, 0)]
  214. }
  215. tracks/1/type = "value"
  216. tracks/1/imported = false
  217. tracks/1/enabled = true
  218. tracks/1/path = NodePath("../Crosshair:self_modulate")
  219. tracks/1/interp = 1
  220. tracks/1/loop_wrap = true
  221. tracks/1/keys = {
  222. "times": PackedFloat32Array(0),
  223. "transitions": PackedFloat32Array(1),
  224. "update": 0,
  225. "values": [Color(1, 1, 1, 0)]
  226. }
  227. [sub_resource type="Animation" id="33"]
  228. length = 0.5
  229. tracks/0/type = "value"
  230. tracks/0/imported = false
  231. tracks/0/enabled = true
  232. tracks/0/path = NodePath("CameraRot/SpringArm3D:position")
  233. tracks/0/interp = 1
  234. tracks/0/loop_wrap = true
  235. tracks/0/keys = {
  236. "times": PackedFloat32Array(0, 0.5),
  237. "transitions": PackedFloat32Array(0.3, 1),
  238. "update": 0,
  239. "values": [Vector3(-0.6, -0.3, 1.1), Vector3(0, 0, 0)]
  240. }
  241. tracks/1/type = "value"
  242. tracks/1/imported = false
  243. tracks/1/enabled = true
  244. tracks/1/path = NodePath("../Crosshair:self_modulate")
  245. tracks/1/interp = 1
  246. tracks/1/loop_wrap = true
  247. tracks/1/keys = {
  248. "times": PackedFloat32Array(0, 0.2),
  249. "transitions": PackedFloat32Array(1, 1),
  250. "update": 0,
  251. "values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
  252. }
  253. [sub_resource type="Animation" id="34"]
  254. length = 0.5
  255. tracks/0/type = "value"
  256. tracks/0/imported = false
  257. tracks/0/enabled = true
  258. tracks/0/path = NodePath("CameraRot/SpringArm3D:position")
  259. tracks/0/interp = 1
  260. tracks/0/loop_wrap = true
  261. tracks/0/keys = {
  262. "times": PackedFloat32Array(0, 0.5),
  263. "transitions": PackedFloat32Array(0.3, 1),
  264. "update": 0,
  265. "values": [Vector3(0, 0, 0), Vector3(-0.6, -0.3, 1.1)]
  266. }
  267. tracks/1/type = "value"
  268. tracks/1/imported = false
  269. tracks/1/enabled = true
  270. tracks/1/path = NodePath("../Crosshair:self_modulate")
  271. tracks/1/interp = 1
  272. tracks/1/loop_wrap = true
  273. tracks/1/keys = {
  274. "times": PackedFloat32Array(0, 0.2),
  275. "transitions": PackedFloat32Array(1, 1),
  276. "update": 0,
  277. "values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
  278. }
  279. [sub_resource type="AnimationLibrary" id="AnimationLibrary_keqb5"]
  280. _data = {
  281. &"RESET": SubResource("Animation_daexs"),
  282. &"far": SubResource("33"),
  283. &"shoot": SubResource("34")
  284. }
  285. [sub_resource type="AudioStreamRandomizer" id="35"]
  286. streams_count = 1
  287. stream_0/stream = ExtResource("11_cqsut")
  288. [node name="Player" type="CharacterBody3D"]
  289. collision_layer = 6
  290. collision_mask = 7
  291. script = ExtResource("1")
  292. [node name="ServerSynchronizer" type="MultiplayerSynchronizer" parent="."]
  293. replication_config = SubResource("SceneReplicationConfig_o4rt5")
  294. [node name="InputSynchronizer" type="MultiplayerSynchronizer" parent="." node_paths=PackedStringArray("camera_animation", "crosshair", "camera_base", "camera_rot", "camera_camera", "color_rect")]
  295. replication_config = SubResource("SceneReplicationConfig_8yuxf")
  296. script = ExtResource("2_g11dy")
  297. camera_animation = NodePath("../CameraBase/Animation")
  298. crosshair = NodePath("../Crosshair")
  299. camera_base = NodePath("../CameraBase")
  300. camera_rot = NodePath("../CameraBase/CameraRot")
  301. camera_camera = NodePath("../CameraBase/CameraRot/SpringArm3D/Camera3D")
  302. color_rect = NodePath("../ColorRect")
  303. [node name="PlayerModel" parent="." instance=ExtResource("2")]
  304. [node name="Robot_Skeleton" parent="PlayerModel" index="0"]
  305. transform = Transform3D(0.803991, 0, 0, 0, 0.803991, 0, 0, 0, 0.803991, 0, 0, 0)
  306. [node name="Skeleton3D" parent="PlayerModel/Robot_Skeleton" index="0"]
  307. bones/1/position = Vector3(0.103608, 2.22253, -0.184377)
  308. bones/1/rotation = Quaternion(0.193201, 0.0374557, -0.00673234, 0.980421)
  309. bones/2/position = Vector3(-1.95239e-05, 0.241701, -0.000790904)
  310. bones/2/rotation = Quaternion(-0.0628544, -0.0278069, 0.00524156, 0.997621)
  311. bones/3/position = Vector3(-1.95427e-05, 0.105102, -0.000143575)
  312. bones/3/rotation = Quaternion(-0.071478, -0.0283034, -0.000333381, 0.997041)
  313. bones/4/position = Vector3(-1.95322e-05, 0.11983, 0.000566802)
  314. bones/4/rotation = Quaternion(-0.00834951, -0.0279675, -0.00437355, 0.999564)
  315. bones/5/position = Vector3(7.64303e-08, 0.326506, -7.63694e-06)
  316. bones/5/rotation = Quaternion(0.180715, 3.47882e-05, 0.000766016, 0.983535)
  317. bones/6/rotation = Quaternion(0.0240618, 0.835571, 0.547508, -0.0384283)
  318. bones/7/position = Vector3(-4.64581e-10, -0.000460286, -0.0115712)
  319. bones/7/rotation = Quaternion(-0.0034329, 0.706915, 0.707266, 0.0058631)
  320. bones/8/rotation = Quaternion(0.965926, 2.24696e-08, 1.45903e-07, 0.258819)
  321. bones/9/position = Vector3(-3.65845e-09, 0.255096, 0.039909)
  322. bones/10/position = Vector3(-1.81086e-08, 0.245584, 0.126631)
  323. bones/11/rotation = Quaternion(4.17087e-07, 0.930597, 0.366045, -5.68793e-07)
  324. bones/12/rotation = Quaternion(4.16782e-07, 0.930597, 0.366045, -5.69376e-07)
  325. bones/13/rotation = Quaternion(0.0442979, 0.958142, -0.282457, 0.0147935)
  326. bones/14/rotation = Quaternion(2.09165e-07, 0.959165, -0.282846, -7.20798e-07)
  327. bones/15/rotation = Quaternion(-0.326496, -0.358201, -0.436517, 0.757987)
  328. bones/16/rotation = Quaternion(-0.627235, 0.0318297, 0.123244, 0.768358)
  329. bones/17/rotation = Quaternion(-0.0685381, 0.0141724, -0.387363, 0.919267)
  330. bones/18/rotation = Quaternion(-0.0815395, 0.00129315, -0.384497, 0.919517)
  331. bones/18/scale = Vector3(1, 1, 1)
  332. bones/19/rotation = Quaternion(-0.000719559, 0.000711024, 0.999138, -0.0414941)
  333. bones/20/rotation = Quaternion(-0.0285355, -0.0150603, 0.98944, 0.141308)
  334. bones/21/rotation = Quaternion(7.36457e-07, 3.86686e-06, -5.92152e-08, 1)
  335. bones/22/rotation = Quaternion(-0.157402, -0.0419095, 0.000338464, 0.986645)
  336. bones/22/scale = Vector3(1, 1, 1)
  337. bones/23/rotation = Quaternion(-0.223634, -0.0200767, -0.00280148, 0.974462)
  338. bones/24/rotation = Quaternion(-0.327697, -0.119629, -0.00204963, 0.937176)
  339. bones/25/rotation = Quaternion(-0.399323, -0.0721907, -0.0193872, 0.913758)
  340. bones/25/scale = Vector3(0.889841, 0.889842, 0.889842)
  341. bones/27/rotation = Quaternion(-0.0888901, 0.0888909, -0.7015, 0.701495)
  342. bones/28/rotation = Quaternion(1.58699e-05, -0.00803924, 0.441245, 0.897351)
  343. bones/28/scale = Vector3(0.999995, 1.00001, 1)
  344. bones/29/rotation = Quaternion(0.00420373, 0.00610656, 0.137006, 0.990542)
  345. bones/29/scale = Vector3(1.00001, 0.99999, 1)
  346. bones/30/rotation = Quaternion(-1.33037e-05, -0.00407947, 0.499415, 0.866353)
  347. bones/30/scale = Vector3(1, 1, 1)
  348. bones/32/rotation = Quaternion(7.54865e-07, 3.871e-06, 0.00634164, 0.99998)
  349. bones/33/rotation = Quaternion(-0.12654, -0.0226416, -0.00765869, 0.991674)
  350. bones/33/scale = Vector3(1, 1, 1)
  351. bones/34/rotation = Quaternion(-0.303039, -0.0198361, -0.00603676, 0.952752)
  352. bones/34/scale = Vector3(1, 1, 1)
  353. bones/35/rotation = Quaternion(-0.423144, -0.118769, -0.0144477, 0.898128)
  354. bones/36/rotation = Quaternion(-0.446942, -0.0682468, -0.0287852, 0.891491)
  355. bones/36/scale = Vector3(0.816006, 0.816006, 0.816006)
  356. bones/38/rotation = Quaternion(7.41766e-07, 3.87221e-06, -2.75917e-07, 1)
  357. bones/39/rotation = Quaternion(-0.101037, -0.011256, -0.00246814, 0.994816)
  358. bones/40/rotation = Quaternion(-0.381505, -0.0103918, -0.0107339, 0.924246)
  359. bones/41/rotation = Quaternion(-0.520826, -0.116413, -0.0276248, 0.845237)
  360. bones/42/rotation = Quaternion(-0.500269, -0.0695299, -0.0274405, 0.862638)
  361. bones/42/scale = Vector3(0.73131, 0.73131, 0.73131)
  362. bones/45/rotation = Quaternion(0.186019, -0.128669, 0.965718, 0.127399)
  363. bones/47/rotation = Quaternion(-0.419164, 0.0216893, 0.15384, 0.894519)
  364. bones/48/rotation = Quaternion(0.0736113, 0.0726542, 0.579908, 0.80809)
  365. bones/49/rotation = Quaternion(-0.306174, -0.0210002, -0.184505, 0.933689)
  366. bones/50/rotation = Quaternion(-0.338635, 0.367984, 0.432891, 0.750013)
  367. bones/51/rotation = Quaternion(-0.585568, 0.0937331, 0.0164604, 0.805017)
  368. bones/52/position = Vector3(-1.4302e-09, 0.250038, 1.97919e-07)
  369. bones/52/rotation = Quaternion(-0.124868, -0.0269933, 0.25772, 0.957737)
  370. bones/53/rotation = Quaternion(-0.111972, -0.00775013, 0.206088, 0.972075)
  371. bones/53/scale = Vector3(1.00345, 1.00345, 1.00345)
  372. bones/54/position = Vector3(-0.0193486, 0.120204, 0.0407552)
  373. bones/55/rotation = Quaternion(0.0015298, -0.0653359, 0.997819, 0.00923565)
  374. bones/56/rotation = Quaternion(0.0169521, -0.0175001, 0.995679, 0.0896087)
  375. bones/56/scale = Vector3(0.989954, 0.989954, 0.989954)
  376. bones/58/rotation = Quaternion(-0.0985083, 0.0273247, 0.0167018, 0.994621)
  377. bones/58/scale = Vector3(1, 1, 0.99999)
  378. bones/59/rotation = Quaternion(-0.187347, 0.0229019, 0.0064734, 0.982005)
  379. bones/59/scale = Vector3(1.00001, 0.999999, 0.99999)
  380. bones/60/rotation = Quaternion(-0.285803, 0.114312, -0.0480191, 0.950234)
  381. bones/60/scale = Vector3(1.00003, 0.999986, 0.999971)
  382. bones/61/rotation = Quaternion(-0.312595, 0.073681, 0.0125882, 0.946941)
  383. bones/61/scale = Vector3(0.924566, 0.924566, 0.924566)
  384. bones/63/rotation = Quaternion(-0.117302, -0.115236, 0.68101, 0.713573)
  385. bones/64/rotation = Quaternion(5.91205e-05, 0.00791334, -0.501376, 0.865194)
  386. bones/64/scale = Vector3(0.999964, 1.00002, 1)
  387. bones/65/rotation = Quaternion(0.00393461, -0.00597093, -0.148322, 0.988913)
  388. bones/65/scale = Vector3(0.999961, 1.00004, 0.999999)
  389. bones/66/rotation = Quaternion(-0.000325422, 0.00404374, -0.561819, 0.82725)
  390. bones/66/scale = Vector3(0.996911, 0.996911, 0.996911)
  391. bones/69/rotation = Quaternion(-0.109153, 0.0284579, 0.0269208, 0.993253)
  392. bones/69/scale = Vector3(1, 1, 0.99999)
  393. bones/70/rotation = Quaternion(-0.251308, 0.0241193, 0.00924757, 0.967562)
  394. bones/70/scale = Vector3(1.00001, 0.999998, 0.999988)
  395. bones/71/rotation = Quaternion(-0.352137, 0.112302, -0.0569356, 0.927441)
  396. bones/71/scale = Vector3(1.00003, 0.99997, 0.999986)
  397. bones/72/rotation = Quaternion(-0.384557, 0.0700655, 0.0240215, 0.920125)
  398. bones/72/scale = Vector3(0.880827, 0.880827, 0.880827)
  399. bones/75/rotation = Quaternion(-0.4569, 0.0708045, 0.0239608, 0.886372)
  400. bones/75/scale = Vector3(0.780309, 0.780309, 0.780309)
  401. bones/77/rotation = Quaternion(-0.0828385, 0.0321456, 0.0221882, 0.995797)
  402. bones/77/scale = Vector3(1, 1, 0.999991)
  403. bones/78/rotation = Quaternion(-0.349531, 0.0259084, 0.0119412, 0.936491)
  404. bones/78/scale = Vector3(1.00001, 0.999996, 0.999989)
  405. bones/79/rotation = Quaternion(-0.469271, 0.107076, -0.0736442, 0.873439)
  406. bones/79/scale = Vector3(1.00002, 0.999946, 1.00001)
  407. bones/81/rotation = Quaternion(-0.148796, -0.0891897, 0.979539, 0.102021)
  408. bones/81/scale = Vector3(1.00003, 0.999998, 0.999962)
  409. bones/82/scale = Vector3(0.806007, 0.723313, 0.806006)
  410. bones/84/rotation = Quaternion(0.499984, -0.499985, 0.500014, 0.500017)
  411. bones/85/position = Vector3(-0.0039065, 0.0527363, 0.0957321)
  412. bones/85/rotation = Quaternion(0.499984, -0.499985, 0.500014, 0.500017)
  413. bones/86/position = Vector3(-0.00391032, 0.0565452, -0.0935266)
  414. bones/86/rotation = Quaternion(0.499984, -0.499985, 0.500014, 0.500017)
  415. bones/88/position = Vector3(-0.000285607, -1.42184e-06, 0.119667)
  416. bones/89/rotation = Quaternion(-1.7506e-05, 0.00750475, 0.999972, -3.46659e-05)
  417. bones/90/position = Vector3(-5.17157e-06, 0.109669, -0.0266081)
  418. bones/91/position = Vector3(0.000285683, 1.38812e-06, -0.119667)
  419. bones/92/position = Vector3(-4.48707e-06, 0.000595451, 0.0266991)
  420. bones/95/rotation = Quaternion(-0.338895, -0.0122859, 0.0156849, 0.940613)
  421. bones/96/rotation = Quaternion(0.108934, -0.103375, -0.461069, 0.874564)
  422. bones/97/rotation = Quaternion(-0.208635, 0.0507675, 0.348449, 0.912402)
  423. bones/98/rotation = Quaternion(0.999482, -0.0239992, -0.0103164, -0.0187867)
  424. bones/99/rotation = Quaternion(0.696042, 0.165202, 0.512428, -0.475029)
  425. bones/100/rotation = Quaternion(-0.0819212, -0.155679, 0.917821, 0.355891)
  426. bones/101/rotation = Quaternion(-0.17218, -0.186468, 0.962557, 0.0952239)
  427. bones/102/rotation = Quaternion(0.268698, 0.776738, -0.560177, 0.103352)
  428. bones/103/rotation = Quaternion(0.0829801, -0.0572629, 0.0478075, 0.993755)
  429. bones/104/rotation = Quaternion(-0.648625, 0.233316, 0.583944, 0.428787)
  430. bones/105/rotation = Quaternion(0.0611435, -0.143003, 0.859913, -0.48617)
  431. bones/106/rotation = Quaternion(0.136411, -0.162195, 0.940346, -0.266148)
  432. bones/107/rotation = Quaternion(-0.221683, 0.832237, -0.506095, -0.0458933)
  433. bones/108/rotation = Quaternion(0.0378666, 0.0507948, 0.00166699, 0.99799)
  434. bones/109/rotation = Quaternion(0.997678, 1.55608e-10, -9.53118e-10, -0.0681111)
  435. bones/110/rotation = Quaternion(0.996834, -1.69336e-09, -1.05908e-09, -0.0795101)
  436. bones/111/rotation = Quaternion(0.996834, -7.12178e-10, -1.37154e-10, -0.07951)
  437. bones/112/rotation = Quaternion(0.997172, -0.0328163, -0.000303809, -0.0676023)
  438. bones/113/rotation = Quaternion(0.998802, 0.0160917, 0.00333426, -0.0461032)
  439. bones/114/position = Vector3(0.0938711, 0.109066, 0.127203)
  440. bones/114/rotation = Quaternion(-0.0292346, 0.744869, 0.666065, 0.0259548)
  441. bones/115/position = Vector3(-0.10908, 0.106909, 0.118516)
  442. bones/115/rotation = Quaternion(-0.0253696, 0.744163, 0.666772, 0.0315073)
  443. bones/116/rotation = Quaternion(0.939816, 0.0249813, -0.0112331, 0.340583)
  444. bones/116/scale = Vector3(1, 1.00001, 1)
  445. bones/117/rotation = Quaternion(0.351079, 1.7853e-07, -1.47885e-07, 0.936346)
  446. bones/117/scale = Vector3(1, 1, 0.999994)
  447. bones/118/rotation = Quaternion(0.201865, -1.47505e-09, -4.2026e-10, 0.979413)
  448. bones/118/scale = Vector3(1.00883, 1.00883, 1.00883)
  449. bones/119/position = Vector3(1.42587e-08, 0.4473, -2.29773e-08)
  450. bones/119/rotation = Quaternion(-0.545063, -0.0910354, -0.00808338, 0.833399)
  451. bones/119/scale = Vector3(1, 1, 1)
  452. bones/120/rotation = Quaternion(1.56907e-08, 0.952453, -0.304684, -4.09344e-08)
  453. bones/121/rotation = Quaternion(-0.384436, 7.88953e-10, -4.0391e-09, 0.923152)
  454. bones/122/position = Vector3(-9.64627e-08, 0.0875612, -0.124141)
  455. bones/122/rotation = Quaternion(0.968349, -2.76395e-07, 9.86313e-09, 0.249601)
  456. bones/122/scale = Vector3(1, 1, 1.00005)
  457. bones/123/position = Vector3(7.94158e-09, 0.059061, -0.129652)
  458. bones/124/rotation = Quaternion(0.937661, -0.0602395, 0.0539459, 0.338012)
  459. bones/124/scale = Vector3(1, 1.00001, 1)
  460. bones/125/rotation = Quaternion(0.217514, 7.71303e-08, -1.85777e-08, 0.976057)
  461. bones/125/scale = Vector3(1, 1, 0.999998)
  462. bones/126/rotation = Quaternion(0.107894, 2.32256e-09, 6.17316e-10, 0.994162)
  463. bones/126/scale = Vector3(1.02987, 1.02987, 1.02987)
  464. bones/127/position = Vector3(0.0175439, 0.447091, -0.00175865)
  465. bones/127/rotation = Quaternion(-0.594882, 0.0660834, -0.0436333, 0.799903)
  466. bones/127/scale = Vector3(1, 1, 1)
  467. bones/128/rotation = Quaternion(1.63645e-08, 0.947938, -0.318456, -4.07991e-08)
  468. bones/129/rotation = Quaternion(-0.384436, -5.86263e-10, 2.3708e-09, 0.923152)
  469. bones/130/position = Vector3(9.76118e-08, 0.0872776, -0.124117)
  470. bones/130/rotation = Quaternion(0.987741, -5.5179e-07, 2.6384e-08, 0.156104)
  471. bones/130/scale = Vector3(1, 1, 1.00006)
  472. bones/131/position = Vector3(-5.2942e-09, 0.0572106, -0.129741)
  473. bones/132/position = Vector3(0.179208, 1.84115, 1.06563)
  474. bones/133/position = Vector3(-0.096583, 1.84115, 1.06563)
  475. bones/134/position = Vector3(0.305174, 1.64498, -0.234249)
  476. bones/135/position = Vector3(-0.108986, 1.41753, -0.159486)
  477. bones/135/rotation = Quaternion(0.998099, -2.22234e-10, 0.0616301, 3.59907e-09)
  478. bones/136/position = Vector3(0.0453597, 2.69151, 7.7703)
  479. bones/137/position = Vector3(0.52074, 2.41179, -0.0939467)
  480. bones/137/rotation = Quaternion(-0.707078, 0.00643217, -0.00643216, 0.707078)
  481. bones/138/position = Vector3(0.70972, 2.53617, -0.398862)
  482. bones/139/position = Vector3(-0.356286, 2.42233, -0.0893181)
  483. bones/139/rotation = Quaternion(-0.707078, 0.00643217, -0.00643216, 0.707078)
  484. bones/140/position = Vector3(-0.339721, 2.74247, -0.379949)
  485. bones/141/position = Vector3(0.137896, 1.38787, -0.626978)
  486. bones/142/position = Vector3(-0.137896, 1.386, -0.626978)
  487. bones/143/position = Vector3(-0.00372222, 3.22285, -1.24379)
  488. bones/143/rotation = Quaternion(0.998271, 0, 0.0587749, 0)
  489. bones/143/scale = Vector3(1, 1.04169, 1)
  490. [node name="GunBone" type="BoneAttachment3D" parent="PlayerModel/Robot_Skeleton/Skeleton3D" index="5"]
  491. transform = Transform3D(0.0164817, 0.449421, -0.897038, 0.335301, 0.843116, 0.428572, 0.945765, -0.306742, -0.136309, -0.430291, 1.09381, -0.105334)
  492. bone_name = "hand.R"
  493. bone_idx = 55
  494. [node name="ShootFrom" type="Marker3D" parent="PlayerModel/Robot_Skeleton/Skeleton3D/GunBone"]
  495. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.4, 0)
  496. [node name="ShootParticle" type="CPUParticles3D" parent="PlayerModel/Robot_Skeleton/Skeleton3D/GunBone/ShootFrom"]
  497. transform = Transform3D(1, 2.04891e-08, 0, 3.21306e-08, 1, 5.58794e-09, 0, 0, 1, 0, 0, 0)
  498. material_override = ExtResource("9")
  499. cast_shadow = 0
  500. emitting = false
  501. amount = 10
  502. lifetime = 0.3
  503. one_shot = true
  504. explosiveness = 0.79
  505. mesh = SubResource("2")
  506. direction = Vector3(0, 0, -1)
  507. spread = 15.0
  508. gravity = Vector3(0, -3, 0)
  509. [node name="MuzzleFlash" type="CPUParticles3D" parent="PlayerModel/Robot_Skeleton/Skeleton3D/GunBone/ShootFrom"]
  510. transform = Transform3D(1, 0, -2.00234e-08, 1.21072e-08, -4.37722e-08, -1, -2.98023e-08, 1, -4.74975e-08, 0, 0, 0)
  511. material_override = SubResource("3")
  512. cast_shadow = 0
  513. emitting = false
  514. amount = 1
  515. lifetime = 0.1
  516. one_shot = true
  517. explosiveness = 1.0
  518. mesh = ExtResource("10")
  519. gravity = Vector3(0, 0, 0)
  520. scale_amount_min = 0.75
  521. scale_amount_max = 0.75
  522. scale_amount_curve = SubResource("6")
  523. color = Color(0.12549, 0.627451, 1, 0.376471)
  524. [node name="AnimationPlayer" parent="PlayerModel" index="1"]
  525. callback_mode_process = 0
  526. [node name="Decal" type="Decal" parent="PlayerModel"]
  527. size = Vector3(1.5, 2, 1.5)
  528. texture_albedo = ExtResource("7_5auco")
  529. albedo_mix = 0.5
  530. upper_fade = 3.63772
  531. lower_fade = 1.0
  532. [node name="RootMotionView" type="RootMotionView" parent="."]
  533. animation_path = NodePath("../AnimationTree")
  534. [node name="AnimationTree" type="AnimationTree" parent="."]
  535. root_node = NodePath("../PlayerModel")
  536. root_motion_track = NodePath("Robot_Skeleton/Skeleton3D:root")
  537. callback_mode_process = 0
  538. tree_root = SubResource("30")
  539. anim_player = NodePath("../PlayerModel/AnimationPlayer")
  540. parameters/aim/add_amount = 0.0
  541. parameters/eye_blend/blend_amount = 1.0
  542. parameters/land/active = false
  543. parameters/land/internal_active = false
  544. parameters/land/request = 0
  545. parameters/state/current_state = "walk"
  546. parameters/state/transition_request = ""
  547. parameters/state/current_index = 1
  548. parameters/strafe/blend_position = Vector2(0, 0)
  549. parameters/strafe_speed/scale = 1.2
  550. parameters/walk/blend_position = Vector2(0.387, 0.043)
  551. parameters/walk_speed/scale = 1.3
  552. [node name="CapsuleShape3D" type="CollisionShape3D" parent="."]
  553. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
  554. shape = SubResource("31")
  555. [node name="SeparationRayShape3D" type="CollisionShape3D" parent="."]
  556. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 1.00357, 0)
  557. shape = SubResource("32")
  558. [node name="CameraBase" type="Node3D" parent="."]
  559. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
  560. [node name="CameraRot" type="Node3D" parent="CameraBase"]
  561. [node name="SpringArm3D" type="SpringArm3D" parent="CameraBase/CameraRot"]
  562. transform = Transform3D(-1, -1.11444e-07, 3.06191e-07, 0, 0.939693, 0.34202, -3.25841e-07, 0.34202, -0.939693, 0, 0, 0)
  563. spring_length = 2.4
  564. [node name="Camera3D" type="Camera3D" parent="CameraBase/CameraRot/SpringArm3D"]
  565. transform = Transform3D(1, 1.42109e-14, -2.84217e-14, 0, 1, 0, 0, 0, 1, 0, 0, 0)
  566. far = 300.0
  567. script = ExtResource("8")
  568. [node name="Animation" type="AnimationPlayer" parent="CameraBase"]
  569. libraries = {
  570. "": SubResource("AnimationLibrary_keqb5")
  571. }
  572. [node name="Crosshair" type="TextureRect" parent="."]
  573. self_modulate = Color(1, 1, 1, 0)
  574. anchors_preset = 8
  575. anchor_left = 0.5
  576. anchor_top = 0.5
  577. anchor_right = 0.5
  578. anchor_bottom = 0.5
  579. offset_left = -8.0
  580. offset_top = -8.0
  581. offset_right = 8.0
  582. offset_bottom = 8.0
  583. grow_horizontal = 2
  584. grow_vertical = 2
  585. texture = ExtResource("3")
  586. expand_mode = 1
  587. stretch_mode = 4
  588. [node name="ColorRect" type="ColorRect" parent="."]
  589. modulate = Color(1, 1, 1, 0)
  590. anchors_preset = 15
  591. anchor_right = 1.0
  592. anchor_bottom = 1.0
  593. grow_horizontal = 2
  594. grow_vertical = 2
  595. color = Color(0, 0, 0, 1)
  596. [node name="SoundEffects" type="Node" parent="."]
  597. [node name="Step" type="AudioStreamPlayer" parent="SoundEffects"]
  598. stream = ExtResource("4")
  599. [node name="Jump" type="AudioStreamPlayer" parent="SoundEffects"]
  600. stream = ExtResource("5")
  601. [node name="Land" type="AudioStreamPlayer" parent="SoundEffects"]
  602. stream = ExtResource("6")
  603. [node name="Shoot" type="AudioStreamPlayer" parent="SoundEffects"]
  604. stream = SubResource("35")
  605. [node name="FireCooldown" type="Timer" parent="."]
  606. wait_time = 0.4
  607. one_shot = true
  608. autostart = true
  609. [node name="BulletCache" parent="." instance=ExtResource("14_bx31p")]
  610. visible = false
  611. [node name="ExplosionAudio" parent="BulletCache" index="5"]
  612. volume_db = -80.0
  613. [editable path="PlayerModel"]
  614. [editable path="BulletCache"]