33 lines
1.4 KiB
Text
33 lines
1.4 KiB
Text
[gd_scene load_steps=6 format=3 uid="uid://ctu0cdqcefrwg"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/player/player.gd" id="1_1tqna"]
|
|
[ext_resource type="Script" path="res://scripts/player/cameraController.gd" id="1_v2q4i"]
|
|
[ext_resource type="PackedScene" uid="uid://c2x0xjb2ypfpq" path="res://content/rifle/weapon.tscn" id="3_5cmgy"]
|
|
[ext_resource type="Script" path="res://scripts/player/weapon.gd" id="4_nfpgt"]
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_w4dyg"]
|
|
margin = 0.332
|
|
|
|
[node name="Player" type="CharacterBody3D"]
|
|
axis_lock_angular_x = true
|
|
axis_lock_angular_z = true
|
|
script = ExtResource("1_1tqna")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
shape = SubResource("CylinderShape3D_w4dyg")
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="CollisionShape3D" node_paths=PackedStringArray("PlayerNode")]
|
|
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 0.68094, 0)
|
|
keep_aspect = 0
|
|
fov = 80.0
|
|
script = ExtResource("1_v2q4i")
|
|
PlayerNode = NodePath("../..")
|
|
|
|
[node name="Weapon" parent="CollisionShape3D/Camera3D" instance=ExtResource("3_5cmgy")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0655423, 0)
|
|
script = ExtResource("4_nfpgt")
|
|
|
|
[node name="CooldownTimer" type="Timer" parent="CollisionShape3D/Camera3D/Weapon"]
|
|
wait_time = 0.3
|
|
one_shot = true
|