почин диалогов, пратиклы от выстлеров

This commit is contained in:
2026-07-25 23:26:07 +07:00
parent af01cf14e7
commit 8027f1875a
343 changed files with 13727 additions and 176 deletions
+97 -97
View File
@@ -6,50 +6,50 @@
[ext_resource type="Script" uid="uid://bcka80usfl4am" path="res://addons/Weapons/Scripts/WeaponSlotScript.gd" id="3_5m0nr"]
[ext_resource type="Texture2D" uid="uid://dq6lmmv7chko6" path="res://addons/Addon Assets/Weapon Textures/atlass_1_diffuse.png" id="4_cl3c4"]
[ext_resource type="AudioStream" uid="uid://dreqp22wgbfnn" path="res://Sound/effect/pistol.mp3" id="6_hhoex"]
[ext_resource type="Animation" uid="uid://b8ath7cwbml8l" path="res://addons/custmode/animation/A_TPose.res" id="7_5pjsm"]
[ext_resource type="Animation" uid="uid://d165d4oodib4e" path="res://addons/custmode/animation/Walk.res" id="8_bk1l8"]
[ext_resource type="Animation" uid="uid://bdvhn7ocslg6e" path="res://addons/custmode/animation/Crouch_Fwd.res" id="11_y7ubl"]
[ext_resource type="Animation" uid="uid://blnyx7ppdbxfv" path="res://addons/custmode/animation/Crouch_Idle.res" id="12_8i7yh"]
[ext_resource type="Animation" uid="uid://dc388cjyled1y" path="res://addons/custmode/animation/Dance.res" id="13_3icxf"]
[ext_resource type="Animation" uid="uid://bte7ov3ygn7ew" path="res://addons/custmode/animation/Death01.res" id="14_6q34h"]
[ext_resource type="Animation" uid="uid://c1gfe0l7ikdxh" path="res://addons/custmode/animation/Driving.res" id="15_6lhqc"]
[ext_resource type="Animation" uid="uid://c35olcv36un30" path="res://addons/custmode/animation/A_TPose.res" id="7_5pjsm"]
[ext_resource type="Animation" uid="uid://blaskiatvl25f" path="res://addons/custmode/animation/Walk.res" id="8_bk1l8"]
[ext_resource type="Animation" uid="uid://c0gxmcis6551r" path="res://addons/custmode/animation/Crouch_Fwd.res" id="11_y7ubl"]
[ext_resource type="Animation" uid="uid://co8jgyh1w0ocf" path="res://addons/custmode/animation/Crouch_Idle.res" id="12_8i7yh"]
[ext_resource type="Animation" uid="uid://cr5w0k7jvp7qu" path="res://addons/custmode/animation/Dance.res" id="13_3icxf"]
[ext_resource type="Animation" uid="uid://de0euajjogn7u" path="res://addons/custmode/animation/Death01.res" id="14_6q34h"]
[ext_resource type="Animation" uid="uid://bhg2fcoy0sch4" path="res://addons/custmode/animation/Driving.res" id="15_6lhqc"]
[ext_resource type="Script" uid="uid://dgt4q3ev7fhh5" path="res://addons/Weapons/Scripts/AnimationManagerScriptEM.gd" id="15_mtl0k"]
[ext_resource type="Animation" uid="uid://dnhs0834kmfot" path="res://addons/custmode/animation/Fixing_Kneeling.res" id="16_bcppq"]
[ext_resource type="Animation" uid="uid://0ghqsp8r28qi" path="res://addons/custmode/animation/Hit_Chest.res" id="17_xtui3"]
[ext_resource type="Animation" uid="uid://c13odo6tpdlhl" path="res://addons/custmode/animation/Hit_Head.res" id="18_t7c4t"]
[ext_resource type="Animation" uid="uid://btmsllqgwxeod" path="res://addons/custmode/animation/Idle.res" id="19_qaqsw"]
[ext_resource type="Animation" uid="uid://dokn4n138um0s" path="res://addons/custmode/animation/Idle_Talking.res" id="20_gvqfe"]
[ext_resource type="Animation" uid="uid://dhhb0qvnbvy62" path="res://addons/custmode/animation/Idle_Torch.res" id="21_kff1j"]
[ext_resource type="Animation" uid="uid://c5gfjwx36pttr" path="res://addons/custmode/animation/Interact.res" id="22_ok78s"]
[ext_resource type="Animation" uid="uid://dtprok25racis" path="res://addons/custmode/animation/Jog_Fwd.res" id="23_kcomw"]
[ext_resource type="Animation" uid="uid://dlr1201r4w5t" path="res://addons/custmode/animation/Jump.res" id="24_rpcg2"]
[ext_resource type="Animation" uid="uid://dpesyq8bmc5fd" path="res://addons/custmode/animation/Jump_Land.res" id="25_bwr3g"]
[ext_resource type="Animation" uid="uid://2tovxldobs2d" path="res://addons/custmode/animation/Jump_Start.res" id="26_rh4x8"]
[ext_resource type="Animation" uid="uid://d1hcl7v0xal2t" path="res://addons/custmode/animation/PickUp_Table.res" id="27_gj82t"]
[ext_resource type="Animation" uid="uid://bal6arlnngrep" path="res://addons/custmode/animation/Pistol_Aim_Down.res" id="28_mmerm"]
[ext_resource type="Animation" uid="uid://chn3tereurjjb" path="res://addons/custmode/animation/Pistol_Aim_Neutral.res" id="29_dr5nx"]
[ext_resource type="Animation" uid="uid://bls4r7aqru13l" path="res://addons/custmode/animation/Pistol_Aim_Up.res" id="30_hbekp"]
[ext_resource type="Animation" uid="uid://8bm2sqhpekjh" path="res://addons/custmode/animation/Pistol_Idle.res" id="31_3xwyy"]
[ext_resource type="Animation" uid="uid://xbwf2cfy28n7" path="res://addons/custmode/animation/Pistol_Reload.res" id="32_ujn0f"]
[ext_resource type="Animation" uid="uid://bdrjeufa72ucl" path="res://addons/custmode/animation/Pistol_Shoot.res" id="33_loy4g"]
[ext_resource type="Animation" uid="uid://bjckrc2awvwqr" path="res://addons/custmode/animation/Punch_Cross.res" id="34_cm05l"]
[ext_resource type="Animation" uid="uid://cnfrasix7pn2l" path="res://addons/custmode/animation/Punch_Jab.res" id="35_50ibr"]
[ext_resource type="Animation" uid="uid://cx3pnahv8bp21" path="res://addons/custmode/animation/Push.res" id="36_dicmq"]
[ext_resource type="Animation" uid="uid://pk0axmkc08di" path="res://addons/custmode/animation/Roll.res" id="37_g8cbt"]
[ext_resource type="Animation" uid="uid://pa4o7yjp7yri" path="res://addons/custmode/animation/Sitting_Enter.res" id="38_m7h0s"]
[ext_resource type="Animation" uid="uid://b3saarh34pgbg" path="res://addons/custmode/animation/Sitting_Exit.res" id="39_pqcq8"]
[ext_resource type="Animation" uid="uid://btbfgqisobg7y" path="res://addons/custmode/animation/Sitting_Idle.res" id="40_e63uj"]
[ext_resource type="Animation" uid="uid://b4lfimax1mr4h" path="res://addons/custmode/animation/Sitting_Talking.res" id="41_7xyri"]
[ext_resource type="Animation" uid="uid://bqqdy71fsaqd2" path="res://addons/custmode/animation/Spell_Simple_Enter.res" id="42_ju1a8"]
[ext_resource type="Animation" uid="uid://dnppagy4wcq87" path="res://addons/custmode/animation/Fixing_Kneeling.res" id="16_bcppq"]
[ext_resource type="Animation" uid="uid://ds4cvbr1bmaqy" path="res://addons/custmode/animation/Hit_Chest.res" id="17_xtui3"]
[ext_resource type="Animation" uid="uid://ckankjg0stocn" path="res://addons/custmode/animation/Hit_Head.res" id="18_t7c4t"]
[ext_resource type="Animation" uid="uid://cdivfofibnlng" path="res://addons/custmode/animation/Idle.res" id="19_qaqsw"]
[ext_resource type="Animation" uid="uid://b2j75v1mna2ym" path="res://addons/custmode/animation/Idle_Talking.res" id="20_gvqfe"]
[ext_resource type="Animation" uid="uid://dboe5ydn4hmwt" path="res://addons/custmode/animation/Idle_Torch.res" id="21_kff1j"]
[ext_resource type="Animation" uid="uid://clgac16bw0p37" path="res://addons/custmode/animation/Interact.res" id="22_ok78s"]
[ext_resource type="Animation" uid="uid://cbchiuflrpagi" path="res://addons/custmode/animation/Jog_Fwd.res" id="23_kcomw"]
[ext_resource type="Animation" uid="uid://bk2tx4hhifpvl" path="res://addons/custmode/animation/Jump.res" id="24_rpcg2"]
[ext_resource type="Animation" uid="uid://be4fy6sct8o5m" path="res://addons/custmode/animation/Jump_Land.res" id="25_bwr3g"]
[ext_resource type="Animation" uid="uid://ct7al2n03wbbk" path="res://addons/custmode/animation/Jump_Start.res" id="26_rh4x8"]
[ext_resource type="Animation" uid="uid://ceb0f7evfuq61" path="res://addons/custmode/animation/PickUp_Table.res" id="27_gj82t"]
[ext_resource type="Animation" uid="uid://2io8pkfi0qtu" path="res://addons/custmode/animation/Pistol_Aim_Down.res" id="28_mmerm"]
[ext_resource type="Animation" uid="uid://duh6km0eawovj" path="res://addons/custmode/animation/Pistol_Aim_Neutral.res" id="29_dr5nx"]
[ext_resource type="Animation" uid="uid://dh2wwda8pe6nv" path="res://addons/custmode/animation/Pistol_Aim_Up.res" id="30_hbekp"]
[ext_resource type="Animation" uid="uid://cbdpuchvoad1e" path="res://addons/custmode/animation/Pistol_Idle.res" id="31_3xwyy"]
[ext_resource type="Animation" uid="uid://dbcxdaddfi8tn" path="res://addons/custmode/animation/Pistol_Reload.res" id="32_ujn0f"]
[ext_resource type="Animation" uid="uid://qyce3pmr4m7m" path="res://addons/custmode/animation/Pistol_Shoot.res" id="33_loy4g"]
[ext_resource type="Animation" uid="uid://dc2vl3cx0651v" path="res://addons/custmode/animation/Punch_Cross.res" id="34_cm05l"]
[ext_resource type="Animation" uid="uid://dy86564igvsna" path="res://addons/custmode/animation/Punch_Jab.res" id="35_50ibr"]
[ext_resource type="Animation" uid="uid://c5qodyimgs2y4" path="res://addons/custmode/animation/Push.res" id="36_dicmq"]
[ext_resource type="Animation" uid="uid://b41g83vv8c0gm" path="res://addons/custmode/animation/Roll.res" id="37_g8cbt"]
[ext_resource type="Animation" uid="uid://bhev5pvbb67yf" path="res://addons/custmode/animation/Sitting_Enter.res" id="38_m7h0s"]
[ext_resource type="Animation" uid="uid://djqh85lmqx2t1" path="res://addons/custmode/animation/Sitting_Exit.res" id="39_pqcq8"]
[ext_resource type="Animation" uid="uid://dwwg0iqmrs0yp" path="res://addons/custmode/animation/Sitting_Idle.res" id="40_e63uj"]
[ext_resource type="Animation" uid="uid://tc4m782dv73s" path="res://addons/custmode/animation/Sitting_Talking.res" id="41_7xyri"]
[ext_resource type="Animation" uid="uid://yh7sv8gxjwpn" path="res://addons/custmode/animation/Spell_Simple_Enter.res" id="42_ju1a8"]
[ext_resource type="Animation" uid="uid://bq7f4r7gklu0i" path="res://addons/custmode/animation/Spell_Simple_Exit.res" id="43_k3wov"]
[ext_resource type="Animation" uid="uid://bt01skknutr3c" path="res://addons/custmode/animation/Spell_Simple_Idle.res" id="44_6tpnd"]
[ext_resource type="Animation" uid="uid://ccqr5rg0vnep6" path="res://addons/custmode/animation/Spell_Simple_Shoot.res" id="45_57yqx"]
[ext_resource type="Animation" uid="uid://dj74gtiaa72hr" path="res://addons/custmode/animation/Sprint.res" id="46_laroa"]
[ext_resource type="Animation" uid="uid://p3xrj384j36m" path="res://addons/custmode/animation/Swim_Fwd.res" id="47_1p3mf"]
[ext_resource type="Animation" uid="uid://l3pt3nbdkdw5" path="res://addons/custmode/animation/Swim_Idle.res" id="48_106kr"]
[ext_resource type="Animation" uid="uid://dm1a12q60iry6" path="res://addons/custmode/animation/Sword_Attack.res" id="49_24tkw"]
[ext_resource type="Animation" uid="uid://bjjpdw32gxhls" path="res://addons/custmode/animation/Sword_Idle.res" id="50_8bl7d"]
[ext_resource type="Animation" uid="uid://bedmtrfaheqvj" path="res://addons/custmode/animation/Walk_Formal.res" id="52_yk4tx"]
[ext_resource type="Animation" uid="uid://cbincpbl7io6d" path="res://addons/custmode/animation/Spell_Simple_Idle.res" id="44_6tpnd"]
[ext_resource type="Animation" uid="uid://de3tfnj30od6q" path="res://addons/custmode/animation/Spell_Simple_Shoot.res" id="45_57yqx"]
[ext_resource type="Animation" uid="uid://c5bpxmnpopygc" path="res://addons/custmode/animation/Sprint.res" id="46_laroa"]
[ext_resource type="Animation" uid="uid://ccf1i0k56r3m1" path="res://addons/custmode/animation/Swim_Fwd.res" id="47_1p3mf"]
[ext_resource type="Animation" uid="uid://iobwmvj658ec" path="res://addons/custmode/animation/Swim_Idle.res" id="48_106kr"]
[ext_resource type="Animation" uid="uid://dywobbcy165i" path="res://addons/custmode/animation/Sword_Attack.res" id="49_24tkw"]
[ext_resource type="Animation" uid="uid://dccj4e647csbg" path="res://addons/custmode/animation/Sword_Idle.res" id="50_8bl7d"]
[ext_resource type="Animation" uid="uid://cq2fn2cjkdvi6" path="res://addons/custmode/animation/Walk_Formal.res" id="52_yk4tx"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_jkuv2"]
@@ -451,8 +451,8 @@ bones/1/name = "Hips"
bones/1/parent = 0
bones/1/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9167, -0.05010003)
bones/1/enabled = true
bones/1/position = Vector3(0.005320986, 0.87717515, -0.086511455)
bones/1/rotation = Quaternion(-0.046152774, -0.11588916, -0.00539079, 0.9921747)
bones/1/position = Vector3(0, 0.9167, -0.050100047)
bones/1/rotation = Quaternion(2.682209e-07, 0, 0, 1)
bones/1/scale = Vector3(1, 1, 1)
bones/2/name = "Spine"
bones/2/parent = 1
@@ -466,77 +466,77 @@ bones/3/parent = 2
bones/3/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.12309997, 0.015199981)
bones/3/enabled = true
bones/3/position = Vector3(0, 0.12309997, 0.015199981)
bones/3/rotation = Quaternion(0.0917262, 0.00011248294, 0.00025431308, 0.9957843)
bones/3/rotation = Quaternion(-1.4528631e-07, 0, 0, 1)
bones/3/scale = Vector3(1, 1, 1)
bones/4/name = "UpperChest"
bones/4/parent = 3
bones/4/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.14120016, -0.004500025)
bones/4/enabled = true
bones/4/position = Vector3(0, 0.14120016, -0.004500025)
bones/4/rotation = Quaternion(0.09172601, 0.00032000963, 0.00024771612, 0.9957843)
bones/4/rotation = Quaternion(-4.4703484e-08, 0, 0, 1)
bones/4/scale = Vector3(1, 1, 1)
bones/5/name = "Neck"
bones/5/parent = 4
bones/5/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.17280002, -0.005600037)
bones/5/enabled = true
bones/5/position = Vector3(0, 0.17280002, -0.005600037)
bones/5/rotation = Quaternion(-0.09172598, -0.0002165478, -0.00026058123, 0.9957842)
bones/5/rotation = Quaternion(2.2351742e-08, 0, 0, 1)
bones/5/scale = Vector3(1, 1, 1)
bones/6/name = "Head"
bones/6/parent = 5
bones/6/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.081100024, 0.0155999875)
bones/6/enabled = true
bones/6/position = Vector3(0, 0.081100024, 0.0155999875)
bones/6/rotation = Quaternion(0.07855293, 0.09571718, 0.008007519, 0.99227196)
bones/6/rotation = Quaternion(2.3841858e-07, 0, 0, 1)
bones/6/scale = Vector3(1, 1, 1)
bones/7/name = "LeftShoulder"
bones/7/parent = 4
bones/7/rest = Transform3D(0, 1, 0, 0, 0, 1, 1, 0, 0, 0.0188, 0.14310004, 0.07629998)
bones/7/enabled = true
bones/7/position = Vector3(0.0188, 0.14310004, 0.07629998)
bones/7/rotation = Quaternion(0.48748112, 0.5266154, 0.5263815, -0.4560275)
bones/7/rotation = Quaternion(0.5, 0.49999988, 0.5, -0.5000001)
bones/7/scale = Vector3(1, 1, 1)
bones/8/name = "LeftUpperArm"
bones/8/parent = 7
bones/8/rest = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, -1, -0.13680005, 0.17309996, -0.01710007)
bones/8/enabled = true
bones/8/position = Vector3(-0.13680005, 0.17309996, -0.01710007)
bones/8/rotation = Quaternion(-0.0069755604, 0.8185415, -0.57432073, 0.009837112)
bones/8/rotation = Quaternion(1.6391276e-07, 1, 4.4703476e-08, -2.9802319e-08)
bones/8/scale = Vector3(1, 1, 1)
bones/9/name = "LeftLowerArm"
bones/9/parent = 8
bones/9/rest = Transform3D(0, 0, -1, 0, 1, 0, 1, 0, 0, 0.004699965, 0.27440003, 3.769936e-08)
bones/9/enabled = true
bones/9/position = Vector3(0.004699965, 0.27440003, 3.769936e-08)
bones/9/rotation = Quaternion(0.123004995, -0.69467515, 0.122343, 0.6980892)
bones/9/rotation = Quaternion(-1.1590383e-07, -0.70710695, -1.0536709e-08, 0.7071066)
bones/9/scale = Vector3(1, 1, 1)
bones/10/name = "LeftHand"
bones/10/parent = 9
bones/10/rest = Transform3D(0, 0, 1, 0, 1, 0, -1, 0, 0, 2.0133815e-08, 0.27260005, 0.004700036)
bones/10/enabled = true
bones/10/position = Vector3(2.0133815e-08, 0.27260005, 0.004700036)
bones/10/rotation = Quaternion(0.11753747, 0.70175403, 0.117251664, 0.69280463)
bones/10/rotation = Quaternion(-1.8751639e-07, 0.70710707, 1.07511596e-07, 0.7071065)
bones/10/scale = Vector3(1, 1, 1)
bones/11/name = "LeftIndexProximal"
bones/11/parent = 10
bones/11/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.03090003, 0.11989991, 0.001999812)
bones/11/enabled = true
bones/11/position = Vector3(-0.03090003, 0.11989991, 0.001999812)
bones/11/rotation = Quaternion(0.6295968, -1.1175871e-08, -4.4703484e-06, 0.77692205)
bones/11/rotation = Quaternion(3.5762793e-07, -3.725291e-07, 5.960465e-08, 1)
bones/11/scale = Vector3(1, 1, 1)
bones/12/name = "LeftIndexIntermediate"
bones/12/parent = 11
bones/12/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.097772e-09, 0.040700007, 1.25191555e-08)
bones/12/enabled = true
bones/12/position = Vector3(-4.097772e-09, 0.040700007, 1.25191555e-08)
bones/12/rotation = Quaternion(0.62334186, -1.5646218e-07, -4.380941e-06, 0.7819494)
bones/12/rotation = Quaternion(0, -1.1920929e-07, 5.9604645e-08, 1)
bones/12/scale = Vector3(1, 1, 1)
bones/13/name = "LeftIndexDistal"
bones/13/parent = 12
bones/13/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.0742177e-09, 0.034800045, 1.1683975e-08)
bones/13/enabled = true
bones/13/position = Vector3(-2.0742177e-09, 0.034800045, 1.1683975e-08)
bones/13/rotation = Quaternion(0.62334144, 2.9802322e-08, -4.61936e-06, 0.78194976)
bones/13/rotation = Quaternion(0, 0, 5.9604645e-08, 1)
bones/13/scale = Vector3(1, 1, 1)
bones/14/name = "index_04_leaf_l"
bones/14/parent = 13
@@ -550,21 +550,21 @@ bones/15/parent = 10
bones/15/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.005200028, 0.121599905, -0.00040022636)
bones/15/enabled = true
bones/15/position = Vector3(-0.005200028, 0.121599905, -0.00040022636)
bones/15/rotation = Quaternion(0.6288947, -0.029734856, -4.380941e-06, 0.7769217)
bones/15/rotation = Quaternion(3.1292439e-07, -2.3841858e-07, 5.9604645e-08, 1)
bones/15/scale = Vector3(1, 1, 1)
bones/16/name = "LeftMiddleIntermediate"
bones/16/parent = 15
bones/16/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0019999952, 0.04229999, 2.1621558e-08)
bones/16/enabled = true
bones/16/position = Vector3(0.0019999952, 0.04229999, 2.1621558e-08)
bones/16/rotation = Quaternion(0.62273234, -0.02755472, -4.4703484e-06, 0.7819496)
bones/16/rotation = Quaternion(-2.9802322e-08, -1.1920929e-07, 2.9802322e-08, 1)
bones/16/scale = Vector3(1, 1, 1)
bones/17/name = "LeftMiddleDistal"
bones/17/parent = 16
bones/17/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0014999973, 0.033899974, 1.615871e-07)
bones/17/enabled = true
bones/17/position = Vector3(0.0014999973, 0.033899974, 1.615871e-07)
bones/17/rotation = Quaternion(0.62266845, -0.02896142, -4.470349e-06, 0.78194964)
bones/17/rotation = Quaternion(0, -5.960466e-08, -2.980233e-08, 1)
bones/17/scale = Vector3(1, 1, 1)
bones/18/name = "middle_04_leaf_l"
bones/18/parent = 17
@@ -578,21 +578,21 @@ bones/19/parent = 10
bones/19/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.04079998, 0.10769992, 0.0015997506)
bones/19/enabled = true
bones/19/position = Vector3(0.04079998, 0.10769992, 0.0015997506)
bones/19/rotation = Quaternion(0.6630009, -0.044529773, 0.07369421, 0.74365056)
bones/19/rotation = Quaternion(3.4272674e-07, -2.831221e-07, 2.9802326e-08, 1)
bones/19/scale = Vector3(1, 1, 1)
bones/20/name = "LeftLittleIntermediate"
bones/20/parent = 19
bones/20/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0027000003, 0.040200002, 1.7218216e-10)
bones/20/enabled = true
bones/20/position = Vector3(0.0027000003, 0.040200002, 1.7218216e-10)
bones/20/rotation = Quaternion(0.6203661, -0.062293988, 0.015572846, 0.7816796)
bones/20/rotation = Quaternion(0, -1.0430813e-07, 5.9604645e-08, 1)
bones/20/scale = Vector3(1, 1, 1)
bones/21/name = "LeftLittleDistal"
bones/21/parent = 20
bones/21/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0018999914, 0.027600013, 2.2658543e-07)
bones/21/enabled = true
bones/21/position = Vector3(0.0018999914, 0.027600013, 2.2658543e-07)
bones/21/rotation = Quaternion(0.62192166, -0.04205151, -4.4107437e-06, 0.7819496)
bones/21/rotation = Quaternion(0, 0, 0, 1)
bones/21/scale = Vector3(1, 1, 1)
bones/22/name = "pinky_04_leaf_l"
bones/22/parent = 21
@@ -606,21 +606,21 @@ bones/23/parent = 10
bones/23/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.01709998, 0.1190999, -0.00010017503)
bones/23/enabled = true
bones/23/position = Vector3(0.01709998, 0.1190999, -0.00010017503)
bones/23/rotation = Quaternion(0.62919796, -0.022413934, -4.1425224e-06, 0.7769218)
bones/23/rotation = Quaternion(2.8312203e-07, -4.4703478e-07, 5.9604638e-08, 1)
bones/23/scale = Vector3(1, 1, 1)
bones/24/name = "LeftRingIntermediate"
bones/24/parent = 23
bones/24/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.001399991, 0.039300047, -1.0103322e-07)
bones/24/enabled = true
bones/24/position = Vector3(0.001399991, 0.039300047, -1.0103322e-07)
bones/24/rotation = Quaternion(0.62294686, -0.02217639, -4.5299535e-06, 0.7819498)
bones/24/rotation = Quaternion(2.9802322e-08, -8.940697e-08, 8.940697e-08, 1)
bones/24/scale = Vector3(1, 1, 1)
bones/25/name = "LeftRingDistal"
bones/25/parent = 24
bones/25/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0010999943, 0.030899974, -1.0082857e-07)
bones/25/enabled = true
bones/25/position = Vector3(0.0010999943, 0.030899974, -1.0082857e-07)
bones/25/rotation = Quaternion(0.6228981, -0.023505399, -4.470348e-06, 0.7819499)
bones/25/rotation = Quaternion(0, 0, -5.9604645e-08, 1)
bones/25/scale = Vector3(1, 1, 1)
bones/26/name = "ring_04_leaf_l"
bones/26/parent = 25
@@ -634,21 +634,21 @@ bones/27/parent = 10
bones/27/rest = Transform3D(0, -0.577, 0.816, 0, 0.816, 0.577, -1, 0, 0, -0.03360002, 0.02729993, 0.022799803)
bones/27/enabled = true
bones/27/position = Vector3(-0.03360002, 0.02729993, 0.022799803)
bones/27/rotation = Quaternion(-0.1238195, 0.71952313, 0.20183578, 0.6528534)
bones/27/rotation = Quaternion(-0.2141867, 0.67388695, 0.21418685, 0.67388755)
bones/27/scale = Vector3(1, 0.99939233, 0.99939233)
bones/28/name = "LeftThumbProximal"
bones/28/parent = 27
bones/28/rest = Transform3D(0.99999994, 0, 0, 0, 0.9999999, 2.9802322e-08, 0, -2.9802322e-08, 0.9999999, -0.019199941, 0.03816641, 0.005296665)
bones/28/enabled = true
bones/28/position = Vector3(-0.019199941, 0.03816641, 0.005296665)
bones/28/rotation = Quaternion(0.18180759, 0.11012465, 0.06006328, 0.97530055)
bones/28/rotation = Quaternion(-1.3411045e-07, -5.9604645e-08, -5.9604645e-08, 1)
bones/28/scale = Vector3(0.99999994, 0.9999999, 0.9999999)
bones/29/name = "LeftThumbDistal"
bones/29/parent = 28
bones/29/rest = Transform3D(1, 0, 0, 0, 1.0000001, 0, 0, 0, 1.0000001, -0.021900143, 0.043532185, 0.0060270326)
bones/29/enabled = true
bones/29/position = Vector3(-0.021900143, 0.043532185, 0.0060270326)
bones/29/rotation = Quaternion(0.59942985, 0.2739655, 0.19463256, 0.7264606)
bones/29/rotation = Quaternion(1.4901161e-08, 7.4505806e-08, 2.9802322e-08, 1)
bones/29/scale = Vector3(1, 1.0000001, 1.0000001)
bones/30/name = "thumb_04_leaf_l"
bones/30/parent = 29
@@ -656,83 +656,83 @@ bones/30/rest = Transform3D(0.6015796, -0.44539672, 0.6631167, 0.39881337, 0.887
bones/30/enabled = true
bones/30/position = Vector3(-0.018200096, 0.036257587, 0.0050497632)
bones/30/rotation = Quaternion(-0.030814808, 0.3790144, 0.2359555, 0.8942726)
bones/30/scale = Vector3(1.0001457, 1.0004877, 1.0005835)
bones/30/scale = Vector3(1.0001454, 1.0004876, 1.0005833)
bones/31/name = "RightShoulder"
bones/31/parent = 4
bones/31/rest = Transform3D(0, -1, 0, 0, 0, 1, -1, 0, 0, -0.0188, 0.14310004, 0.07629998)
bones/31/enabled = true
bones/31/position = Vector3(-0.0188, 0.14310004, 0.07629998)
bones/31/rotation = Quaternion(0.53972095, -0.47448963, -0.47470158, -0.5081529)
bones/31/rotation = Quaternion(0.5, -0.49999988, -0.5, -0.5000001)
bones/31/scale = Vector3(1, 1, 1)
bones/32/name = "RightUpperArm"
bones/32/parent = 31
bones/32/rest = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, -1, 0.13680005, 0.17309996, -0.01710007)
bones/32/enabled = true
bones/32/position = Vector3(0.13680005, 0.17309996, -0.01710007)
bones/32/rotation = Quaternion(0.036540747, 0.8152373, -0.57788855, -0.009898059)
bones/32/rotation = Quaternion(-1.3411044e-07, 1, 7.45058e-08, 2.9802319e-08)
bones/32/scale = Vector3(1, 1, 1)
bones/33/name = "RightLowerArm"
bones/33/parent = 32
bones/33/rest = Transform3D(0, 0, 1, 0, 1, 0, -1, 0, 0, -0.004699971, 0.2744, 1.6425727e-07)
bones/33/enabled = true
bones/33/position = Vector3(-0.004699971, 0.2744, 1.6425727e-07)
bones/33/rotation = Quaternion(0.21252453, 0.6021516, -0.16790265, 0.75103635)
bones/33/rotation = Quaternion(-1.3697726e-07, 0.707107, -1.0536716e-08, 0.70710665)
bones/33/scale = Vector3(1, 1, 1)
bones/34/name = "RightHand"
bones/34/parent = 33
bones/34/rest = Transform3D(0, 0, -1, 0, 1, 0, 1, 0, 0, -2.829891e-08, 0.27259997, 0.004700046)
bones/34/enabled = true
bones/34/position = Vector3(-2.829891e-08, 0.27259997, 0.004700046)
bones/34/rotation = Quaternion(0.16034068, -0.7158978, -0.06599917, 0.67633224)
bones/34/rotation = Quaternion(-1.8728218e-07, -0.7071071, -1.07745805e-07, 0.7071064)
bones/34/scale = Vector3(1, 1, 1)
bones/35/name = "RightIndexProximal"
bones/35/parent = 34
bones/35/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.030900035, 0.11989994, 0.0019998003)
bones/35/enabled = true
bones/35/position = Vector3(0.030900035, 0.11989994, 0.0019998003)
bones/35/rotation = Quaternion(0.62959695, -1.4156103e-07, 4.3809414e-06, 0.776922)
bones/35/rotation = Quaternion(3.8743025e-07, 3.8743025e-07, -8.940698e-08, 1)
bones/35/scale = Vector3(1, 1, 1)
bones/36/name = "RightIndexIntermediate"
bones/36/parent = 35
bones/36/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.5648136e-10, 0.040700104, -1.0677797e-07)
bones/36/enabled = true
bones/36/position = Vector3(-5.5648136e-10, 0.040700104, -1.0677797e-07)
bones/36/rotation = Quaternion(0.62334156, 8.568168e-08, 4.3809414e-06, 0.78194976)
bones/36/rotation = Quaternion(-2.9802322e-08, 1.1920929e-07, -2.9802322e-08, 1)
bones/36/scale = Vector3(1, 1, 1)
bones/37/name = "RightIndexDistal"
bones/37/parent = 36
bones/37/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.121974e-10, 0.03480002, -1.0666921e-07)
bones/37/enabled = true
bones/37/position = Vector3(-6.121974e-10, 0.03480002, -1.0666921e-07)
bones/37/rotation = Quaternion(0.6233415, 6.3329935e-08, 4.2915344e-06, 0.78194976)
bones/37/rotation = Quaternion(0, -1.4901161e-08, -1.4901161e-08, 1)
bones/37/scale = Vector3(1, 1, 1)
bones/38/name = "index_04_leaf_r"
bones/38/parent = 37
bones/38/rest = Transform3D(-1.0000001, 1.173466e-07, -1.5419573e-07, 6.8917885e-08, 0.9999999, 1.3196864e-08, 1.7491357e-07, 2.6301036e-08, -0.9999999, 2.5607045e-09, 0.030099956, 1.2416471e-08)
bones/38/enabled = true
bones/38/position = Vector3(2.5607045e-09, 0.030099956, 1.2416471e-08)
bones/38/rotation = Quaternion(1.9557778e-08, 1, -1.7506343e-09, -8.7456776e-08)
bones/38/rotation = Quaternion(4.93601e-08, 1, 1.31505296e-08, -7.2555615e-08)
bones/38/scale = Vector3(1.0000001, 0.9999999, 0.9999999)
bones/39/name = "RightMiddleProximal"
bones/39/parent = 34
bones/39/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0052000335, 0.12159993, -0.00040023506)
bones/39/enabled = true
bones/39/position = Vector3(0.0052000335, 0.12159993, -0.00040023506)
bones/39/rotation = Quaternion(0.62889487, 0.029734857, 3.993511e-06, 0.77692163)
bones/39/rotation = Quaternion(4.0233135e-07, 2.2351742e-07, -5.9604645e-08, 1)
bones/39/scale = Vector3(1, 1, 1)
bones/40/name = "RightMiddleIntermediate"
bones/40/parent = 39
bones/40/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0019999943, 0.04230002, -9.594936e-08)
bones/40/enabled = true
bones/40/position = Vector3(-0.0019999943, 0.04230002, -9.594936e-08)
bones/40/rotation = Quaternion(0.62273186, 0.027554717, 4.559755e-06, 0.78194994)
bones/40/rotation = Quaternion(-2.9802322e-08, 1.1920929e-07, -2.9802322e-08, 1)
bones/40/scale = Vector3(1, 1, 1)
bones/41/name = "RightMiddleDistal"
bones/41/parent = 40
bones/41/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0014999958, 0.033900008, 4.301159e-08)
bones/41/enabled = true
bones/41/position = Vector3(-0.0014999958, 0.033900008, 4.301159e-08)
bones/41/rotation = Quaternion(0.6226685, 0.02896135, 4.2021284e-06, 0.7819496)
bones/41/rotation = Quaternion(1.4901165e-08, 1.4901165e-08, 4.4703494e-08, 1)
bones/41/scale = Vector3(1, 1, 1)
bones/42/name = "middle_04_leaf_r"
bones/42/parent = 41
@@ -746,49 +746,49 @@ bones/43/parent = 34
bones/43/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.040799975, 0.107699946, 0.0015997475)
bones/43/enabled = true
bones/43/position = Vector3(-0.040799975, 0.107699946, 0.0015997475)
bones/43/rotation = Quaternion(0.66300106, 0.04452988, -0.07369429, 0.74365044)
bones/43/rotation = Quaternion(3.8743025e-07, 3.2782557e-07, -8.940698e-08, 1)
bones/43/scale = Vector3(1, 1, 1)
bones/44/name = "RightLittleIntermediate"
bones/44/parent = 43
bones/44/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0026999926, 0.040199965, -4.7321702e-11)
bones/44/enabled = true
bones/44/position = Vector3(-0.0026999926, 0.040199965, -4.7321702e-11)
bones/44/rotation = Quaternion(0.62036574, 0.062294006, -0.015572965, 0.78167987)
bones/44/rotation = Quaternion(-1.4901161e-08, 1.3411045e-07, -7.4505806e-08, 1)
bones/44/scale = Vector3(1, 1, 1)
bones/45/name = "RightLittleDistal"
bones/45/parent = 44
bones/45/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0018999918, 0.027600035, -1.0417894e-08)
bones/45/enabled = true
bones/45/position = Vector3(-0.0018999918, 0.027600035, -1.0417894e-08)
bones/45/rotation = Quaternion(0.62192225, 0.042051412, 4.380942e-06, 0.7819492)
bones/45/rotation = Quaternion(1.4901161e-08, 1.4901161e-08, 0, 1)
bones/45/scale = Vector3(1, 1, 1)
bones/46/name = "pinky_04_leaf_r"
bones/46/parent = 45
bones/46/rest = Transform3D(-0.99772197, -0.0674616, -2.5873078e-07, -0.06746164, 0.9977217, 1.503156e-08, 1.7270258e-07, 4.6777405e-08, -0.9999999, -0.001899995, 0.028100003, -1.2148155e-07)
bones/46/enabled = true
bones/46/position = Vector3(-0.001899995, 0.028100003, -1.2148155e-07)
bones/46/rotation = Quaternion(-0.03375005, 0.99943036, 2.0461025e-08, -8.709147e-08)
bones/46/rotation = Quaternion(-0.03375011, 0.99943036, 7.077092e-09, -1.322724e-07)
bones/46/scale = Vector3(1.0000001, 0.99999976, 0.9999999)
bones/47/name = "RightRingProximal"
bones/47/parent = 34
bones/47/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.017099975, 0.11909993, -0.00010018104)
bones/47/enabled = true
bones/47/position = Vector3(-0.017099975, 0.11909993, -0.00010018104)
bones/47/rotation = Quaternion(0.62919784, 0.022413896, 4.3213363e-06, 0.7769219)
bones/47/rotation = Quaternion(3.874302e-07, 3.2782555e-07, -8.940697e-08, 1)
bones/47/scale = Vector3(1, 1, 1)
bones/48/name = "RightRingIntermediate"
bones/48/parent = 47
bones/48/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0013999942, 0.039300077, -2.1747476e-07)
bones/48/enabled = true
bones/48/position = Vector3(-0.0013999942, 0.039300077, -2.1747476e-07)
bones/48/rotation = Quaternion(0.6229476, 0.022176392, 4.082918e-06, 0.7819493)
bones/48/rotation = Quaternion(-1.4901161e-08, 1.0430813e-07, -2.9802322e-08, 1)
bones/48/scale = Vector3(1, 1, 1)
bones/49/name = "RightRingDistal"
bones/49/parent = 48
bones/49/rest = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0010999979, 0.030900003, -9.946502e-08)
bones/49/enabled = true
bones/49/position = Vector3(-0.0010999979, 0.030900003, -9.946502e-08)
bones/49/rotation = Quaternion(0.6228982, 0.023505453, 4.5895576e-06, 0.7819497)
bones/49/rotation = Quaternion(0, 5.9604645e-08, 0, 1)
bones/49/scale = Vector3(1, 1, 1)
bones/50/name = "ring_04_leaf_r"
bones/50/parent = 49
@@ -802,21 +802,21 @@ bones/51/parent = 34
bones/51/rest = Transform3D(0, 0.577, -0.816, 0, 0.816, 0.577, 1, 0, 0, 0.03360003, 0.02729996, 0.022799788)
bones/51/enabled = true
bones/51/position = Vector3(0.03360003, 0.02729996, 0.022799788)
bones/51/rotation = Quaternion(-0.12381921, -0.7195234, -0.2018356, 0.6528533)
bones/51/rotation = Quaternion(-0.21418679, -0.6738869, -0.21418697, 0.6738875)
bones/51/scale = Vector3(1, 0.99939233, 0.99939233)
bones/52/name = "RightThumbProximal"
bones/52/parent = 51
bones/52/rest = Transform3D(0.99999994, 0, 0, 0, 0.9999999, 2.9802322e-08, 0, -2.9802322e-08, 0.9999999, 0.019199956, 0.038166482, 0.005296612)
bones/52/enabled = true
bones/52/position = Vector3(0.019199956, 0.038166482, 0.005296612)
bones/52/rotation = Quaternion(0.18180706, -0.11012429, -0.0600631, 0.97530067)
bones/52/rotation = Quaternion(1.4901163e-08, 8.940698e-08, -5.960465e-08, 1)
bones/52/scale = Vector3(0.99999994, 0.9999999, 0.9999999)
bones/53/name = "RightThumbDistal"
bones/53/parent = 52
bones/53/rest = Transform3D(1, 0, 0, 0, 1.0000001, 0, 0, 0, 1.0000001, 0.021899961, 0.04353219, 0.0060271067)
bones/53/enabled = true
bones/53/position = Vector3(0.021899961, 0.04353219, 0.0060271067)
bones/53/rotation = Quaternion(0.5994298, -0.27396542, -0.1946321, 0.72646075)
bones/53/rotation = Quaternion(5.9604638e-08, -2.9802319e-08, -2.9802319e-08, 1)
bones/53/scale = Vector3(1, 1.0000001, 1.0000001)
bones/54/name = "thumb_04_leaf_r"
bones/54/parent = 53
@@ -830,28 +830,28 @@ bones/55/parent = 1
bones/55/rest = Transform3D(-1, 0, 0, 0, -1, 0, 0, 0, 1, 0.089, 0.015400031, 0.051499985)
bones/55/enabled = true
bones/55/position = Vector3(0.089, 0.015400031, 0.051499985)
bones/55/rotation = Quaternion(-0.0007779924, 0.12230132, 0.98624045, -0.111228)
bones/55/rotation = Quaternion(0, 2.115965e-06, 1, 0)
bones/55/scale = Vector3(1, 1, 1)
bones/56/name = "LeftLowerLeg"
bones/56/parent = 55
bones/56/rest = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, -1, -7.450581e-09, 0.40029997, -0.0027998893)
bones/56/enabled = true
bones/56/position = Vector3(-7.450581e-09, 0.40029997, -0.0027998893)
bones/56/rotation = Quaternion(0.016350372, 0.98223716, -0.14906633, 0.11279198)
bones/56/rotation = Quaternion(4.9513798e-09, 1, -3.8300645e-06, 6.331045e-10)
bones/56/scale = Vector3(1, 1, 1)
bones/57/name = "LeftFoot"
bones/57/parent = 56
bones/57/rest = Transform3D(-1, 0, 0, 0, 0, -1, 0, -1, 0, -7.218184e-09, 0.42809996, 0.034399886)
bones/57/enabled = true
bones/57/position = Vector3(-7.218184e-09, 0.42809996, 0.034399886)
bones/57/rotation = Quaternion(-0.09454481, 0.7292237, -0.6776835, 0.0062607983)
bones/57/rotation = Quaternion(3.019401e-09, 0.70710546, -0.7071081, -3.4309913e-09)
bones/57/scale = Vector3(1, 1, 1)
bones/58/name = "LeftToes"
bones/58/parent = 57
bones/58/rest = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, -1, -3.933849e-09, 0.14900002, -0.08849997)
bones/58/enabled = true
bones/58/position = Vector3(-3.933849e-09, 0.14900002, -0.08849997)
bones/58/rotation = Quaternion(4.105099e-08, 1, 5.9604645e-08, 1.2867343e-08)
bones/58/rotation = Quaternion(4.4117336e-08, 1, 5.9604645e-08, 1.9473367e-08)
bones/58/scale = Vector3(1, 1, 1)
bones/59/name = "ball_leaf_l"
bones/59/parent = 58
@@ -865,28 +865,28 @@ bones/60/parent = 1
bones/60/rest = Transform3D(-1, 0, 0, 0, -1, 0, 0, 0, 1, -0.089, 0.015400031, 0.051499985)
bones/60/enabled = true
bones/60/position = Vector3(-0.089, 0.015400031, 0.051499985)
bones/60/rotation = Quaternion(0.0008068643, -0.10989777, 0.9872255, 0.1153593)
bones/60/rotation = Quaternion(-6.510936e-11, 2.115965e-06, 1, -9.305792e-09)
bones/60/scale = Vector3(1, 1, 1)
bones/61/name = "RightLowerLeg"
bones/61/parent = 60
bones/61/rest = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, -1, 7.450581e-09, 0.40029997, -0.0027998893)
bones/61/enabled = true
bones/61/position = Vector3(7.450581e-09, 0.40029997, -0.0027998893)
bones/61/rotation = Quaternion(-0.028773054, 0.9289529, -0.0808273, -0.36011887)
bones/61/rotation = Quaternion(5.2846154e-09, 1, -3.8300645e-06, 2.7046976e-10)
bones/61/scale = Vector3(1, 1, 1)
bones/62/name = "RightFoot"
bones/62/parent = 61
bones/62/rest = Transform3D(-1, 0, 0, 0, 0, -1, 0, -1, 0, 7.683263e-09, 0.4280999, 0.034399875)
bones/62/enabled = true
bones/62/position = Vector3(7.683263e-09, 0.4280999, 0.034399875)
bones/62/rotation = Quaternion(0.17156023, 0.64691186, -0.7430104, -0.0027886406)
bones/62/rotation = Quaternion(-3.0232599e-09, 0.70710546, -0.7071081, 3.2290552e-09)
bones/62/scale = Vector3(1, 1, 1)
bones/63/name = "RightToes"
bones/63/parent = 62
bones/63/rest = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, -1, 3.5171341e-09, 0.14900002, -0.08849997)
bones/63/enabled = true
bones/63/position = Vector3(3.5171341e-09, 0.14900002, -0.08849997)
bones/63/rotation = Quaternion(3.086953e-11, 1, 2.9802322e-08, 2.7092932e-08)
bones/63/rotation = Quaternion(4.4117336e-08, 1, 5.9604645e-08, 1.9473367e-08)
bones/63/scale = Vector3(1, 1, 1)
bones/64/name = "ball_leaf_r"
bones/64/parent = 63
File diff suppressed because one or more lines are too long
+356 -5
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+33 -37
View File
@@ -6,60 +6,56 @@ extends StaticBody3D
{"name": "Сталкер", "text": "Да вот, теперь и подсказки работают как надо!"}
]
# Укажи здесь точный путь к .tscn файлу твоей сцены диалога
const DIALOGUE_UI_FILE = preload("res://addons/dialoge/dialogue_ui.tscn")
var is_player_inside: bool = false
var ui_node: Node = null
var is_dialogue_active: bool = false
var ui_instance: Node = null
var detect_area: Area3D = null
func _ready() -> void:
detect_area = $DetectArea
if detect_area:
print("[NPC] Зона DetectArea найдена. Мониторинг подсказок включен.")
detect_area = get_node_or_null("DetectArea")
if detect_area == null:
detect_area = find_child("DetectArea", true, false)
# Спавним диалог ОДИН РАЗ при старте карты, чтобы он не багался при переспавне
if ui_instance == null:
ui_instance = DIALOGUE_UI_FILE.instantiate()
get_tree().get_root().add_child.call_deferred(ui_instance)
if "layer" in ui_instance: ui_instance.layer = 135
func _process(_delta: float) -> void:
if detect_area == null:
return
if detect_area == null: return
# Опрашиваем зону на наличие игрока
var overlapping_bodies = detect_area.get_overlapping_bodies()
var found_player_this_frame = false
for body in overlapping_bodies:
var weapon_manager = body.find_child("WeaponManager", true, false)
if weapon_manager == null and body.get_parent():
weapon_manager = body.get_parent().find_child("WeaponManager", true, false)
if weapon_manager != null or "Player" in body.name or "Character" in body.name:
if "Player" in body.name or "Character" in body.name or body.find_child("WeaponManager", true, false) != null:
found_player_this_frame = true
break
# Игрок ТОЛЬКО ЧТО ЗАШЕЛ в зону NPC
# Игрок ЗАШЕЛ в зону NPC
if found_player_this_frame and not is_player_inside:
is_player_inside = true
# Ищем узел интерфейса на сцене
ui_node = get_tree().current_scene.find_child("DialogueUI", true, false)
if ui_node == null:
ui_node = get_tree().current_scene.find_child("dialogue_ui", true, false)
if ui_instance and not is_dialogue_active:
if ui_instance.has_method("show_prompt"):
ui_instance.show_prompt()
# ВКЛЮЧАЕМ ПОДСКАЗКУ «Нажмите E»
if ui_node and ui_node.has_method("show_prompt"):
ui_node.show_prompt()
# Игрок ТОЛЬКО ЧТО ВЫШЕЛ из зоны NPC
# Игрок ВЫШЕЛ из зоны NPC
elif not found_player_this_frame and is_player_inside:
is_player_inside = false
# ПРЯЧЕМ ПОДСКАЗКУ «Нажмите E»
if ui_node and ui_node.has_method("hide_prompt"):
ui_node.hide_prompt()
if ui_node and ui_node.has_method("end_dialogue"):
ui_node.end_dialogue()
is_dialogue_active = false
if ui_instance:
if ui_instance.has_method("hide_prompt"): ui_instance.hide_prompt()
if ui_instance.has_method("end_dialogue"): ui_instance.end_dialogue()
# Проверка нажатия кнопки для старта диалога
if is_player_inside:
if Input.is_key_pressed(KEY_E):
if ui_node and ui_node.has_method("start_dialogue"):
# Прячем подсказку, так как диалог уже начался
if ui_node.has_method("hide_prompt"):
ui_node.hide_prompt()
ui_node.start_dialogue(dialogue_data)
# Старт диалога по кнопке E
if is_player_inside and not is_dialogue_active:
if Input.is_key_pressed(KEY_E) or Input.is_action_just_pressed("interact"):
is_dialogue_active = true
if ui_instance:
if ui_instance.has_method("hide_prompt"): ui_instance.hide_prompt()
if ui_instance.has_method("start_dialogue"):
ui_instance.start_dialogue(dialogue_data)