ce39b237c3
- Copied fps_camera.gd from client/characters/character/ to scripts/characters/ - Updated player.tscn to reference new path - The client/ directory has its own project.godot so Godot ignores it during export - Zero export errors now
38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
[gd_scene format=3 uid="uid://player"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/network/player.gd" id="1_player"]
|
|
[ext_resource type="Script" path="res://scripts/characters/fps_camera.gd" id="2_fps_camera"]
|
|
[ext_resource type="Script" path="res://scripts/network/player_net_input.gd" id="3_player_net_input"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="1"]
|
|
radius = 0.4
|
|
height = 1.8
|
|
|
|
[sub_resource type="BoxMesh" id="2"]
|
|
size = Vector3(0.8, 0.8, 0.8)
|
|
|
|
[node name="Player" type="CharacterBody3D"]
|
|
script = ExtResource("1_player")
|
|
movement_speed = 5.0
|
|
local_walk_speed = 5.0
|
|
local_sprint_speed = 8.0
|
|
local_crouch_speed = 2.5
|
|
local_jump_velocity = 4.5
|
|
local_gravity = 15.0
|
|
local_acceleration = 12.0
|
|
|
|
[node name="FpsCamera" type="Camera3D" parent="."]
|
|
script = ExtResource("2_fps_camera")
|
|
current = false
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
|
|
shape = SubResource("1")
|
|
|
|
[node name="PlayerNetInput" type="Node" parent="."]
|
|
script = ExtResource("3_player_net_input")
|
|
|
|
[node name="Mesh" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
mesh = SubResource("2")
|