rename Attack to AttackHitbox for clarity
This commit is contained in:
+11
-11
@@ -8,7 +8,7 @@
|
||||
[ext_resource type="Script" path="res://scripts/states/run.gd" id="6_fllo7"]
|
||||
[ext_resource type="Script" path="res://scripts/states/fall.gd" id="7_0e04j"]
|
||||
[ext_resource type="Script" path="res://scripts/states/dead.gd" id="9_8je4a"]
|
||||
[ext_resource type="Script" path="res://scripts/states/lunge.gd" id="9_nqccg"]
|
||||
[ext_resource type="Script" path="res://scripts/states/attack.gd" id="9_nqccg"]
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_ukf45"]
|
||||
properties/0/path = NodePath(".:player_id")
|
||||
@@ -20,10 +20,10 @@ 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/path = NodePath(".:dead")
|
||||
properties/3/spawn = true
|
||||
properties/3/replication_mode = 1
|
||||
properties/4/path = NodePath(".:dead")
|
||||
properties/4/path = NodePath("RotationBase/AttackHitbox:visible")
|
||||
properties/4/spawn = true
|
||||
properties/4/replication_mode = 1
|
||||
|
||||
@@ -111,27 +111,27 @@ mesh = SubResource("SphereMesh_tudvv")
|
||||
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"]
|
||||
[node name="AttackHitbox" type="Area3D" parent="RotationBase"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -0.75)
|
||||
visible = false
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RotationBase/Attack"]
|
||||
[node name="AttackCollider" type="CollisionShape3D" parent="RotationBase/AttackHitbox"]
|
||||
shape = SubResource("BoxShape3D_rsamr")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="RotationBase/Attack"]
|
||||
[node name="AttackVisualBox" type="MeshInstance3D" parent="RotationBase/AttackHitbox"]
|
||||
transparency = 0.8
|
||||
mesh = SubResource("BoxMesh_phaav")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_ssauw")
|
||||
|
||||
[node name="AttackTimer" type="Timer" parent="RotationBase/Attack"]
|
||||
[node name="AttackTimer" type="Timer" parent="RotationBase/AttackHitbox"]
|
||||
unique_name_in_owner = true
|
||||
process_callback = 0
|
||||
wait_time = 0.35
|
||||
one_shot = true
|
||||
|
||||
[node name="AttackCooldown" type="Timer" parent="RotationBase/Attack"]
|
||||
[node name="AttackCooldown" type="Timer" parent="RotationBase/AttackHitbox"]
|
||||
unique_name_in_owner = true
|
||||
process_callback = 0
|
||||
wait_time = 2.0
|
||||
@@ -170,10 +170,10 @@ script = ExtResource("7_0e04j")
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("9_8je4a")
|
||||
|
||||
[node name="Lunge" type="Node" parent="StateMachine"]
|
||||
[node name="Attack" type="Node" parent="StateMachine"]
|
||||
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"]
|
||||
[connection signal="body_entered" from="RotationBase/AttackHitbox" to="StateMachine/Attack" method="_on_attack_body_entered"]
|
||||
[connection signal="body_exited" from="RotationBase/AttackHitbox" to="StateMachine/Attack" method="_on_attack_body_exited"]
|
||||
|
||||
Reference in New Issue
Block a user