mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-21 12:17:01 +00:00
Update AgSpiderBossMessage.cpp (#1729)
This commit is contained in:
parent
c855a6b9cf
commit
2209a4432f
@ -36,14 +36,14 @@ void AgSpiderBossMessage::OnCollisionPhantom(Entity* self, Entity* target) {
|
|||||||
|
|
||||||
auto box = GetBox(self);
|
auto box = GetBox(self);
|
||||||
// knockback the target
|
// knockback the target
|
||||||
auto forward = target->GetRotation().GetForwardVector();
|
auto forward = self->GetRotation().GetForwardVector();
|
||||||
box.boxTarget = target->GetObjectID();
|
box.boxTarget = target->GetObjectID();
|
||||||
GameMessages::SendPlayFXEffect(target->GetObjectID(), 1378, u"create", "pushBack");
|
GameMessages::SendPlayFXEffect(target->GetObjectID(), 1378, u"create", "pushBack");
|
||||||
RenderComponent::PlayAnimation(target, "knockback-recovery");
|
RenderComponent::PlayAnimation(target, "knockback-recovery");
|
||||||
forward.y += 15;
|
forward.y += 15;
|
||||||
forward.x *= 100;
|
forward.x *= 100;
|
||||||
forward.z *= 100;
|
forward.z *= 100;
|
||||||
GameMessages::SendKnockback(target->GetObjectID(), self->GetObjectID(), self->GetObjectID(), 0, forward);
|
GameMessages::SendKnockback(target->GetObjectID(), LWOOBJID_EMPTY, LWOOBJID_EMPTY, 0, forward);
|
||||||
|
|
||||||
if (box.isTouch || box.isDisplayed) return;
|
if (box.isTouch || box.isDisplayed) return;
|
||||||
box.boxSelf = self->GetObjectID();
|
box.boxSelf = self->GetObjectID();
|
||||||
|
Loading…
Reference in New Issue
Block a user