mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-16 00:44:50 +00:00
292 lines
10 KiB
Text
292 lines
10 KiB
Text
[gd_scene load_steps=21 format=3 uid="uid://cbhx1xme0sb7k"]
|
|
|
|
[ext_resource type="Script" path="res://entities/player/player.gd" id="1_mk68k"]
|
|
[ext_resource type="PackedScene" uid="uid://drbefw6akui2v" path="res://entities/player/assets/vanguard.tscn" id="2_beyex"]
|
|
[ext_resource type="Shape3D" uid="uid://cb8esdlnottdn" path="res://entities/player/collision_shape.tres" id="2_vjqny"]
|
|
[ext_resource type="PackedScene" uid="uid://bcv81ku26xo" path="res://interfaces/hud/hud.tscn" id="3_ccety"]
|
|
[ext_resource type="PackedScene" uid="uid://c8co0qa2omjmh" path="res://entities/weapons/space_gun/space_gun.tscn" id="4_rm831"]
|
|
[ext_resource type="PackedScene" uid="uid://dn1tcakam5egs" path="res://entities/weapons/space_gun/projectile.tscn" id="5_o1jib"]
|
|
[ext_resource type="PackedScene" uid="uid://bof3mg7wgxrmn" path="res://components/health_component.tscn" id="5_t6i6e"]
|
|
[ext_resource type="Script" path="res://entities/player/player_input.gd" id="6_ymcrr"]
|
|
[ext_resource type="PackedScene" uid="uid://dsysi2rd3bu76" path="res://interfaces/hud/iff.tscn" id="7_8hc80"]
|
|
[ext_resource type="PackedScene" uid="uid://2t8ql8pkxv6c" path="res://components/flag_carry_component.tscn" id="7_e7s1a"]
|
|
|
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_clur0"]
|
|
resource_local_to_scene = true
|
|
bounce = 1.0
|
|
absorbent = true
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1hdqa"]
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_vmqfq"]
|
|
material = SubResource("StandardMaterial3D_1hdqa")
|
|
radius = 0.25
|
|
|
|
[sub_resource type="Animation" id="Animation_cb46l"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("SpringArm3D/Inventory/SpaceGun:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 3.14159, 0)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("SpringArm3D/Inventory/SpaceGun:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(0.244668, -0.229311, -0.30332)]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("SpringArm3D:position")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0.5, 0)]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("SpringArm3D:rotation")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_yqgrk"]
|
|
resource_name = "death"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("SpringArm3D:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0.5, 0), Vector3(0, -0.114794, 0)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("SpringArm3D:rotation")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0), Vector3(-1.35254, 0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_as2v0"]
|
|
resource_name = "idle"
|
|
length = 3.0
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("SpringArm3D/Inventory/SpaceGun:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 1.5),
|
|
"transitions": PackedFloat32Array(-2, -2),
|
|
"update": 0,
|
|
"values": [Vector3(0, 3.14159, 0), Vector3(0.114371, 3.14159, -1.73453e-08)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("SpringArm3D/Inventory/SpaceGun:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 1.5),
|
|
"transitions": PackedFloat32Array(-2, -2),
|
|
"update": 0,
|
|
"values": [Vector3(0.244668, -0.229311, -0.30332), Vector3(0.244668, -0.26057, -0.30332)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_p84l0"]
|
|
resource_name = "shoot"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("SpringArm3D/Inventory/SpaceGun:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 1),
|
|
"transitions": PackedFloat32Array(0.5, 1),
|
|
"update": 0,
|
|
"values": [Vector3(-0.0584511, 3.14159, 8.83593e-09), Vector3(0, 3.14159, 0)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("SpringArm3D/Inventory/SpaceGun:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 1),
|
|
"transitions": PackedFloat32Array(0.5, 1),
|
|
"update": 0,
|
|
"values": [Vector3(0.244668, -0.204488, -0.268482), Vector3(0.244668, -0.229311, -0.30332)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_hg307"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_cb46l"),
|
|
"death": SubResource("Animation_yqgrk"),
|
|
"idle": SubResource("Animation_as2v0"),
|
|
"shoot": SubResource("Animation_p84l0")
|
|
}
|
|
|
|
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_rqdp6"]
|
|
properties/0/path = NodePath(".:linear_velocity")
|
|
properties/0/spawn = true
|
|
properties/0/replication_mode = 1
|
|
properties/1/path = NodePath(".:position")
|
|
properties/1/spawn = true
|
|
properties/1/replication_mode = 1
|
|
properties/2/path = NodePath(".:player_id")
|
|
properties/2/spawn = true
|
|
properties/2/replication_mode = 2
|
|
properties/3/path = NodePath("HealthComponent:health")
|
|
properties/3/spawn = true
|
|
properties/3/replication_mode = 2
|
|
properties/4/path = NodePath(".:player_state")
|
|
properties/4/spawn = true
|
|
properties/4/replication_mode = 2
|
|
properties/5/path = NodePath(".:nickname")
|
|
properties/5/spawn = true
|
|
properties/5/replication_mode = 2
|
|
|
|
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_5j4ew"]
|
|
properties/0/path = NodePath(".:direction")
|
|
properties/0/spawn = false
|
|
properties/0/replication_mode = 1
|
|
properties/1/path = NodePath(".:jetting")
|
|
properties/1/spawn = false
|
|
properties/1/replication_mode = 2
|
|
properties/2/path = NodePath(".:camera_rotation")
|
|
properties/2/spawn = false
|
|
properties/2/replication_mode = 1
|
|
properties/3/path = NodePath(".:skiing")
|
|
properties/3/spawn = false
|
|
properties/3/replication_mode = 2
|
|
|
|
[node name="Player" type="RigidBody3D"]
|
|
collision_mask = 2147483649
|
|
axis_lock_angular_x = true
|
|
axis_lock_angular_y = true
|
|
axis_lock_angular_z = true
|
|
mass = 75.0
|
|
physics_material_override = SubResource("PhysicsMaterial_clur0")
|
|
continuous_cd = true
|
|
script = ExtResource("1_mk68k")
|
|
jump_height = 1.5
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
visible = false
|
|
mesh = SubResource("CapsuleMesh_vmqfq")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
shape = ExtResource("2_vjqny")
|
|
|
|
[node name="ShapeCast3D" type="ShapeCast3D" parent="."]
|
|
transform = Transform3D(1.05, 0, 0, 0, 1.05, 0, 0, 0, 1.05, 0, 0, 0)
|
|
shape = ExtResource("2_vjqny")
|
|
target_position = Vector3(0, 0, 0)
|
|
collision_mask = 2147483656
|
|
collide_with_areas = true
|
|
|
|
[node name="Sensor" type="Area3D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 8
|
|
monitorable = false
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Sensor"]
|
|
shape = ExtResource("2_vjqny")
|
|
|
|
[node name="HUD" parent="." instance=ExtResource("3_ccety")]
|
|
|
|
[node name="SpringArm3D" type="SpringArm3D" parent="."]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
spring_length = 0.0
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="SpringArm3D"]
|
|
fov = 100.0
|
|
near = 0.1
|
|
|
|
[node name="Inventory" type="Node3D" parent="SpringArm3D"]
|
|
|
|
[node name="SpaceGun" parent="SpringArm3D/Inventory" instance=ExtResource("4_rm831")]
|
|
transform = Transform3D(-1, 0, 2.53518e-06, 0, 1, 0, -2.53518e-06, 0, -1, 0.244668, -0.229311, -0.30332)
|
|
PROJECTILE = ExtResource("5_o1jib")
|
|
|
|
[node name="SpineIKTarget" type="Node3D" parent="SpringArm3D"]
|
|
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
|
|
|
|
[node name="FlagCarryAttachment" type="Node3D" parent="SpringArm3D"]
|
|
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, -0.620994, -0.287925)
|
|
|
|
[node name="HealthComponent" parent="." instance=ExtResource("5_t6i6e")]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="HealthComponent"]
|
|
shape = ExtResource("2_vjqny")
|
|
|
|
[node name="FlagCarryComponent" parent="." node_paths=PackedStringArray("attachment", "sensor") instance=ExtResource("7_e7s1a")]
|
|
attachment = NodePath("../SpringArm3D/FlagCarryAttachment")
|
|
sensor = NodePath("../Sensor")
|
|
|
|
[node name="ThirdPerson" type="Node3D" parent="."]
|
|
|
|
[node name="PlayerMesh" parent="ThirdPerson" node_paths=PackedStringArray("spine_ik_target_attachment") instance=ExtResource("2_beyex")]
|
|
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
|
|
spine_ik_target_attachment = NodePath("../../SpringArm3D/SpineIKTarget")
|
|
|
|
[node name="IFFAttachment" type="Node3D" parent="ThirdPerson"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.27457, 0)
|
|
|
|
[node name="IFF" parent="ThirdPerson" node_paths=PackedStringArray("attach_point", "player") instance=ExtResource("7_8hc80")]
|
|
attach_point = NodePath("../IFFAttachment")
|
|
player = NodePath("../..")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_hg307")
|
|
}
|
|
autoplay = "idle"
|
|
playback_default_blend_time = 0.05
|
|
|
|
[node name="ServerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
|
replication_config = SubResource("SceneReplicationConfig_rqdp6")
|
|
|
|
[node name="PlayerInput" type="MultiplayerSynchronizer" parent="."]
|
|
root_path = NodePath(".")
|
|
replication_config = SubResource("SceneReplicationConfig_5j4ew")
|
|
script = ExtResource("6_ymcrr")
|