Show network Ping & start AI behaviour tree
This commit is contained in:
@@ -6,15 +6,15 @@
|
||||
[ext_resource type="Shader" path="res://assets/shader/crosshair.gdshader" id="3_3vnqi"]
|
||||
[ext_resource type="Script" path="res://entities/PlayerSync.gd" id="5_828co"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_6d8kk"]
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_isqk5"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ikq67"]
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1h62m"]
|
||||
albedo_texture = ExtResource("2_mxb5i")
|
||||
uv1_scale = Vector3(3, 2, 1)
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_4e7dm"]
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_w15yb"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_08bwh"]
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_loyla"]
|
||||
shader = ExtResource("3_3vnqi")
|
||||
shader_parameter/center_enabled = null
|
||||
shader_parameter/legs_enabled = null
|
||||
@@ -29,7 +29,7 @@ shader_parameter/len = null
|
||||
shader_parameter/spacing = null
|
||||
shader_parameter/spread = null
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_rfdcv"]
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_qcftn"]
|
||||
properties/0/path = NodePath("Body/Head:rotation")
|
||||
properties/0/spawn = true
|
||||
properties/0/sync = true
|
||||
@@ -51,14 +51,14 @@ script = ExtResource("1")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("CylinderShape3D_6d8kk")
|
||||
shape = SubResource("CylinderShape3D_isqk5")
|
||||
|
||||
[node name="Body" type="Node3D" parent="."]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Body"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
material_override = SubResource("StandardMaterial3D_ikq67")
|
||||
mesh = SubResource("CylinderMesh_4e7dm")
|
||||
material_override = SubResource("StandardMaterial3D_1h62m")
|
||||
mesh = SubResource("CylinderMesh_w15yb")
|
||||
skeleton = NodePath("../../CollisionShape3D")
|
||||
|
||||
[node name="Head" type="Node3D" parent="Body"]
|
||||
@@ -68,7 +68,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.75, 0)
|
||||
script = ExtResource("2_dl1i1")
|
||||
|
||||
[node name="Crosshair" type="ColorRect" parent="Body/Head/Hand"]
|
||||
material = SubResource("ShaderMaterial_08bwh")
|
||||
material = SubResource("ShaderMaterial_loyla")
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
@@ -97,4 +97,4 @@ script = ExtResource("5_828co")
|
||||
|
||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="Networking"]
|
||||
root_path = NodePath("../..")
|
||||
replication_config = SubResource("SceneReplicationConfig_rfdcv")
|
||||
replication_config = SubResource("SceneReplicationConfig_qcftn")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bp5ekvan8qsmc"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bp5ekvan8qsmc"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/player/Hitable.gd" id="1_f1sho"]
|
||||
|
||||
@@ -10,9 +10,12 @@ material = SubResource("StandardMaterial3D_uw38t")
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_mfgnk"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_yvynv"]
|
||||
radius = 20.0
|
||||
|
||||
[node name="Enemy" type="CharacterBody3D"]
|
||||
collision_layer = 512
|
||||
collision_mask = 512
|
||||
collision_mask = 513
|
||||
script = ExtResource("1_f1sho")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
@@ -22,3 +25,14 @@ mesh = SubResource("CapsuleMesh_3ufk0")
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("CapsuleShape3D_mfgnk")
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
collision_layer = 512
|
||||
collision_mask = 512
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
||||
shape = SubResource("SphereShape3D_yvynv")
|
||||
|
||||
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
|
||||
[connection signal="body_exited" from="Area3D" to="." method="_on_area_3d_body_exited"]
|
||||
|
||||
Reference in New Issue
Block a user