feat: add the lightning orb script* (#2011)

* feat: add the lightning orb script*

Doesn't do anything because MPC don't work...

* Update LightningOrbServer.cpp
This commit is contained in:
David Markowitz
2026-06-20 22:30:44 -07:00
committed by GitHub
parent ccc029424c
commit 83707e2210
5 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
#include "LightningOrbServer.h"
void LightningOrbServer::OnCollisionPhantom(Entity* self, Entity* target) {
GameMessages::GetPosition playerPos;
playerPos.Send(target->GetObjectID());
GameMessages::GetPosition selfPos;
selfPos.Send(self->GetObjectID());
const NiPoint3 newVec((playerPos.pos.x - selfPos.pos.x) * 2.5, 15, (playerPos.pos.z - selfPos.pos.z) * 2.5);
// ahhhh aron said to put a TODO here moving platforms don't work lol. disable this so people can actually do the puzzle
// GameMessages::SendKnockback(target->GetObjectID(), self->GetObjectID(), self->GetObjectID(), 0, newVec);
// GameMessages::SendPlayFXEffect(target->GetObjectID(), -1, u"knockback", "knockback");
}