stunnable targets on hit
This commit is contained in:
@@ -89,7 +89,7 @@ metadata/_custom_type_script = "uid://dpakv7agvir6y"
|
||||
[sub_resource type="Resource" id="Resource_cmmfb"]
|
||||
script = ExtResource("10_b0xmb")
|
||||
Name = "Parry projectile"
|
||||
CooldownEffects = null
|
||||
CooldownEffects = []
|
||||
AbilityBehavior = SubResource("Resource_xs7wf")
|
||||
TriggerSource = 1
|
||||
TriggerTag = SubResource("Resource_cm4e8")
|
||||
|
||||
@@ -2467,7 +2467,7 @@ public partial class PlayerController : CharacterBody3D, IForgeEntity, ICueHandl
|
||||
// else HeadSystem.OnHit();
|
||||
// var streamName = isParry ? "parry" : "attacks";
|
||||
_audioStream.SwitchToClipByName("dash");
|
||||
IsInvincible = true;
|
||||
OnHitInvincibility();
|
||||
|
||||
var plannedDashLocation = _targetLocation + Vector3.Down*_playerHeight/2;
|
||||
// var enemySurfaceQuery = PhysicsRayQueryParameters3D.Create(HeadSystem.GlobalPosition, plannedDashLocation, DashSystem.DashCast3D.CollisionMask);
|
||||
@@ -2511,7 +2511,7 @@ public partial class PlayerController : CharacterBody3D, IForgeEntity, ICueHandl
|
||||
{
|
||||
disableable.Disable();
|
||||
}
|
||||
IsInvincible = false;
|
||||
// IsInvincible = false;
|
||||
_playerState.SendEvent("attack_finished");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user