49 lines
1.5 KiB
Plaintext
49 lines
1.5 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://cnetplayer0001"]
|
|
|
|
[ext_resource type="Script" path="res://Player/player.gd" id="1_player"]
|
|
|
|
[sub_resource type="SceneReplicationConfig" id="Repl_player"]
|
|
properties/0/path = NodePath(".:head_xform")
|
|
properties/0/spawn = true
|
|
properties/0/replication_mode = 1
|
|
properties/1/path = NodePath(".:left_xform")
|
|
properties/1/spawn = true
|
|
properties/1/replication_mode = 1
|
|
properties/2/path = NodePath(".:right_xform")
|
|
properties/2/spawn = true
|
|
properties/2/replication_mode = 1
|
|
properties/3/path = NodePath(".:net_heartbeat")
|
|
properties/3/spawn = true
|
|
properties/3/replication_mode = 1
|
|
|
|
[sub_resource type="StandardMaterial3D" id="Mat_head"]
|
|
albedo_color = Color(0.85, 0.7, 0.55, 1)
|
|
|
|
[sub_resource type="BoxMesh" id="Mesh_head"]
|
|
material = SubResource("Mat_head")
|
|
size = Vector3(0.18, 0.24, 0.16)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="Mat_hand"]
|
|
albedo_color = Color(0.2, 0.5, 0.9, 1)
|
|
|
|
[sub_resource type="BoxMesh" id="Mesh_hand"]
|
|
material = SubResource("Mat_hand")
|
|
size = Vector3(0.09, 0.05, 0.12)
|
|
|
|
[node name="Player" type="Node3D"]
|
|
script = ExtResource("1_player")
|
|
|
|
[node name="Avatar" type="Node3D" parent="."]
|
|
|
|
[node name="Head" type="MeshInstance3D" parent="Avatar"]
|
|
mesh = SubResource("Mesh_head")
|
|
|
|
[node name="LeftHand" type="MeshInstance3D" parent="Avatar"]
|
|
mesh = SubResource("Mesh_hand")
|
|
|
|
[node name="RightHand" type="MeshInstance3D" parent="Avatar"]
|
|
mesh = SubResource("Mesh_hand")
|
|
|
|
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
|
replication_config = SubResource("Repl_player")
|