implement rest of equipment scripts (#1714)

This commit is contained in:
David Markowitz
2025-01-03 14:44:20 -08:00
committed by GitHub
parent c8fcb3788d
commit fb32534ae3
15 changed files with 188 additions and 30 deletions

View File

@@ -968,6 +968,8 @@ void GameMessages::SendResurrect(Entity* entity) {
// and just make sure the client has time to be ready.
constexpr float respawnTime = 3.66700005531311f + 0.5f;
entity->AddCallbackTimer(respawnTime, [=]() {
GameMessages::PlayerResurrectionFinished msg;
entity->NotifyPlayerResurrectionFinished(msg);
auto* destroyableComponent = entity->GetComponent<DestroyableComponent>();
if (destroyableComponent != nullptr && entity->GetLOT() == 1) {

View File

@@ -765,6 +765,10 @@ namespace GameMessages {
LOT templateID{};
LWOOBJID childID{};
};
struct PlayerResurrectionFinished : public GameMsg {
PlayerResurrectionFinished() : GameMsg(MessageType::Game::PLAYER_RESURRECTION_FINISHED) {}
};
};
#endif // GAMEMESSAGES_H