mirror of
https://github.com/tonytins/citylimits
synced 2025-12-15 04:34:44 -05:00
239 lines
9.6 KiB
Text
239 lines
9.6 KiB
Text
[gd_scene load_steps=23 format=3 uid="uid://dxx7ngi0emt8h"]
|
|
|
|
[ext_resource type="Script" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_lm5n8"]
|
|
[ext_resource type="Script" path="res://addons/phantom_camera/examples/scripts/3D/player_controller.gd" id="2_tsk60"]
|
|
[ext_resource type="Script" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3D.gd" id="3_bd7x3"]
|
|
[ext_resource type="Script" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="3_hbjve"]
|
|
[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3DPrototypeCubeDark.tscn" id="4_dfdlo"]
|
|
[ext_resource type="Script" path="res://addons/phantom_camera/examples/scripts/3D/path_follow.gd" id="5_vdqkm"]
|
|
[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="6_obo83"]
|
|
|
|
[sub_resource type="Resource" id="Resource_m07s2"]
|
|
script = ExtResource("3_hbjve")
|
|
duration = 0.6
|
|
transition = 1
|
|
ease = 2
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_vr5ym"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mjpjo"]
|
|
albedo_color = Color(0.988235, 0.498039, 0.498039, 1)
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ca4wa"]
|
|
|
|
[sub_resource type="Resource" id="Resource_rw4bl"]
|
|
script = ExtResource("3_hbjve")
|
|
duration = 1.0
|
|
transition = 3
|
|
ease = 2
|
|
|
|
[sub_resource type="Curve3D" id="Curve3D_b33df"]
|
|
_data = {
|
|
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -10),
|
|
"tilts": PackedFloat32Array(0, 0)
|
|
}
|
|
point_count = 2
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_aovgi"]
|
|
size = Vector3(6, 0.1, 10)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_0hdeh"]
|
|
size = Vector3(6, 0.1, 10)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_fsm1b"]
|
|
transparency = 1
|
|
albedo_color = Color(0.988235, 0.478431, 0.905882, 0.0901961)
|
|
|
|
[sub_resource type="Curve3D" id="Curve3D_8uw2x"]
|
|
_data = {
|
|
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0),
|
|
"tilts": PackedFloat32Array(0, 0)
|
|
}
|
|
point_count = 2
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_ctnqu"]
|
|
size = Vector3(12, 0.1, 4)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_f6dp8"]
|
|
size = Vector3(12, 0.1, 4)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gwnkj"]
|
|
transparency = 1
|
|
albedo_color = Color(0.568403, 0.988235, 0.762724, 0.0901961)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_7l3dh"]
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_as6ok"]
|
|
|
|
[node name="Root" type="Node3D"]
|
|
|
|
[node name="MainCamera3D" type="Camera3D" parent="."]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(0.999807, -0.00216249, 0.00184445, 0, 0.648836, 0.760728, -0.00284214, -0.760718, 0.648839, 4.00185, 2.99999, -1.51096)
|
|
fov = 90.0
|
|
|
|
[node name="PhantomCameraHost" type="Node" parent="MainCamera3D"]
|
|
script = ExtResource("1_lm5n8")
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0)
|
|
metadata/_edit_lock_ = true
|
|
|
|
[node name="PlayerPhantomCamera3D" type="Node3D" parent="."]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(0.999807, -0.00216249, 0.00184445, 0, 0.648836, 0.760728, -0.00284214, -0.760718, 0.648839, 4.00185, 2.99999, -1.51096)
|
|
script = ExtResource("3_bd7x3")
|
|
priority_override = false
|
|
priority = 3
|
|
follow_mode = 2
|
|
follow_target = NodePath("../PlayerCharacterBody3D")
|
|
follow_parameters/target_offset = Vector3(0, 2.5, 2)
|
|
follow_parameters/damping = true
|
|
follow_parameters/damping_value = 10.0
|
|
look_at_mode = 0
|
|
tween_parameters = SubResource("Resource_m07s2")
|
|
tween_on_load = false
|
|
inactive_update_mode = 0
|
|
camera_3D_resource = null
|
|
|
|
[node name="PlayerCharacterBody3D" type="CharacterBody3D" parent="."]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.00185, 0.499993, -3.51096)
|
|
script = ExtResource("2_tsk60")
|
|
SPEED = 3.5
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="PlayerMeshInstance3D" type="MeshInstance3D" parent="PlayerCharacterBody3D"]
|
|
mesh = SubResource("CapsuleMesh_vr5ym")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_mjpjo")
|
|
|
|
[node name="PlayerArea3D" type="Area3D" parent="PlayerCharacterBody3D"]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="PlayerCharacterBody3D/PlayerArea3D"]
|
|
shape = SubResource("CapsuleShape3D_ca4wa")
|
|
|
|
[node name="PlayerCollisionShape3D" type="CollisionShape3D" parent="PlayerCharacterBody3D"]
|
|
shape = SubResource("CapsuleShape3D_ca4wa")
|
|
|
|
[node name="Paths" type="Node" parent="."]
|
|
|
|
[node name="PathPhantomCamera3D" type="Node3D" parent="Paths"]
|
|
transform = Transform3D(-4.37114e-08, -1, -4.37114e-08, 0, -4.37114e-08, 1, -1, 4.37114e-08, 1.91069e-15, 3.73176, 7.9199, -4.8731)
|
|
script = ExtResource("3_bd7x3")
|
|
priority_override = false
|
|
priority = 2
|
|
follow_mode = 4
|
|
follow_target = NodePath("../../PlayerCharacterBody3D")
|
|
follow_path = NodePath("../FollowPath")
|
|
follow_parameters/damping = true
|
|
follow_parameters/damping_value = 3.0
|
|
look_at_mode = 0
|
|
tween_parameters = SubResource("Resource_rw4bl")
|
|
tween_on_load = false
|
|
inactive_update_mode = 0
|
|
camera_3D_resource = null
|
|
|
|
[node name="FollowPath" type="Path3D" parent="Paths"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.73176, 7.9199, -4.8731)
|
|
curve = SubResource("Curve3D_b33df")
|
|
|
|
[node name="StraightPathFollowTrigger" type="Area3D" parent="Paths" node_paths=PackedStringArray("path_pcam")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, -0.45, -10)
|
|
priority = 5
|
|
script = ExtResource("5_vdqkm")
|
|
path_pcam = NodePath("../PathPhantomCamera3D")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Paths/StraightPathFollowTrigger"]
|
|
shape = SubResource("BoxShape3D_aovgi")
|
|
|
|
[node name="NPCInteractionZoneMesh" type="MeshInstance3D" parent="Paths/StraightPathFollowTrigger/CollisionShape3D"]
|
|
mesh = SubResource("BoxMesh_0hdeh")
|
|
skeleton = NodePath("../../../..")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_fsm1b")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="PathPhantomCamera3D2" type="Node3D" parent="Paths"]
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 4.00185, 7.9199, -16.7205)
|
|
visible = false
|
|
script = ExtResource("3_bd7x3")
|
|
priority_override = false
|
|
priority = 2
|
|
follow_mode = 4
|
|
follow_target = NodePath("../../PlayerCharacterBody3D")
|
|
follow_path = NodePath("../FollowPath2")
|
|
follow_parameters/damping = true
|
|
follow_parameters/damping_value = 3.0
|
|
look_at_mode = 0
|
|
tween_parameters = SubResource("Resource_rw4bl")
|
|
tween_on_load = false
|
|
inactive_update_mode = 0
|
|
camera_3D_resource = null
|
|
|
|
[node name="FollowPath2" type="Path3D" parent="Paths"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.92937, 7.9199, -16.7205)
|
|
curve = SubResource("Curve3D_8uw2x")
|
|
|
|
[node name="StraightPathFollowTrigger2" type="Area3D" parent="Paths" node_paths=PackedStringArray("path_pcam")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, -17)
|
|
priority = 5
|
|
script = ExtResource("5_vdqkm")
|
|
path_pcam = NodePath("../PathPhantomCamera3D2")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Paths/StraightPathFollowTrigger2"]
|
|
shape = SubResource("BoxShape3D_ctnqu")
|
|
|
|
[node name="NPCInteractionZoneMesh" type="MeshInstance3D" parent="Paths/StraightPathFollowTrigger2/CollisionShape3D"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.45, 0)
|
|
mesh = SubResource("BoxMesh_f6dp8")
|
|
skeleton = NodePath("../../../..")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_gwnkj")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="Environment" type="Node" parent="."]
|
|
|
|
[node name="Floor" parent="Environment" instance=ExtResource("4_dfdlo")]
|
|
transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0)
|
|
metadata/_edit_lock_ = true
|
|
|
|
[node name="Floor3" parent="Environment" instance=ExtResource("4_dfdlo")]
|
|
transform = Transform3D(6, 0, 0, 0, 1, 0, 0, 0, 1, 3.6, 0, -1.5)
|
|
|
|
[node name="Floor2" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")]
|
|
transform = Transform3D(0.166667, 0, 0, 0, 3, 0, 0, 0, 14, -0.516667, 1, -6.5)
|
|
|
|
[node name="Floor5" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")]
|
|
transform = Transform3D(0.166667, 0, 0, 0, 3, 0, 0, 0, 14, 0.65, 1, -6.5)
|
|
|
|
[node name="Floor4" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")]
|
|
transform = Transform3D(2, 0, 0, 0, 3, 0, 0, 0, 1, 0.0666667, 1, -18)
|
|
|
|
[node name="Floor6" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")]
|
|
transform = Transform3D(0.333333, 0, 0, 0, 3, 0, 0, 0, 1, -0.766667, 1, -13)
|
|
mesh = SubResource("BoxMesh_7l3dh")
|
|
|
|
[node name="Floor8" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")]
|
|
transform = Transform3D(0.166667, 0, 0, 0, 3, 0, 0, 0, 6, -1.01667, 1, -15.5)
|
|
mesh = SubResource("BoxMesh_as6ok")
|
|
|
|
[node name="Floor9" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")]
|
|
transform = Transform3D(0.166667, 0, 0, 0, 3, 0, 0, 0, 6, 1.15, 1, -15.5)
|
|
mesh = SubResource("BoxMesh_as6ok")
|
|
|
|
[node name="Floor7" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")]
|
|
transform = Transform3D(0.333333, 0, 0, 0, 3, 0, 0, 0, 1, 0.9, 1, -13)
|
|
mesh = SubResource("BoxMesh_7l3dh")
|
|
|
|
[node name="NPCDescriptionLabel" type="Label3D" parent="Environment"]
|
|
transform = Transform3D(5.21541e-08, -1, -7.7486e-07, -1.10675e-15, 2.23517e-07, 0.999999, -0.999999, -7.45058e-08, -5.68829e-14, 0.568982, 2.59595, -8.78089)
|
|
text = "Camera follows player while confined to a Path3D"
|
|
font = ExtResource("6_obo83")
|
|
font_size = 64
|
|
|
|
[node name="MovementInstructionsLabel" type="Label3D" parent="Environment"]
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 4.0203, -0.455369, -2.69276)
|
|
modulate = Color(0.294118, 1, 0.631373, 1)
|
|
text = "[WASD] to move"
|
|
font = ExtResource("6_obo83")
|
|
font_size = 48
|