A Third-Person-Shooter Godot game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

587 lines
24 KiB

[gd_scene load_steps=65 format=2]
[ext_resource path="res://player/crosshair.png" type="Texture" id=1]
[ext_resource path="res://player/WeaponController.gd" type="Script" id=2]
[ext_resource path="res://player/player.gd" type="Script" id=3]
[ext_resource path="res://menu/font/PT_Sans-Web-Bold.ttf" type="DynamicFontData" id=4]
[ext_resource path="res://player/model/Alunya.glb" type="PackedScene" id=5]
[ext_resource path="res://player/weapons/weapon.tscn" type="PackedScene" id=6]
[ext_resource path="res://player/model/materials/animu_alunya_shadermat.tres" type="Material" id=7]
[ext_resource path="res://player/Hitbox.gd" type="Script" id=8]
[ext_resource path="res://player/model/materials/ear.tres" type="Material" id=9]
[ext_resource path="res://player/model/materials/bandana.tres" type="Material" id=10]
[ext_resource path="res://player/model/materials/face.tres" type="Material" id=11]
[ext_resource path="res://player/camera_noise_shake_effect.gd" type="Script" id=12]
[ext_resource path="res://player/model/muzzle_flash_particle_mesh_Cone.mesh" type="ArrayMesh" id=13]
[ext_resource path="res://effects_shared/bullet/effect/FlarePolar.png" type="Texture" id=14]
[ext_resource path="res://player/audio/step.wav" type="AudioStream" id=15]
[ext_resource path="res://player/bullet/bullet_material.tres" type="Material" id=16]
[ext_resource path="res://player/audio/jump.wav" type="AudioStream" id=17]
[ext_resource path="res://player/model/materials/body.tres" type="Material" id=18]
[sub_resource type="ParticlesMaterial" id=49]
flag_align_y = true
direction = Vector3( 0, 0, -1 )
spread = 15.0
gravity = Vector3( 0, -3, 0 )
initial_velocity = 3.0
[sub_resource type="SphereMesh" id=50]
radius = 0.003
height = 0.02
[sub_resource type="SpatialMaterial" id=51]
flags_transparent = true
flags_unshaded = true
vertex_color_use_as_albedo = true
params_cull_mode = 2
albedo_texture = ExtResource( 14 )
[sub_resource type="Gradient" id=52]
offsets = PoolRealArray( 0.325926, 1 )
colors = PoolColorArray( 0.0507812, 0.955505, 1, 1, 0.875, 0.888672, 1, 0.305882 )
[sub_resource type="GradientTexture" id=47]
gradient = SubResource( 52 )
width = 32
[sub_resource type="Curve" id=53]
_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 ]
[sub_resource type="CurveTexture" id=48]
width = 64
curve = SubResource( 53 )
[sub_resource type="ParticlesMaterial" id=54]
gravity = Vector3( 0, 0, 0 )
angle = -4.0
angle_random = 1.0
scale = 0.3
scale_curve = SubResource( 48 )
color_ramp = SubResource( 47 )
[sub_resource type="CapsuleShape" id=56]
radius = 0.253575
height = 0.81
[sub_resource type="Animation" id=69]
resource_name = "blink-loop"
length = 4.0
loop = true
tracks/0/type = "bezier"
tracks/0/path = NodePath("Colette_Armature/Skeleton/Colette_Mesh:material/1:shader_param/topEllipse:y")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"points": PoolRealArray( 0.5, -0.25, 0, 0, 0, 0.8, 0, 0, 0, 0, 0.5, -0.25, 0, 0.25, 0 ),
"times": PoolRealArray( 3, 3.1, 3.3 )
}
[sub_resource type="PrismMesh" id=10]
[sub_resource type="SpatialMaterial" id=11]
emission_enabled = true
emission = Color( 0.266667, 1, 0, 1 )
emission_energy = 1.0
emission_operator = 0
emission_on_uv2 = false
[sub_resource type="CylinderMesh" id=15]
top_radius = 0.65
bottom_radius = 0.65
height = 0.01
[sub_resource type="CubeMesh" id=16]
size = Vector3( 0.01, 0.01, 1.3 )
[sub_resource type="SpatialMaterial" id=17]
flags_transparent = true
albedo_color = Color( 0.639216, 1, 0, 0.490196 )
[sub_resource type="AnimationNodeBlend3" id=75]
[sub_resource type="AnimationNodeAnimation" id=70]
animation = "blink-loop"
[sub_resource type="AnimationNodeAdd2" id=71]
[sub_resource type="AnimationNodeAnimation" id=67]
animation = "aim_pistol-loop"
[sub_resource type="AnimationNodeAnimation" id=64]
animation = "aim_pistol-loop"
[sub_resource type="AnimationNodeAnimation" id=62]
animation = "aim_rifle-loop"
[sub_resource type="AnimationNodeTransition" id=61]
input_count = 4
xfade_time = 0.15
input_0/name = "rifle"
input_0/auto_advance = false
input_1/name = "pistol"
input_1/auto_advance = false
input_2/name = "shit pistol"
input_2/auto_advance = false
input_3/name = "laser"
input_3/auto_advance = false
[sub_resource type="AnimationNodeBlend2" id=63]
filter_enabled = true
filters = [ "Colette_Armature/Skeleton:ElbowF.L", "Colette_Armature/Skeleton:ElbowF.R", "Colette_Armature/Skeleton:ElbowM.L", "Colette_Armature/Skeleton:ElbowM.R", "Colette_Armature/Skeleton:ElbowU.L", "Colette_Armature/Skeleton:ElbowU.R", "Colette_Armature/Skeleton:F_Index_1.L", "Colette_Armature/Skeleton:F_Index_1.R", "Colette_Armature/Skeleton:F_Index_2.L", "Colette_Armature/Skeleton:F_Index_2.R", "Colette_Armature/Skeleton:F_Index_3.L", "Colette_Armature/Skeleton:F_Index_3.R", "Colette_Armature/Skeleton:F_Index_4.L", "Colette_Armature/Skeleton:F_Index_4.R", "Colette_Armature/Skeleton:F_Middle_1.L", "Colette_Armature/Skeleton:F_Middle_1.R", "Colette_Armature/Skeleton:F_Middle_2.L", "Colette_Armature/Skeleton:F_Middle_2.R", "Colette_Armature/Skeleton:F_Middle_3.L", "Colette_Armature/Skeleton:F_Middle_3.R", "Colette_Armature/Skeleton:F_Middle_4.L", "Colette_Armature/Skeleton:F_Middle_4.R", "Colette_Armature/Skeleton:F_Pinky_1.L", "Colette_Armature/Skeleton:F_Pinky_1.R", "Colette_Armature/Skeleton:F_Pinky_2.L", "Colette_Armature/Skeleton:F_Pinky_2.R", "Colette_Armature/Skeleton:F_Pinky_3.L", "Colette_Armature/Skeleton:F_Pinky_3.R", "Colette_Armature/Skeleton:F_Pinky_4.L", "Colette_Armature/Skeleton:F_Pinky_4.R", "Colette_Armature/Skeleton:F_Ring_1.L", "Colette_Armature/Skeleton:F_Ring_1.R", "Colette_Armature/Skeleton:F_Ring_2.L", "Colette_Armature/Skeleton:F_Ring_2.R", "Colette_Armature/Skeleton:F_Ring_3.L", "Colette_Armature/Skeleton:F_Ring_3.R", "Colette_Armature/Skeleton:F_Ring_4.L", "Colette_Armature/Skeleton:F_Ring_4.R", "Colette_Armature/Skeleton:F_Thumb_1.L", "Colette_Armature/Skeleton:F_Thumb_1.R", "Colette_Armature/Skeleton:F_Thumb_2.L", "Colette_Armature/Skeleton:F_Thumb_2.R", "Colette_Armature/Skeleton:F_Thumb_3.L", "Colette_Armature/Skeleton:F_Thumb_3.R", "Colette_Armature/Skeleton:ForeArm.L", "Colette_Armature/Skeleton:ForeArm.R", "Colette_Armature/Skeleton:Hand.L", "Colette_Armature/Skeleton:Hand.R", "Colette_Armature/Skeleton:HandMark_IK_FK.L", "Colette_Armature/Skeleton:HandMark_IK_FK.R", "Colette_Armature/Skeleton:Shoulder.L", "Colette_Armature/Skeleton:Shoulder.R", "Colette_Armature/Skeleton:UpperArm.L", "Colette_Armature/Skeleton:UpperArm.R", "Colette_Armature/Skeleton:UpperArmSkin1.L", "Colette_Armature/Skeleton:UpperArmSkin1.R", "Colette_Armature/Skeleton:UpperArmSkin2.L", "Colette_Armature/Skeleton:UpperArmSkin2.R", "Colette_Armature/Skeleton:UpperArmSkin3.L", "Colette_Armature/Skeleton:UpperArmSkin3.R" ]
[sub_resource type="AnimationNodeAnimation" id=65]
animation = "idle-loop"
[sub_resource type="AnimationNodeAnimation" id=72]
animation = "reload"
[sub_resource type="AnimationNodeTimeScale" id=73]
[sub_resource type="AnimationNodeOneShot" id=74]
filter_enabled = true
filters = [ "Colette_Armature/Skeleton:ElbowF.L", "Colette_Armature/Skeleton:ElbowF.R", "Colette_Armature/Skeleton:ElbowM.L", "Colette_Armature/Skeleton:ElbowM.R", "Colette_Armature/Skeleton:ElbowU.L", "Colette_Armature/Skeleton:ElbowU.R", "Colette_Armature/Skeleton:F_Index_1.L", "Colette_Armature/Skeleton:F_Index_1.R", "Colette_Armature/Skeleton:F_Index_2.L", "Colette_Armature/Skeleton:F_Index_2.R", "Colette_Armature/Skeleton:F_Index_3.L", "Colette_Armature/Skeleton:F_Index_3.R", "Colette_Armature/Skeleton:F_Index_4.L", "Colette_Armature/Skeleton:F_Index_4.R", "Colette_Armature/Skeleton:F_Middle_1.L", "Colette_Armature/Skeleton:F_Middle_1.R", "Colette_Armature/Skeleton:F_Middle_2.L", "Colette_Armature/Skeleton:F_Middle_2.R", "Colette_Armature/Skeleton:F_Middle_3.L", "Colette_Armature/Skeleton:F_Middle_3.R", "Colette_Armature/Skeleton:F_Middle_4.L", "Colette_Armature/Skeleton:F_Middle_4.R", "Colette_Armature/Skeleton:F_Pinky_1.L", "Colette_Armature/Skeleton:F_Pinky_1.R", "Colette_Armature/Skeleton:F_Pinky_2.L", "Colette_Armature/Skeleton:F_Pinky_2.R", "Colette_Armature/Skeleton:F_Pinky_3.L", "Colette_Armature/Skeleton:F_Pinky_3.R", "Colette_Armature/Skeleton:F_Pinky_4.L", "Colette_Armature/Skeleton:F_Pinky_4.R", "Colette_Armature/Skeleton:F_Ring_1.L", "Colette_Armature/Skeleton:F_Ring_1.R", "Colette_Armature/Skeleton:F_Ring_2.L", "Colette_Armature/Skeleton:F_Ring_2.R", "Colette_Armature/Skeleton:F_Ring_3.L", "Colette_Armature/Skeleton:F_Ring_3.R", "Colette_Armature/Skeleton:F_Ring_4.L", "Colette_Armature/Skeleton:F_Ring_4.R", "Colette_Armature/Skeleton:F_Thumb_1.L", "Colette_Armature/Skeleton:F_Thumb_1.R", "Colette_Armature/Skeleton:F_Thumb_2.L", "Colette_Armature/Skeleton:F_Thumb_2.R", "Colette_Armature/Skeleton:F_Thumb_3.L", "Colette_Armature/Skeleton:F_Thumb_3.R", "Colette_Armature/Skeleton:ForeArm.L", "Colette_Armature/Skeleton:ForeArm.R", "Colette_Armature/Skeleton:ForeArmSkin1.L", "Colette_Armature/Skeleton:ForeArmSkin1.R", "Colette_Armature/Skeleton:ForeArmSkin2.L", "Colette_Armature/Skeleton:ForeArmSkin2.R", "Colette_Armature/Skeleton:ForeArmSkin3.L", "Colette_Armature/Skeleton:ForeArmSkin3.R", "Colette_Armature/Skeleton:Hand.L", "Colette_Armature/Skeleton:Hand.R", "Colette_Armature/Skeleton:HandMark_IK_FK.L", "Colette_Armature/Skeleton:HandMark_IK_FK.R", "Colette_Armature/Skeleton:Shoulder.L", "Colette_Armature/Skeleton:Shoulder.R", "Colette_Armature/Skeleton:UpperArm.L", "Colette_Armature/Skeleton:UpperArm.R", "Colette_Armature/Skeleton:UpperArmSkin1.L", "Colette_Armature/Skeleton:UpperArmSkin1.R", "Colette_Armature/Skeleton:UpperArmSkin2.L", "Colette_Armature/Skeleton:UpperArmSkin2.R", "Colette_Armature/Skeleton:UpperArmSkin3.L", "Colette_Armature/Skeleton:UpperArmSkin3.R" ]
[sub_resource type="AnimationNodeAnimation" id=18]
animation = "run-cycle-loop"
[sub_resource type="AnimationNodeTimeScale" id=20]
[sub_resource type="AnimationNodeTimeSeek" id=21]
[sub_resource type="AnimationNodeAnimation" id=76]
animation = "walking-cycle-loop"
[sub_resource type="AnimationNodeTimeScale" id=77]
[sub_resource type="AnimationNodeTimeSeek" id=78]
[sub_resource type="AnimationNodeBlendTree" id=19]
graph_offset = Vector2( -273, 12 )
nodes/blend_moving/node = SubResource( 75 )
nodes/blend_moving/position = Vector2( 360, -60 )
nodes/blink_loop/node = SubResource( 70 )
nodes/blink_loop/position = Vector2( 1160, 380 )
nodes/eye_blink/node = SubResource( 71 )
nodes/eye_blink/position = Vector2( 1360, 120 )
nodes/hold_laser/node = SubResource( 67 )
nodes/hold_laser/position = Vector2( 100, 560 )
nodes/hold_pistol/node = SubResource( 64 )
nodes/hold_pistol/position = Vector2( 100, 440 )
nodes/hold_rifle/node = SubResource( 62 )
nodes/hold_rifle/position = Vector2( 100, 300 )
nodes/hold_weapon/node = SubResource( 61 )
nodes/hold_weapon/position = Vector2( 360, 360 )
nodes/hold_weapon_blend/node = SubResource( 63 )
nodes/hold_weapon_blend/position = Vector2( 720, 140 )
nodes/idle_loop/node = SubResource( 65 )
nodes/idle_loop/position = Vector2( 20, -160 )
nodes/output/position = Vector2( 1680, 120 )
nodes/reload/node = SubResource( 72 )
nodes/reload/position = Vector2( 680, 480 )
nodes/reload_scale/node = SubResource( 73 )
nodes/reload_scale/position = Vector2( 880, 340 )
nodes/reload_switch/node = SubResource( 74 )
nodes/reload_switch/position = Vector2( 1080, 140 )
nodes/run_loop/node = SubResource( 18 )
nodes/run_loop/position = Vector2( -440, 140 )
nodes/run_scale/node = SubResource( 20 )
nodes/run_scale/position = Vector2( 20, 120 )
nodes/run_seek/node = SubResource( 21 )
nodes/run_seek/position = Vector2( -220, 120 )
nodes/walk_loop/node = SubResource( 76 )
nodes/walk_loop/position = Vector2( -480, 0 )
nodes/walk_scale/node = SubResource( 77 )
nodes/walk_scale/position = Vector2( 20, 0 )
nodes/walk_seek/node = SubResource( 78 )
nodes/walk_seek/position = Vector2( -220, 0 )
node_connections = [ "output", 0, "eye_blink", "run_scale", 0, "run_seek", "walk_scale", 0, "walk_seek", "blend_moving", 0, "idle_loop", "blend_moving", 1, "walk_scale", "blend_moving", 2, "run_scale", "walk_seek", 0, "walk_loop", "run_seek", 0, "run_loop", "eye_blink", 0, "reload_switch", "eye_blink", 1, "blink_loop", "reload_switch", 0, "hold_weapon_blend", "reload_switch", 1, "reload_scale", "reload_scale", 0, "reload", "hold_weapon_blend", 0, "blend_moving", "hold_weapon_blend", 1, "hold_weapon", "hold_weapon", 0, "hold_rifle", "hold_weapon", 1, "hold_pistol", "hold_weapon", 3, "hold_laser" ]
[sub_resource type="CapsuleShape" id=13]
radius = 0.4
height = 0.5
[sub_resource type="CapsuleMesh" id=14]
radius = 0.5
mid_height = 0.4
[sub_resource type="SpatialMaterial" id=2]
flags_transparent = true
params_diffuse_mode = 4
params_specular_mode = 3
albedo_color = Color( 0.0784314, 1, 0, 0.521569 )
[sub_resource type="CapsuleShape" id=57]
radius = 0.134913
height = 0.349327
[sub_resource type="Animation" id=6]
tracks/0/type = "value"
tracks/0/path = NodePath("CameraRot/SpringArm:translation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 0.287175, 1 ),
"update": 3,
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 0, 0 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("../UI/Crosshair:self_modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0.2 ),
"transitions": PoolRealArray( 1 ),
"update": 3,
"values": [ Color( 1, 1, 1, 0 ) ]
}
[sub_resource type="Animation" id=7]
tracks/0/type = "value"
tracks/0/path = NodePath("CameraRot/SpringArm:translation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 0.233259, 1 ),
"update": 3,
"values": [ Vector3( -0.6, -0.3, 1.1 ), Vector3( -0.6, -0.3, 1.1 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("../UI/Crosshair:self_modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0.2 ),
"transitions": PoolRealArray( 1 ),
"update": 3,
"values": [ Color( 1, 1, 1, 1 ) ]
}
[sub_resource type="DynamicFont" id=8]
size = 64
use_filter = true
font_data = ExtResource( 4 )
[sub_resource type="DynamicFont" id=9]
size = 32
use_filter = true
font_data = ExtResource( 4 )
[sub_resource type="SpatialMaterial" id=12]
albedo_color = Color( 0.47451, 0.654902, 1, 0.545098 )
[sub_resource type="SpatialMaterial" id=58]
vertex_color_use_as_albedo = true
albedo_color = Color( 0, 0, 0, 1 )
roughness = 0.0
emission_enabled = true
emission = Color( 0.976471, 0.792157, 0.305882, 1 )
emission_energy = 6.49
emission_operator = 0
emission_on_uv2 = false
[sub_resource type="ParticlesMaterial" id=59]
flag_align_y = true
direction = Vector3( 0, 0, -1 )
spread = 0.0
gravity = Vector3( 0, 0, 0 )
initial_velocity = 50.0
[sub_resource type="SphereMesh" id=60]
radius = 0.01
height = 1.0
[node name="Player" type="KinematicBody"]
collision_layer = 2
collision_mask = 21
script = ExtResource( 3 )
[node name="CenterOfMass" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.65, 0 )
[node name="Alunya" parent="CenterOfMass" instance=ExtResource( 5 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.65, 0 )
[node name="Colette_Mesh" parent="CenterOfMass/Alunya/Colette_Armature/Skeleton" index="0"]
material/0 = ExtResource( 7 )
material/1 = ExtResource( 7 )
material/2 = ExtResource( 11 )
material/3 = ExtResource( 18 )
material/4 = ExtResource( 9 )
material/5 = ExtResource( 9 )
material/6 = ExtResource( 10 )
[node name="GunBone" type="BoneAttachment" parent="CenterOfMass/Alunya/Colette_Armature/Skeleton" index="1"]
transform = Transform( -0.0218075, -0.185726, -0.982359, 0.00932966, -0.982524, 0.185551, -0.999653, -0.00511819, 0.0231594, -0.20156, 0.742102, -0.0365517 )
bone_name = "Hand.R"
[node name="Weapon" parent="CenterOfMass/Alunya/Colette_Armature/Skeleton/GunBone" instance=ExtResource( 6 )]
[node name="ShootFrom" type="Position3D" parent="CenterOfMass/Alunya/Colette_Armature/Skeleton/GunBone"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.4, 0 )
[node name="ShootParticle" type="Particles" parent="CenterOfMass/Alunya/Colette_Armature/Skeleton/GunBone/ShootFrom"]
transform = Transform( 1, 2.04891e-08, 0, 3.21306e-08, 1, 5.58794e-09, 0, 0, 1, -0.0632257, 0.1192, 0 )
material_override = ExtResource( 16 )
emitting = false
amount = 10
lifetime = 0.3
one_shot = true
explosiveness = 0.79
local_coords = false
process_material = SubResource( 49 )
draw_pass_1 = SubResource( 50 )
[node name="MuzzleFlash" type="Particles" parent="CenterOfMass/Alunya/Colette_Armature/Skeleton/GunBone/ShootFrom"]
transform = Transform( 1, 0, -2.00234e-08, 1.21072e-08, -4.37722e-08, -1, -2.98023e-08, 1, -4.74975e-08, -0.0632257, 0.1192, 0 )
material_override = SubResource( 51 )
emitting = false
amount = 1
lifetime = 0.1
one_shot = true
explosiveness = 1.0
process_material = SubResource( 54 )
draw_pass_1 = ExtResource( 13 )
[node name="ChestBone" type="BoneAttachment" parent="CenterOfMass/Alunya/Colette_Armature/Skeleton" index="2"]
transform = Transform( 1, 8.44443e-08, -3.9431e-07, -1.08001e-07, 0.998296, -0.0572337, 3.44282e-07, 0.0572337, 0.998296, 1.8397e-09, 1.00079, 0.038102 )
bone_name = "Chest"
[node name="Hitbox" type="KinematicBody" parent="CenterOfMass/Alunya/Colette_Armature/Skeleton/ChestBone"]
transform = Transform( 0.697, 4.07329e-05, 0.000196172, -2.55566e-05, 1.19195, 0.00618148, -0.000195948, -0.0105715, 0.696972, 0, 0.069, -0.031 )
collision_layer = 32
collision_mask = 0
script = ExtResource( 8 )
node_with_hit = NodePath("../../../../../..")
[node name="CollisionShape" type="CollisionShape" parent="CenterOfMass/Alunya/Colette_Armature/Skeleton/ChestBone/Hitbox"]
transform = Transform( 1, 0, -3.63798e-12, -1.81899e-12, -4.09782e-08, -1, 2.91038e-11, 1, -3.72529e-08, 7.7864e-06, -0.240094, 0.0223458 )
shape = SubResource( 56 )
[node name="AnimationPlayer" parent="CenterOfMass/Alunya" index="1"]
anims/blink-loop = SubResource( 69 )
[node name="DEBUG_direction" type="MeshInstance" parent="CenterOfMass/Alunya"]
transform = Transform( 0.1, 0, 0, 0, -8.74228e-09, -0.05, 0, 0.2, -2.18557e-09, 0, 0.653579, 1 )
visible = false
mesh = SubResource( 10 )
skeleton = NodePath("../../..")
material/0 = SubResource( 11 )
[node name="stride wheel" type="Spatial" parent="CenterOfMass/Alunya"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.65, 0 )
visible = false
[node name="MeshInstance" type="MeshInstance" parent="CenterOfMass/Alunya/stride wheel"]
transform = Transform( -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 )
visible = false
mesh = SubResource( 15 )
material/0 = null
[node name="line1" type="MeshInstance" parent="CenterOfMass/Alunya/stride wheel"]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
mesh = SubResource( 16 )
material/0 = SubResource( 17 )
[node name="line2" type="MeshInstance" parent="CenterOfMass/Alunya/stride wheel"]
mesh = SubResource( 16 )
material/0 = SubResource( 17 )
[node name="AnimationTree" type="AnimationTree" parent="."]
tree_root = SubResource( 19 )
anim_player = NodePath("../CenterOfMass/Alunya/AnimationPlayer")
active = true
parameters/blend_moving/blend_amount = -1.0
parameters/eye_blink/add_amount = 1.0
parameters/hold_weapon/current = 0
parameters/hold_weapon_blend/blend_amount = 0.0
parameters/reload_scale/scale = 1.0
parameters/reload_switch/active = false
parameters/run_scale/scale = 0.0
parameters/run_seek/seek_position = -1.0
parameters/walk_scale/scale = 0.0
parameters/walk_seek/seek_position = -1.0
[node name="BodyCollision" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.7, 0 )
shape = SubResource( 13 )
[node name="MeshInstance" type="MeshInstance" parent="BodyCollision"]
visible = false
mesh = SubResource( 14 )
skeleton = NodePath("../..")
material/0 = SubResource( 2 )
[node name="ForwardCollision" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.945, 0.347662 )
shape = SubResource( 57 )
[node name="CameraBase" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0 )
__meta__ = {
"_editor_description_": "Handles Y rotation (yaw)."
}
[node name="CameraRot" type="Spatial" parent="CameraBase"]
__meta__ = {
"_editor_description_": "Handles X rotation (pitch)."
}
[node name="SpringArm" type="SpringArm" parent="CameraBase/CameraRot"]
transform = Transform( -1, -1.11444e-07, 3.06191e-07, 0, 0.939693, 0.34202, -3.25841e-07, 0.34202, -0.939693, 0, 0, 0 )
spring_length = 2.4
[node name="Camera" type="Camera" parent="CameraBase/CameraRot/SpringArm"]
transform = Transform( 1, 1.42109e-14, -2.84217e-14, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
current = true
far = 300.0
script = ExtResource( 12 )
__meta__ = {
"_editor_description_": "Translated when aiming."
}
[node name="Animation" type="AnimationPlayer" parent="CameraBase"]
anims/far = SubResource( 6 )
anims/shoot = SubResource( 7 )
[node name="WeaponController" type="Node" parent="."]
script = ExtResource( 2 )
[node name="UI" type="Node" parent="."]
[node name="ColorRect" type="ColorRect" parent="UI"]
modulate = Color( 1, 1, 1, 0 )
margin_right = 4000.0
margin_bottom = 4000.0
grow_horizontal = 2
grow_vertical = 2
color = Color( 0, 0, 0, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Crosshair" type="TextureRect" parent="UI"]
self_modulate = Color( 1, 1, 1, 0 )
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -12.0
margin_top = -12.0
margin_right = 12.0
margin_bottom = 12.0
texture = ExtResource( 1 )
expand = true
stretch_mode = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="WeaponStatUI" type="Node" parent="UI"]
[node name="ColorRect" type="ColorRect" parent="UI/WeaponStatUI"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = -97.9998
margin_right = 287.999
margin_bottom = -20.0
color = Color( 1, 0, 0, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Health" type="Label" parent="UI/WeaponStatUI/ColorRect"]
anchor_bottom = 1.0
margin_left = 272.0
margin_right = 354.0
margin_bottom = 16.0002
custom_fonts/font = SubResource( 8 )
text = "99"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="AmmoLoaded" type="Label" parent="UI/WeaponStatUI/ColorRect"]
anchor_bottom = 1.0
margin_left = 16.0
margin_right = 98.0
margin_bottom = 16.0002
custom_fonts/font = SubResource( 8 )
text = "99"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="AmmoExtra" type="Label" parent="UI/WeaponStatUI/ColorRect"]
anchor_left = 0.366
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 0.912361
margin_top = -43.9998
margin_right = -83.999
margin_bottom = 0.000183105
grow_vertical = 0
custom_fonts/font = SubResource( 9 )
text = "99"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SoundEffects" type="Node" parent="."]
[node name="Step" type="AudioStreamPlayer" parent="SoundEffects"]
stream = ExtResource( 15 )
[node name="Jump" type="AudioStreamPlayer" parent="SoundEffects"]
stream = ExtResource( 17 )
[node name="Land" type="AudioStreamPlayer" parent="SoundEffects"]
stream = ExtResource( 17 )
[node name="FireCooldown" type="Timer" parent="."]
wait_time = 0.4
one_shot = true
autostart = true
[node name="ReloadTimer" type="Timer" parent="."]
wait_time = 0.05
one_shot = true
[node name="DEBUG_forward" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1 )
visible = false
[node name="DB_forward_mesh" type="MeshInstance" parent="DEBUG_forward"]
transform = Transform( 0.1, 0, 0, 0, -8.74228e-09, -0.05, 0, 0.2, -2.18557e-09, 0, 0, 0 )
visible = false
mesh = SubResource( 10 )
skeleton = NodePath("../..")
material/0 = SubResource( 12 )
[node name="GlobalShootParticle" type="Particles" parent="."]
transform = Transform( 1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, -0.0962614, 0.976735, 0.491067 )
material_override = SubResource( 58 )
emitting = false
amount = 1
local_coords = false
process_material = SubResource( 59 )
draw_pass_1 = SubResource( 60 )
[connection signal="timeout" from="FireCooldown" to="." method="_on_FireCooldown_timeout"]
[connection signal="timeout" from="ReloadTimer" to="." method="_on_ReloadTimer_timeout"]
[editable path="CenterOfMass/Alunya"]