-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMain.tscn
160 lines (119 loc) · 8.96 KB
/
Main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[gd_scene load_steps=18 format=3 uid="uid://cukwvv040bdb2"]
[ext_resource type="Script" path="res://Scripts/Root.cs" id="1_7rc4o"]
[ext_resource type="Script" path="res://Scripts/Player.cs" id="1_lsgow"]
[ext_resource type="PackedScene" uid="uid://b8et43l2djrlf" path="res://Scenes/Gun.tscn" id="3_vjf6c"]
[ext_resource type="PackedScene" uid="uid://5111d2afdnh7" path="res://Scenes/zombie_prefab.tscn" id="4_xudhw"]
[sub_resource type="NavigationMesh" id="NavigationMesh_l8r4j"]
vertices = PackedVector3Array(-21.75, 0.5, -28.75, -28.75, 0.5, -28.75, -28.75, 0.5, -21.75, -28.75, 0.5, 21.75, -28.75, 0.5, 29, -21.75, 0.5, 29, 29, 0.5, -21.75, 29, 0.5, -28.75, 21.75, 0.5, -28.75, 21.75, 0.5, 29, 29, 0.5, 29, 29, 0.5, 21.75, -14.5, 0.5, -28.75, -21.75, 0.5, -28.75, -28.75, 0.5, -21.75, -28.75, 0.5, -14.5, -28.75, 0.5, 21.75, -21.75, 0.5, 29, -14.5, 0.5, 29, 29, 0.5, -14.5, 29, 0.5, -21.75, 21.75, 0.5, -28.75, 14.5, 0.5, -28.75, 14.5, 0.5, 29, 21.75, 0.5, 29, 29, 0.5, 21.75, -28.75, 0.5, 7.25, -28.75, 0.5, 14.5, -7.25, 0.5, 29, -1.90735e-06, 0.5, 29, -28.75, 0.5, 14.5, -28.75, 0.5, 21.75, -14.5, 0.5, 29, -7.25, 0.5, 29, 29, 0.5, 0, 29, 0.5, -7.25, 7.25, 0.5, -28.75, -1.90735e-06, 0.5, -28.75, 14.5, 0.5, 29, 29, 0.5, 21.75, 29, 0.5, 14.5, 7.25, 0.5, 29, -7.25, 0.5, -28.75, -14.5, 0.5, -28.75, -28.75, 0.5, -14.5, -28.75, 0.5, -7.25, 7.25, 0.5, 29, 29, 0.5, 14.5, 29, 0.5, 7.25, -1.90735e-06, 0.5, 29, 29, 0.5, -7.25, 29, 0.5, -14.5, 14.5, 0.5, -28.75, 7.25, 0.5, -28.75, -1.90735e-06, 0.5, -28.75, -7.25, 0.5, -28.75, -28.75, 0.5, -7.25, -28.75, 0.5, 0, -28.75, 0.5, 0, -28.75, 0.5, 7.25, -1.90735e-06, 0.5, 29, 29, 0.5, 7.25, 29, 0.5, 0, -1.90735e-06, 0.5, -28.75)
polygons = [PackedInt32Array(2, 1, 0), PackedInt32Array(5, 4, 3), PackedInt32Array(8, 7, 6), PackedInt32Array(11, 10, 9), PackedInt32Array(13, 12, 14), PackedInt32Array(14, 12, 15), PackedInt32Array(16, 18, 17), PackedInt32Array(20, 19, 21), PackedInt32Array(21, 19, 22), PackedInt32Array(25, 24, 23), PackedInt32Array(27, 26, 28), PackedInt32Array(28, 26, 29), PackedInt32Array(31, 30, 32), PackedInt32Array(32, 30, 33), PackedInt32Array(35, 34, 36), PackedInt32Array(36, 34, 37), PackedInt32Array(39, 38, 40), PackedInt32Array(40, 38, 41), PackedInt32Array(43, 42, 44), PackedInt32Array(44, 42, 45), PackedInt32Array(47, 46, 48), PackedInt32Array(48, 46, 49), PackedInt32Array(51, 50, 52), PackedInt32Array(52, 50, 53), PackedInt32Array(55, 54, 56), PackedInt32Array(56, 54, 57), PackedInt32Array(59, 58, 60), PackedInt32Array(60, 58, 61), PackedInt32Array(61, 58, 62), PackedInt32Array(62, 58, 63)]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_kml6o"]
sky_top_color = Color(0.698039, 0.823529, 1, 1)
ground_bottom_color = Color(0.635294, 0.658824, 0.666667, 1)
[sub_resource type="Sky" id="Sky_7gfy4"]
sky_material = SubResource("ProceduralSkyMaterial_kml6o")
[sub_resource type="Environment" id="Environment_drsv7"]
background_mode = 2
sky = SubResource("Sky_7gfy4")
ambient_light_sky_contribution = 0.0
reflected_light_source = 1
tonemap_mode = 3
ssr_max_steps = 512
ssr_depth_tolerance = 0.1
glow_intensity = 0.87
glow_bloom = 0.14
glow_blend_mode = 1
glow_hdr_threshold = 0.9
glow_hdr_scale = 0.0
glow_hdr_luminance_cap = 256.0
glow_map_strength = 1.0
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_y0jos"]
albedo_color = Color(0, 0, 0, 1)
[sub_resource type="PlaneMesh" id="PlaneMesh_uvkij"]
material = SubResource("StandardMaterial3D_y0jos")
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_r84e1"]
data = PackedVector3Array(1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0, -1, 1, 0, -1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_pn71f"]
albedo_color = Color(0, 0, 0, 1)
[sub_resource type="BoxMesh" id="BoxMesh_mhqe8"]
material = SubResource("StandardMaterial3D_pn71f")
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_wr87x"]
data = PackedVector3Array(-0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5)
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_jfdhj"]
dof_blur_far_distance = 40.0
dof_blur_near_distance = 0.33
[sub_resource type="CapsuleMesh" id="CapsuleMesh_d4kws"]
height = 3.0
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_m1sgo"]
[node name="Root" type="Node3D"]
script = ExtResource("1_7rc4o")
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="."]
navigation_mesh = SubResource("NavigationMesh_l8r4j")
[node name="Environment" type="Node3D" parent="NavigationRegion3D"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="NavigationRegion3D/Environment"]
environment = SubResource("Environment_drsv7")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="NavigationRegion3D/Environment"]
transform = Transform3D(-1, 8.05326e-08, -3.40183e-08, 0, 0.389124, 0.921186, 8.74228e-08, 0.921186, -0.389124, 0, 4.60946, 0)
light_energy = 2.0
shadow_enabled = true
directional_shadow_blend_splits = true
directional_shadow_max_distance = 50.0
[node name="Plane" type="MeshInstance3D" parent="NavigationRegion3D/Environment"]
transform = Transform3D(30, 0, 0, 0, 30, 0, 0, 0, 30, 0, 0, 0)
mesh = SubResource("PlaneMesh_uvkij")
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/Environment/Plane"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/Environment/Plane/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_r84e1")
[node name="Wall" type="MeshInstance3D" parent="NavigationRegion3D/Environment"]
transform = Transform3D(60, 0, 0, 0, 4, 0, 0, 0, 1, 0, 2, 30)
mesh = SubResource("BoxMesh_mhqe8")
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/Environment/Wall"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/Environment/Wall/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_wr87x")
[node name="Wall2" type="MeshInstance3D" parent="NavigationRegion3D/Environment"]
transform = Transform3D(60, 0, 0, 0, 4, 0, 0, 0, 1, 0, 2, -30)
mesh = SubResource("BoxMesh_mhqe8")
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/Environment/Wall2"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/Environment/Wall2/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_wr87x")
[node name="Wall3" type="MeshInstance3D" parent="NavigationRegion3D/Environment"]
transform = Transform3D(-2.57897e-06, 0, 1, 0, 4, 0, -59, 0, -4.37114e-08, 30, 2, 0)
mesh = SubResource("BoxMesh_mhqe8")
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/Environment/Wall3"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/Environment/Wall3/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_wr87x")
[node name="Wall4" type="MeshInstance3D" parent="NavigationRegion3D/Environment"]
transform = Transform3D(-2.57897e-06, 0, 1, 0, 4, 0, -59, 0, -4.37114e-08, -30, 2, 0)
mesh = SubResource("BoxMesh_mhqe8")
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/Environment/Wall4"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/Environment/Wall4/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_wr87x")
[node name="Player" type="CharacterBody3D" parent="."]
transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, 0, 0, -10.8272)
script = ExtResource("1_lsgow")
MouseSensitivity = 0.005
GravityForce = 7.0
MoveDampening = 10.0
[node name="Camera3D" type="Camera3D" parent="Player"]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 2.15996, 0.137482)
attributes = SubResource("CameraAttributesPractical_jfdhj")
current = true
near = 0.001
[node name="RayCast" type="RayCast3D" parent="Player/Camera3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.91036e-08, 0, -0.332907)
target_position = Vector3(0, 0, -200)
[node name="Gun" parent="Player/Camera3D" instance=ExtResource("3_vjf6c")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.06, -0.251)
ADS_Position = Vector3(0, -0.06, -0.251)
ADS_FOV_World = 70.0
ClipAmmo = 60
Clips = 100
FireRate = 0.1
[node name="PlayerMesh" type="MeshInstance3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
visible = false
cast_shadow = 0
mesh = SubResource("CapsuleMesh_d4kws")
[node name="PlayerCollision" type="CollisionShape3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_m1sgo")
[node name="Zombie" parent="." instance=ExtResource("4_xudhw")]