Fix elemental damage fx, fix dialogue error
This commit is contained in:
@@ -3973,28 +3973,24 @@ libraries = {
|
||||
|
||||
[node name="WindHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="CurseHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -4504,28 +4504,24 @@ libraries = {
|
||||
|
||||
[node name="WindHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="CurseHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -5765,28 +5765,24 @@ libraries = {
|
||||
|
||||
[node name="WindHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="CurseHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -4775,14 +4775,12 @@ libraries = {
|
||||
|
||||
[node name="RustHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="HolyHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
@@ -4801,14 +4799,12 @@ libraries = {
|
||||
|
||||
[node name="CurseHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -5454,14 +5454,12 @@ libraries = {
|
||||
|
||||
[node name="WindHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
@@ -5474,7 +5472,6 @@ libraries = {
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -6811,7 +6811,6 @@ libraries = {
|
||||
|
||||
[node name="RustHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
@@ -6824,28 +6823,24 @@ libraries = {
|
||||
|
||||
[node name="WindHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="CurseHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -5392,7 +5392,6 @@ libraries = {
|
||||
|
||||
[node name="RustHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
@@ -5411,21 +5410,18 @@ libraries = {
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="CurseHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -5351,7 +5351,6 @@ libraries = {
|
||||
|
||||
[node name="RustHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
@@ -5370,21 +5369,18 @@ libraries = {
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="CurseHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -5461,7 +5461,6 @@ libraries = {
|
||||
|
||||
[node name="RustHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
@@ -5474,14 +5473,12 @@ libraries = {
|
||||
|
||||
[node name="WindHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
@@ -5494,7 +5491,6 @@ libraries = {
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -5434,7 +5434,6 @@ libraries = {
|
||||
|
||||
[node name="RustHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
@@ -5453,21 +5452,18 @@ libraries = {
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="CurseHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -5630,7 +5630,6 @@ libraries = {
|
||||
|
||||
[node name="RustHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
@@ -5649,21 +5648,18 @@ libraries = {
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="CurseHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -6742,7 +6742,6 @@ libraries = {
|
||||
|
||||
[node name="RustHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
@@ -6755,28 +6754,24 @@ libraries = {
|
||||
|
||||
[node name="WindHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="CurseHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -3925,21 +3925,18 @@ libraries = {
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="CurseHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -5371,7 +5371,6 @@ libraries = {
|
||||
|
||||
[node name="RustHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
@@ -5390,21 +5389,18 @@ libraries = {
|
||||
|
||||
[node name="WaterHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="CurseHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
[node name="EarthHitAnimation" type="AnimationPlayer" parent="VFXAnimations"]
|
||||
unique_name_in_owner = true
|
||||
root_node = NodePath("../../Secondary Animation Player")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0tqwp")
|
||||
}
|
||||
|
||||
@@ -22,50 +22,50 @@ public partial class Npc : Node3D
|
||||
|
||||
public void OnReady()
|
||||
{
|
||||
SetPhysicsProcess(true);
|
||||
DialogueZone.BodyEntered += DialogueZone_BodyEntered;
|
||||
DialogueZone.BodyExited += DialogueZone_BodyExited;
|
||||
DialogueExitZone.BodyExited += DialogueExitZone_BodyExited;
|
||||
Hitbox.AreaEntered += Hitbox_AreaEntered;
|
||||
SetPhysicsProcess(true);
|
||||
DialogueZone.BodyEntered += DialogueZone_BodyEntered;
|
||||
DialogueZone.BodyExited += DialogueZone_BodyExited;
|
||||
DialogueExitZone.BodyExited += DialogueExitZone_BodyExited;
|
||||
Hitbox.AreaEntered += Hitbox_AreaEntered;
|
||||
}
|
||||
|
||||
private void Hitbox_AreaEntered(Area3D area)
|
||||
{
|
||||
if (area.GetOwner() is ThrownItem thrownItem)
|
||||
{
|
||||
DialogueController.ShowDialogue(Dialogue, "get_item");
|
||||
thrownItem.QueueFree();
|
||||
}
|
||||
if (area.GetOwner() is ThrownItem thrownItem)
|
||||
{
|
||||
DialogueController.ShowDialogue(Dialogue, "get_item");
|
||||
thrownItem.QueueFree();
|
||||
}
|
||||
}
|
||||
|
||||
private void DialogueZone_BodyExited(Node3D body)
|
||||
{
|
||||
_isInDialogueZone = false;
|
||||
_isInDialogueZone = false;
|
||||
}
|
||||
|
||||
private void DialogueExitZone_BodyExited(Node3D body)
|
||||
{
|
||||
DialogueController.Interrupt();
|
||||
DialogueController.Interrupt();
|
||||
}
|
||||
|
||||
private void DialogueZone_BodyEntered(Node3D body)
|
||||
{
|
||||
_isInDialogueZone = true;
|
||||
_isInDialogueZone = true;
|
||||
}
|
||||
|
||||
public override void _Input(InputEvent @event)
|
||||
{
|
||||
if (@event.IsActionPressed(GameInputs.Interact) && _isInDialogueZone)
|
||||
{
|
||||
DialogueController.ShowDialogue(Dialogue, "general");
|
||||
}
|
||||
if (Dialogue != null && @event.IsActionPressed(GameInputs.Interact) && _isInDialogueZone)
|
||||
{
|
||||
DialogueController.ShowDialogue(Dialogue, "general");
|
||||
}
|
||||
}
|
||||
|
||||
public void OnExitTree()
|
||||
{
|
||||
DialogueZone.BodyEntered -= DialogueZone_BodyEntered;
|
||||
DialogueZone.BodyExited -= DialogueZone_BodyExited;
|
||||
DialogueExitZone.BodyExited -= DialogueExitZone_BodyExited;
|
||||
Hitbox.AreaEntered -= Hitbox_AreaEntered;
|
||||
DialogueZone.BodyEntered -= DialogueZone_BodyEntered;
|
||||
DialogueZone.BodyExited -= DialogueZone_BodyExited;
|
||||
DialogueExitZone.BodyExited -= DialogueExitZone_BodyExited;
|
||||
Hitbox.AreaEntered -= Hitbox_AreaEntered;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user