mj177/prefabs/player.tscn
2025-02-03 19:17:20 +01:00

133 lines
6.7 KiB
Text

[gd_scene load_steps=17 format=3 uid="uid://ctu0cdqcefrwg"]
[ext_resource type="Script" path="res://scripts/player/player.gd" id="1_1tqna"]
[ext_resource type="Script" path="res://scripts/player/cameraController.gd" id="1_v2q4i"]
[ext_resource type="PackedScene" uid="uid://c2x0xjb2ypfpq" path="res://content/rifle/weapon.tscn" id="3_5cmgy"]
[ext_resource type="Script" path="res://scripts/player/weapon.gd" id="4_nfpgt"]
[ext_resource type="PackedScene" uid="uid://bnwuklgcmgyw8" path="res://content/muzzleflash/muzzleflash.tscn" id="5_v58ob"]
[ext_resource type="Script" path="res://demo/agents/scripts/health.gd" id="6_ixo02"]
[ext_resource type="AudioStream" uid="uid://cn33abuyca8so" path="res://audio/gun/assaultrifle.tres" id="6_lf83g"]
[ext_resource type="PackedScene" uid="uid://bwnlcxfwxyj7j" path="res://content/ui/UI.tscn" id="7_qi8fi"]
[ext_resource type="Script" path="res://prefabs/death_handler.gd" id="8_h34n7"]
[ext_resource type="Script" path="res://prefabs/movement_player.gd" id="10_cd7pb"]
[ext_resource type="AudioStream" uid="uid://dq8k15jwlxhw" path="res://audio/footsteps/walk/footsteps_walking.tres" id="10_n5agh"]
[ext_resource type="AudioStream" uid="uid://c0c1k0gmcd4yb" path="res://audio/footsteps/sprint/footsteps_running.tres" id="12_l38x2"]
[ext_resource type="AudioStream" uid="uid://ba5iu681ldn1r" path="res://audio/startup/startup.tres" id="13_dc1a4"]
[ext_resource type="Script" path="res://prefabs/delete_after_play.gd" id="14_i2m1b"]
[ext_resource type="AudioStream" uid="uid://sisk81utsw72" path="res://audio/playerhit/playerhit.tres" id="15_5lcwc"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_w4dyg"]
margin = 0.332
[node name="Player" type="CharacterBody3D"]
axis_lock_angular_x = true
axis_lock_angular_z = true
script = ExtResource("1_1tqna")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CylinderShape3D_w4dyg")
[node name="Camera3D" type="Camera3D" parent="CollisionShape3D" node_paths=PackedStringArray("PlayerNode")]
process_mode = 3
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 0.68094, 0)
current = true
fov = 70.0
script = ExtResource("1_v2q4i")
PlayerNode = NodePath("../..")
[node name="Weapon" parent="CollisionShape3D/Camera3D" node_paths=PackedStringArray("Origin", "BulletOrigin") instance=ExtResource("3_5cmgy")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0655423, 0)
script = ExtResource("4_nfpgt")
MuzzleFlash = ExtResource("5_v58ob")
Origin = NodePath("LVA4_Armature/Skeleton3D/BoneAttachment3D/Plane/Muzzle")
BulletOrigin = NodePath("..")
[node name="LVA4_Armature" parent="CollisionShape3D/Camera3D/Weapon" index="0"]
transform = Transform3D(100, 0, 0, 0, 0, 100, 0, -100, 0, 1.48072e-08, 0, 0.169375)
[node name="Skeleton3D" parent="CollisionShape3D/Camera3D/Weapon/LVA4_Armature" index="0"]
bones/6/rotation = Quaternion(0.699082, -0.0275782, 0.0381791, 0.713489)
bones/9/rotation = Quaternion(0.598288, 0.0862358, -0.0928841, 0.791194)
bones/9/scale = Vector3(0.899362, 1.23607, 0.899366)
bones/13/rotation = Quaternion(-0.283862, -0.59042, 0.587465, 0.475091)
bones/14/rotation = Quaternion(0.845483, 0.123918, -0.0276912, 0.518687)
bones/15/rotation = Quaternion(-0.268192, -0.0524338, -0.0136426, 0.961841)
bones/40/rotation = Quaternion(0.013691, -0.0123893, -0.00231186, 0.999827)
bones/42/rotation = Quaternion(0.0136324, -0.0408477, -0.00269982, 0.999069)
bones/44/rotation = Quaternion(0.0136645, -0.0280867, -0.0025261, 0.999509)
bones/48/rotation = Quaternion(0.0136908, -0.0123894, -0.00231206, 0.999827)
bones/50/rotation = Quaternion(-0.0241645, -0.0205397, 0.0229569, 0.999233)
bones/52/rotation = Quaternion(9.57242e-08, -0.10117, 2.37787e-08, 0.994869)
bones/55/rotation = Quaternion(-0.0158395, 0.439327, -0.774392, 0.455035)
bones/56/rotation = Quaternion(0.574799, -0.124864, -0.0230532, 0.808383)
bones/57/rotation = Quaternion(-0.216828, -0.0109878, 0.105707, 0.970408)
bones/82/rotation = Quaternion(0.0137185, -0.00171057, 0.00211874, 0.999902)
bones/84/rotation = Quaternion(0.0137406, -0.00472083, 0.00207752, 0.999892)
bones/86/rotation = Quaternion(0.0137263, -0.0023118, 0.00211055, 0.999901)
bones/90/rotation = Quaternion(0.0137183, -0.00171051, 0.00211896, 0.999902)
bones/92/rotation = Quaternion(-0.0244656, 0.00660966, -0.0226152, 0.999423)
bones/94/rotation = Quaternion(2.80718e-09, 0.0447449, 4.00891e-08, 0.998999)
bones/96/rotation = Quaternion(-0.663965, 0.0366491, 0.106752, 0.739196)
bones/98/rotation = Quaternion(-0.691382, -0.135959, -0.188549, 0.684072)
[node name="BoneAttachment3D" parent="CollisionShape3D/Camera3D/Weapon/LVA4_Armature/Skeleton3D" index="1"]
transform = Transform3D(0.974534, -0.206316, -0.0878506, 0.195862, 0.973921, -0.11452, 0.109187, 0.0943966, 0.989529, 0.00141857, 0.0025722, -0.00106618)
[node name="Muzzle" parent="CollisionShape3D/Camera3D/Weapon/LVA4_Armature/Skeleton3D/BoneAttachment3D/Plane" index="0"]
transform = Transform3D(0.00256023, 0.00111408, -0.00109729, 0.000993761, 0.00046617, 0.00279197, 0.00120734, -0.00274618, 2.87907e-05, -0.00118721, 0.00250132, 0.000390777)
[node name="CooldownTimer" type="Timer" parent="CollisionShape3D/Camera3D/Weapon"]
wait_time = 0.3
one_shot = true
[node name="ShootSound" type="AudioStreamPlayer3D" parent="CollisionShape3D/Camera3D/Weapon"]
stream = ExtResource("6_lf83g")
bus = &"Player"
[node name="Health" type="Node" parent="."]
script = ExtResource("6_ixo02")
max_health = 1.0
[node name="Ui" parent="." instance=ExtResource("7_qi8fi")]
[node name="Enemy Target" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.32602, 0)
[node name="DeathHandler" type="Node" parent="." node_paths=PackedStringArray("camera")]
process_mode = 3
script = ExtResource("8_h34n7")
camera = NodePath("../CollisionShape3D/Camera3D")
[node name="Walking" type="AudioStreamPlayer3D" parent="." node_paths=PackedStringArray("targetElement")]
stream = ExtResource("10_n5agh")
bus = &"Player"
script = ExtResource("10_cd7pb")
threshold = 1.45
targetElement = NodePath("..")
[node name="Sprinting" type="AudioStreamPlayer3D" parent="." node_paths=PackedStringArray("targetElement")]
process_mode = 4
stream = ExtResource("12_l38x2")
bus = &"Player"
script = ExtResource("10_cd7pb")
threshold = 3.0
targetElement = NodePath("..")
[node name="Startup" type="AudioStreamPlayer3D" parent="."]
process_mode = 3
stream = ExtResource("13_dc1a4")
autoplay = true
bus = &"Player"
script = ExtResource("14_i2m1b")
[node name="HitSound" type="AudioStreamPlayer" parent="."]
process_mode = 3
stream = ExtResource("15_5lcwc")
volume_db = 2.907
pitch_scale = 1.04
bus = &"Player"
[connection signal="finished" from="Startup" to="Startup" method="_on_finished"]
[editable path="CollisionShape3D/Camera3D/Weapon"]