liblast/Player.tscn

422 lines
12 KiB
Plaintext

[gd_scene load_steps=10 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://Assets/Weapons/Handgun/Handgun.tscn" type="PackedScene" id=2]
[ext_resource path="res://Assets/SFX/UI-HitConfirmation.wav" type="AudioStream" id=3]
[ext_resource path="res://Assets/Player/Player.gltf" type="PackedScene" id=4]
[ext_resource path="res://Audio/SoundPlayer.tscn" type="PackedScene" id=7]
[ext_resource path="res://GUI/HitConfirmation.gd" type="Script" id=8]
[sub_resource type="CapsuleShape" id=1]
radius = 0.33
height = 1.1
[sub_resource type="CylinderShape" id=2]
radius = 0.2
height = 0.3
[sub_resource type="CapsuleMesh" id=3]
radius = 0.33
mid_height = 1.1
[node name="Player" type="KinematicBody"]
script = ExtResource( 1 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.53592, -0.0651628 )
[node name="Hand" type="Spatial" parent="Camera"]
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0.335, -0.4, -0.559 )
[node name="Weapon" parent="Camera/Hand" instance=ExtResource( 2 )]
[node name="CollisionShapeBody" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, -1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 0.882822, 0 )
shape = SubResource( 1 )
[node name="CollisionShapeFeet" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.150321, 0 )
shape = SubResource( 2 )
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.882822, 0 )
mesh = SubResource( 3 )
material/0 = null
[node name="Debug" type="Label" parent="."]
margin_right = 40.0
margin_bottom = 14.0
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
text = "Debug"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Sounds" type="Spatial" parent="."]
[node name="Jump" parent="Sounds" instance=ExtResource( 7 )]
SoundClip = "res://Assets/SFX/Player-Jump-01.wav"
[node name="Footsteps" parent="Sounds" instance=ExtResource( 7 )]
SoundClip = "res://Assets/SFX/Player-Step-Concrete-01.wav"
PlayUntilEnd = true
MinDelay = 0.2
[node name="Death" parent="Sounds" instance=ExtResource( 7 )]
SoundClip = "res://Assets/SFX/Player-Death-01.wav"
MinDelay = 0.2
[node name="Pain" parent="Sounds" instance=ExtResource( 7 )]
SoundClip = "res://Assets/SFX/Player-Pain-01.wav"
MinDelay = 0.2
[node name="CrosshairContainer" type="CenterContainer" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -511.401
margin_top = -300.757
margin_right = 512.599
margin_bottom = 299.243
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CrosshairCenter" type="Control" parent="CrosshairContainer"]
margin_left = 512.0
margin_top = 300.0
margin_right = 512.0
margin_bottom = 300.0
[node name="Line1" type="ColorRect" parent="CrosshairContainer/CrosshairCenter"]
margin_left = 8.0
margin_top = -1.0
margin_right = 20.0
margin_bottom = 1.0
rect_pivot_offset = Vector2( -8, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Line2" type="ColorRect" parent="CrosshairContainer/CrosshairCenter"]
margin_left = 8.0
margin_top = -1.0
margin_right = 20.0
margin_bottom = 1.0
rect_rotation = 90.0
rect_pivot_offset = Vector2( -8, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Line3" type="ColorRect" parent="CrosshairContainer/CrosshairCenter"]
margin_left = 8.0
margin_top = -1.0
margin_right = 20.0
margin_bottom = 1.0
rect_rotation = 180.0
rect_pivot_offset = Vector2( -8, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Line4" type="ColorRect" parent="CrosshairContainer/CrosshairCenter"]
margin_left = 8.0
margin_top = -1.0
margin_right = 20.0
margin_bottom = 1.0
rect_rotation = -90.0
rect_pivot_offset = Vector2( -8, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HitConfirmation" type="Control" parent="CrosshairContainer"]
light_mask = -2147483647
margin_left = 512.0
margin_top = 300.0
margin_right = 512.0
margin_bottom = 300.0
script = ExtResource( 8 )
[node name="HitConfirmationSound" type="AudioStreamPlayer" parent="CrosshairContainer/HitConfirmation"]
stream = ExtResource( 3 )
[node name="Line1" type="ColorRect" parent="CrosshairContainer/HitConfirmation"]
margin_left = 8.0
margin_top = -1.0
margin_right = 16.0
margin_bottom = 1.0
rect_rotation = 45.3067
rect_pivot_offset = Vector2( -8, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Line2" type="ColorRect" parent="CrosshairContainer/HitConfirmation"]
margin_left = 8.0
margin_top = -1.0
margin_right = 16.0
margin_bottom = 1.0
rect_rotation = 135.307
rect_pivot_offset = Vector2( -8, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Line3" type="ColorRect" parent="CrosshairContainer/HitConfirmation"]
margin_left = 8.0
margin_top = -1.0
margin_right = 16.0
margin_bottom = 1.0
rect_rotation = 225.306
rect_pivot_offset = Vector2( -8, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Line4" type="ColorRect" parent="CrosshairContainer/HitConfirmation"]
margin_left = 8.0
margin_top = -1.0
margin_right = 16.0
margin_bottom = 1.0
rect_rotation = -44.6931
rect_pivot_offset = Vector2( -8, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Player" parent="." instance=ExtResource( 4 )]
visible = false
[node name="shape0" parent="Player/Alive/Player /static_collision" index="0"]
disabled = true
[node name="PlayerGibs cell cell " parent="Player/Gibs" index="0"]
sleeping = true
[node name="PlayerGibs cell cell_001 " parent="Player/Gibs" index="1"]
sleeping = true
[node name="PlayerGibs cell cell_002 " parent="Player/Gibs" index="2"]
sleeping = true
[node name="PlayerGibs cell_001 " parent="Player/Gibs" index="3"]
sleeping = true
[node name="PlayerGibs cell_003 " parent="Player/Gibs" index="4"]
sleeping = true
[node name="PlayerGibs cell_004 " parent="Player/Gibs" index="5"]
sleeping = true
[node name="PlayerGibs cell_005 " parent="Player/Gibs" index="6"]
sleeping = true
[node name="PlayerGibs cell_006 cell " parent="Player/Gibs" index="7"]
sleeping = true
[node name="PlayerGibs cell_006 cell_001 " parent="Player/Gibs" index="8"]
sleeping = true
[node name="PlayerGibs cell_006 cell_002 " parent="Player/Gibs" index="9"]
sleeping = true
[node name="PlayerGibs cell_007 " parent="Player/Gibs" index="10"]
sleeping = true
[node name="PlayerGibs cell_008 " parent="Player/Gibs" index="11"]
sleeping = true
[node name="PlayerGibs cell_009 cell " parent="Player/Gibs" index="12"]
sleeping = true
[node name="PlayerGibs cell_009 cell_001 " parent="Player/Gibs" index="13"]
sleeping = true
[node name="PlayerGibs cell_009 cell_002 " parent="Player/Gibs" index="14"]
sleeping = true
[node name="PlayerGibs cell_012 " parent="Player/Gibs" index="15"]
sleeping = true
[node name="PlayerGibs cell_013 cell " parent="Player/Gibs" index="16"]
sleeping = true
[node name="PlayerGibs cell_013 cell_001 " parent="Player/Gibs" index="17"]
sleeping = true
[node name="PlayerGibs cell_013 cell_002 " parent="Player/Gibs" index="18"]
sleeping = true
[node name="PlayerGibs cell_014 " parent="Player/Gibs" index="19"]
sleeping = true
[node name="PlayerGibs cell_015 " parent="Player/Gibs" index="20"]
sleeping = true
[node name="PlayerGibs cell_016 " parent="Player/Gibs" index="21"]
sleeping = true
[node name="PlayerGibs cell_017 cell " parent="Player/Gibs" index="22"]
sleeping = true
[node name="PlayerGibs cell_017 cell_001 " parent="Player/Gibs" index="23"]
sleeping = true
[node name="PlayerGibs cell_017 cell_002 " parent="Player/Gibs" index="24"]
sleeping = true
[node name="PlayerGibs cell_018 " parent="Player/Gibs" index="25"]
sleeping = true
[node name="PlayerGibs cell_019 " parent="Player/Gibs" index="26"]
sleeping = true
[node name="PlayerGibs cell_020 " parent="Player/Gibs" index="27"]
sleeping = true
[node name="PlayerGibs cell_021 " parent="Player/Gibs" index="28"]
sleeping = true
[node name="PlayerGibs cell_022 " parent="Player/Gibs" index="29"]
sleeping = true
[node name="PlayerGibs cell_023 " parent="Player/Gibs" index="30"]
sleeping = true
[node name="PlayerGibs cell_024 " parent="Player/Gibs" index="31"]
sleeping = true
[node name="PlayerGibs cell_026 " parent="Player/Gibs" index="32"]
sleeping = true
[node name="PlayerGibs cell_029 " parent="Player/Gibs" index="33"]
sleeping = true
[node name="PlayerGibs cell_030 " parent="Player/Gibs" index="34"]
sleeping = true
[node name="PlayerGibs cell_031 " parent="Player/Gibs" index="35"]
sleeping = true
[node name="PlayerGibs cell_032 " parent="Player/Gibs" index="36"]
sleeping = true
[node name="PlayerGibs cell_033 " parent="Player/Gibs" index="37"]
sleeping = true
[node name="PlayerGibs cell_034 cell " parent="Player/Gibs" index="38"]
sleeping = true
[node name="PlayerGibs cell_034 cell_001 " parent="Player/Gibs" index="39"]
sleeping = true
[node name="PlayerGibs cell_034 cell_002 " parent="Player/Gibs" index="40"]
sleeping = true
[node name="PlayerGibs cell_035 " parent="Player/Gibs" index="41"]
sleeping = true
[node name="PlayerGibs cell_037 " parent="Player/Gibs" index="42"]
sleeping = true
[node name="PlayerGibs cell_038 " parent="Player/Gibs" index="43"]
sleeping = true
[node name="PlayerGibs cell_039 " parent="Player/Gibs" index="44"]
sleeping = true
[node name="PlayerGibs cell_041 " parent="Player/Gibs" index="45"]
sleeping = true
[node name="PlayerGibs cell_043 cell " parent="Player/Gibs" index="46"]
sleeping = true
[node name="PlayerGibs cell_043 cell_001 " parent="Player/Gibs" index="47"]
sleeping = true
[node name="PlayerGibs cell_043 cell_002 " parent="Player/Gibs" index="48"]
sleeping = true
[node name="PlayerGibs cell_044 " parent="Player/Gibs" index="49"]
sleeping = true
[node name="PlayerGibs cell_045 cell " parent="Player/Gibs" index="50"]
sleeping = true
[node name="PlayerGibs cell_045 cell_001 " parent="Player/Gibs" index="51"]
sleeping = true
[node name="PlayerGibs cell_045 cell_002 " parent="Player/Gibs" index="52"]
sleeping = true
[node name="PlayerGibs cell_046 " parent="Player/Gibs" index="53"]
sleeping = true
[node name="PlayerGibs cell_048 " parent="Player/Gibs" index="54"]
sleeping = true
[node name="PlayerGibs cell_049 " parent="Player/Gibs" index="55"]
sleeping = true
[node name="PlayerGibs cell_051 " parent="Player/Gibs" index="56"]
sleeping = true
[node name="PlayerGibs cell_052 cell " parent="Player/Gibs" index="57"]
sleeping = true
[node name="PlayerGibs cell_052 cell_001 " parent="Player/Gibs" index="58"]
sleeping = true
[node name="PlayerGibs cell_053 cell " parent="Player/Gibs" index="59"]
sleeping = true
[node name="PlayerGibs cell_053 cell_001 " parent="Player/Gibs" index="60"]
sleeping = true
[node name="PlayerGibs cell_053 cell_002 " parent="Player/Gibs" index="61"]
sleeping = true
[node name="PlayerGibs cell_054 cell " parent="Player/Gibs" index="62"]
sleeping = true
[node name="PlayerGibs cell_054 cell_001 " parent="Player/Gibs" index="63"]
sleeping = true
[node name="PlayerGibs cell_054 cell_002 " parent="Player/Gibs" index="64"]
sleeping = true
[node name="PlayerGibs cell_055 " parent="Player/Gibs" index="65"]
sleeping = true
[node name="PlayerGibs cell_056 " parent="Player/Gibs" index="66"]
sleeping = true
[node name="PlayerGibs cell_057 " parent="Player/Gibs" index="67"]
sleeping = true
[node name="PlayerGibs cell_058 " parent="Player/Gibs" index="68"]
sleeping = true
[node name="PlayerGibs cell_059 " parent="Player/Gibs" index="69"]
sleeping = true
[node name="PlayerGibs cell_060 " parent="Player/Gibs" index="70"]
sleeping = true
[node name="PlayerGibs cell_062 " parent="Player/Gibs" index="71"]
sleeping = true
[node name="PlayerGibs cell_063 " parent="Player/Gibs" index="72"]
sleeping = true
[node name="PlayerGibs cell_064 " parent="Player/Gibs" index="73"]
sleeping = true
[node name="PlayerGibs cell_065 " parent="Player/Gibs" index="74"]
sleeping = true
[editable path="Player"]