add attacks and death

This commit is contained in:
2025-02-26 16:17:14 +09:00
parent 151a757e3e
commit 3f1f4b1811
9 changed files with 83 additions and 14 deletions
+24 -1
View File
@@ -20,6 +20,12 @@ properties/1/replication_mode = 1
properties/2/path = NodePath(".:server_rotation")
properties/2/spawn = true
properties/2/replication_mode = 1
properties/3/path = NodePath("RotationBase/Attack:visible")
properties/3/spawn = true
properties/3/replication_mode = 1
properties/4/path = NodePath(".:dead")
properties/4/spawn = true
properties/4/replication_mode = 1
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_1agtp"]
properties/0/path = NodePath("Input:direction")
@@ -77,6 +83,7 @@ unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
[node name="Collider" type="CollisionShape3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_j6tb3")
@@ -105,8 +112,9 @@ transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.1, 0.6, -0.25)
mesh = SubResource("SphereMesh_1gltg")
[node name="Attack" type="Area3D" parent="RotationBase"]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -0.75)
monitoring = false
visible = false
monitorable = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="RotationBase/Attack"]
@@ -117,6 +125,19 @@ transparency = 0.8
mesh = SubResource("BoxMesh_phaav")
surface_material_override/0 = SubResource("StandardMaterial3D_ssauw")
[node name="AttackTimer" type="Timer" parent="RotationBase/Attack"]
unique_name_in_owner = true
process_callback = 0
wait_time = 0.35
one_shot = true
[node name="AttackCooldown" type="Timer" parent="RotationBase/Attack"]
unique_name_in_owner = true
process_callback = 0
wait_time = 2.0
one_shot = true
autostart = true
[node name="FloatingCamera" type="Node" parent="."]
[node name="CameraPlatform" type="Node3D" parent="FloatingCamera"]
@@ -154,3 +175,5 @@ unique_name_in_owner = true
script = ExtResource("9_nqccg")
[connection signal="delta_synchronized" from="Sync" to="." method="_on_sync_delta_synchronized"]
[connection signal="body_entered" from="RotationBase/Attack" to="StateMachine/Lunge" method="_on_attack_body_entered"]
[connection signal="body_exited" from="RotationBase/Attack" to="StateMachine/Lunge" method="_on_attack_body_exited"]