2022-10-12 14:23:06 -04:00
|
|
|
[gd_scene load_steps=19 format=2]
|
2022-10-11 08:39:11 -04:00
|
|
|
|
|
|
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
2022-10-11 13:20:19 -04:00
|
|
|
[ext_resource path="res://BlenderStuff/Hand/protohand.obj" type="ArrayMesh" id=2]
|
2022-10-12 18:18:25 -04:00
|
|
|
[ext_resource path="res://Textures/skin-texture-mole-spot-freckles.jpg" type="Texture" id=3]
|
2022-10-11 13:48:59 -04:00
|
|
|
[ext_resource path="res://HUD.tscn" type="PackedScene" id=4]
|
2022-10-12 09:10:44 -04:00
|
|
|
[ext_resource path="res://Audio/whoosh.wav" type="AudioStream" id=5]
|
2022-10-12 14:23:06 -04:00
|
|
|
[ext_resource path="res://Materials/Black_Contour.tres" type="Material" id=6]
|
2022-10-11 19:11:46 -04:00
|
|
|
[ext_resource path="res://Scripts/HitBox.gd" type="Script" id=7]
|
2022-10-11 16:32:48 -04:00
|
|
|
[ext_resource path="res://Audio/step2.wav" type="AudioStream" id=8]
|
|
|
|
[ext_resource path="res://Audio/step3.wav" type="AudioStream" id=9]
|
|
|
|
[ext_resource path="res://Audio/step4.wav" type="AudioStream" id=10]
|
|
|
|
[ext_resource path="res://Audio/step1.wav" type="AudioStream" id=11]
|
2022-10-11 19:45:44 -04:00
|
|
|
[ext_resource path="res://Audio/mixkit-fast-whoosh-transition-1490.wav" type="AudioStream" id=12]
|
2022-10-11 08:39:11 -04:00
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape" id=2]
|
|
|
|
height = 3.0
|
|
|
|
|
|
|
|
[sub_resource type="CylinderShape" id=3]
|
|
|
|
|
2022-10-11 19:11:46 -04:00
|
|
|
[sub_resource type="BoxShape" id=7]
|
2022-10-11 21:21:27 -04:00
|
|
|
extents = Vector3( 0.983522, 2, 1.55035 )
|
2022-10-11 19:11:46 -04:00
|
|
|
|
2022-10-11 11:42:57 -04:00
|
|
|
[sub_resource type="SpatialMaterial" id=4]
|
2022-10-12 17:53:47 -04:00
|
|
|
render_priority = 2
|
2022-10-12 14:23:06 -04:00
|
|
|
next_pass = ExtResource( 6 )
|
2022-10-12 18:18:25 -04:00
|
|
|
flags_unshaded = true
|
2022-10-11 21:52:01 -04:00
|
|
|
flags_no_depth_test = true
|
2022-10-12 18:18:25 -04:00
|
|
|
albedo_color = Color( 0.952941, 0.835294, 0.647059, 1 )
|
2022-10-11 11:42:57 -04:00
|
|
|
albedo_texture = ExtResource( 3 )
|
2022-10-12 18:18:25 -04:00
|
|
|
uv1_scale = Vector3( 1.735, 1.992, 0.318 )
|
2022-10-11 11:42:57 -04:00
|
|
|
uv1_triplanar = true
|
|
|
|
|
2022-10-11 14:58:23 -04:00
|
|
|
[sub_resource type="Animation" id=5]
|
|
|
|
length = 0.001
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/path = NodePath("Head/HandParent/Hand:transform")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PoolRealArray( 0 ),
|
|
|
|
"transitions": PoolRealArray( 1 ),
|
|
|
|
"update": 0,
|
|
|
|
"values": [ Transform( -0.178665, 0.385633, 0.0293721, 0.386578, 0.177103, 0.0262457, 0.0115471, 0.0376593, -0.4242, 1.33036, -0.0718137, -2.73514 ) ]
|
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/path = NodePath("Head/HandParent/Hand:translation")
|
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"times": PoolRealArray( 0 ),
|
|
|
|
"transitions": PoolRealArray( 1 ),
|
|
|
|
"update": 0,
|
|
|
|
"values": [ Vector3( 0.329, 1.317, 0 ) ]
|
|
|
|
}
|
|
|
|
tracks/2/type = "value"
|
|
|
|
tracks/2/path = NodePath("Head/HandParent/Hand:rotation_degrees")
|
|
|
|
tracks/2/interp = 1
|
|
|
|
tracks/2/loop_wrap = true
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/keys = {
|
|
|
|
"times": PoolRealArray( 0 ),
|
|
|
|
"transitions": PoolRealArray( 1 ),
|
|
|
|
"update": 0,
|
|
|
|
"values": [ Vector3( -20.757, 0, 0 ) ]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id=6]
|
|
|
|
resource_name = "basic_slap"
|
2022-10-12 08:38:28 -04:00
|
|
|
length = 3.0
|
2022-10-11 14:58:23 -04:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/path = NodePath("Head/HandParent/Hand:translation")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/keys = {
|
2022-10-12 08:38:28 -04:00
|
|
|
"times": PoolRealArray( 0, 1, 2, 3 ),
|
2022-10-12 09:34:16 -04:00
|
|
|
"transitions": PoolRealArray( 1, 0.258816, 1, 1 ),
|
2022-10-11 14:58:23 -04:00
|
|
|
"update": 0,
|
2022-10-12 08:45:13 -04:00
|
|
|
"values": [ Vector3( 0, 0, 0 ), Vector3( -0.103, 2.756, -0.5 ), Vector3( 0, -3, -3 ), Vector3( 0, 0, 0 ) ]
|
2022-10-11 14:58:23 -04:00
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/path = NodePath("Head/HandParent/Hand:rotation_degrees")
|
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/keys = {
|
2022-10-12 08:38:28 -04:00
|
|
|
"times": PoolRealArray( 0, 1, 2, 3 ),
|
2022-10-12 09:34:16 -04:00
|
|
|
"transitions": PoolRealArray( 1, 1, 0.63728, 1 ),
|
2022-10-11 14:58:23 -04:00
|
|
|
"update": 0,
|
2022-10-12 08:45:13 -04:00
|
|
|
"values": [ Vector3( 0, 0, 0 ), Vector3( -56.146, -1.281, 0 ), Vector3( 110.146, -1.281, 0 ), Vector3( 0, 0, 0 ) ]
|
2022-10-11 14:58:23 -04:00
|
|
|
}
|
|
|
|
|
2022-10-11 08:39:11 -04:00
|
|
|
[node name="Player" type="KinematicBody"]
|
2022-10-12 17:53:47 -04:00
|
|
|
collision_layer = 9
|
2022-10-11 08:39:11 -04:00
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="."]
|
|
|
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
|
|
|
|
shape = SubResource( 2 )
|
|
|
|
|
|
|
|
[node name="Feet" type="CollisionShape" parent="."]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.49873, 0 )
|
|
|
|
shape = SubResource( 3 )
|
|
|
|
|
|
|
|
[node name="Head" type="Spatial" parent="."]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.84218, 0 )
|
|
|
|
|
|
|
|
[node name="Camera" type="Camera" parent="Head"]
|
2022-10-11 14:58:23 -04:00
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0154071, 0.355, -0.246618 )
|
2022-10-12 09:35:41 -04:00
|
|
|
doppler_tracking = 2
|
2022-10-11 21:21:27 -04:00
|
|
|
fov = 90.0
|
2022-10-11 11:42:57 -04:00
|
|
|
|
2022-10-11 19:11:46 -04:00
|
|
|
[node name="HitBox" type="Area" parent="Head/Camera"]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0154071, -0.355, 0.246618 )
|
2022-10-11 21:21:27 -04:00
|
|
|
monitoring = false
|
2022-10-11 19:11:46 -04:00
|
|
|
monitorable = false
|
|
|
|
script = ExtResource( 7 )
|
|
|
|
hitbox_type = 1
|
|
|
|
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Head/Camera/HitBox"]
|
2022-10-11 21:21:27 -04:00
|
|
|
transform = Transform( 1, 0, 0, 0, 0.3, 0, 0, 0, 0.8, 0, 0.414722, -2.0674 )
|
2022-10-11 19:11:46 -04:00
|
|
|
shape = SubResource( 7 )
|
|
|
|
|
|
|
|
[node name="PointTo" type="Spatial" parent="Head/Camera"]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1 )
|
|
|
|
|
2022-10-11 14:58:23 -04:00
|
|
|
[node name="HandParent" type="Spatial" parent="Head"]
|
|
|
|
transform = Transform( 0.0807126, 0.49343, -0.00351894, 0.445393, -0.0713166, 0.215728, 0.212391, -0.0379586, -0.451053, 0.736, -0.075, -1.998 )
|
|
|
|
|
|
|
|
[node name="Hand" type="MeshInstance" parent="Head/HandParent"]
|
|
|
|
transform = Transform( 0.426025, 0, 0, 0, 0.398372, 0.150985, 0, -0.150985, 0.398372, 0.329, 1.317, 0 )
|
2022-10-11 13:38:12 -04:00
|
|
|
cast_shadow = 0
|
2022-10-11 11:42:57 -04:00
|
|
|
mesh = ExtResource( 2 )
|
2022-10-11 14:58:23 -04:00
|
|
|
skeleton = NodePath("../../..")
|
2022-10-11 11:42:57 -04:00
|
|
|
material/0 = SubResource( 4 )
|
2022-10-11 09:26:29 -04:00
|
|
|
|
|
|
|
[node name="GroundCheck" type="RayCast" parent="."]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0 )
|
|
|
|
enabled = true
|
|
|
|
cast_to = Vector3( 0, -1.5, 0 )
|
2022-10-11 13:48:59 -04:00
|
|
|
|
|
|
|
[node name="HUD" parent="." instance=ExtResource( 4 )]
|
2022-10-11 14:57:56 -04:00
|
|
|
|
2022-10-11 14:58:23 -04:00
|
|
|
[node name="HandMovement" type="AnimationPlayer" parent="."]
|
|
|
|
anims/RESET = SubResource( 5 )
|
|
|
|
anims/basic_slap = SubResource( 6 )
|
2022-10-11 15:07:07 -04:00
|
|
|
|
2022-10-11 19:11:46 -04:00
|
|
|
[node name="SlapCooldown" type="Timer" parent="."]
|
|
|
|
wait_time = 0.5
|
|
|
|
|
2022-10-11 16:32:48 -04:00
|
|
|
[node name="Step2" type="AudioStreamPlayer3D" parent="."]
|
2022-10-11 16:46:59 -04:00
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 )
|
2022-10-11 16:32:48 -04:00
|
|
|
stream = ExtResource( 8 )
|
2022-10-11 22:15:52 -04:00
|
|
|
attenuation_model = 2
|
|
|
|
unit_db = 80.0
|
|
|
|
max_db = 6.0
|
2022-10-11 20:56:44 -04:00
|
|
|
bus = "SFX"
|
2022-10-11 16:32:48 -04:00
|
|
|
|
|
|
|
[node name="Step3" type="AudioStreamPlayer3D" parent="."]
|
2022-10-11 16:46:59 -04:00
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 )
|
2022-10-11 16:32:48 -04:00
|
|
|
stream = ExtResource( 9 )
|
2022-10-11 22:15:52 -04:00
|
|
|
attenuation_model = 2
|
|
|
|
unit_db = 80.0
|
|
|
|
max_db = 6.0
|
2022-10-11 20:56:44 -04:00
|
|
|
bus = "SFX"
|
2022-10-11 16:32:48 -04:00
|
|
|
|
|
|
|
[node name="Step1" type="AudioStreamPlayer3D" parent="."]
|
2022-10-11 16:46:59 -04:00
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 )
|
2022-10-11 16:32:48 -04:00
|
|
|
stream = ExtResource( 11 )
|
2022-10-11 22:15:52 -04:00
|
|
|
attenuation_model = 2
|
|
|
|
unit_db = 80.0
|
|
|
|
max_db = 6.0
|
2022-10-11 20:56:44 -04:00
|
|
|
bus = "SFX"
|
2022-10-11 16:32:48 -04:00
|
|
|
|
|
|
|
[node name="Step4" type="AudioStreamPlayer3D" parent="."]
|
2022-10-11 16:46:59 -04:00
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 )
|
2022-10-11 16:32:48 -04:00
|
|
|
stream = ExtResource( 10 )
|
2022-10-11 22:15:52 -04:00
|
|
|
attenuation_model = 2
|
|
|
|
unit_db = 80.0
|
|
|
|
max_db = 6.0
|
2022-10-11 20:56:44 -04:00
|
|
|
bus = "SFX"
|
2022-10-11 19:03:11 -04:00
|
|
|
|
|
|
|
[node name="AudioCharge" type="AudioStreamPlayer3D" parent="."]
|
2022-10-11 19:45:44 -04:00
|
|
|
stream = ExtResource( 12 )
|
2022-10-11 22:15:52 -04:00
|
|
|
attenuation_model = 2
|
|
|
|
unit_db = 60.0
|
|
|
|
max_db = 4.0
|
2022-10-11 19:03:11 -04:00
|
|
|
pitch_scale = 0.79
|
|
|
|
bus = "SFX"
|
|
|
|
doppler_tracking = 2
|
2022-10-11 19:45:44 -04:00
|
|
|
|
2022-10-12 09:10:44 -04:00
|
|
|
[node name="AudioWhoosh" type="AudioStreamPlayer" parent="."]
|
|
|
|
stream = ExtResource( 5 )
|
|
|
|
volume_db = -9.613
|
|
|
|
pitch_scale = 8.0
|
|
|
|
|
2022-10-11 19:45:44 -04:00
|
|
|
[connection signal="timeout" from="SlapCooldown" to="." method="_on_SlapCooldown_timeout"]
|