Skip to content

Commit

Permalink
feat: respawn at temple on death
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeBryssinck committed Apr 27, 2022
1 parent 5ac886f commit 8906c1f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Code/client/Services/Debug/DebugService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ void DebugService::OnUpdate(const UpdateEvent& acUpdateEvent) noexcept

pPlayer->actorValueOwner.ForceCurrent(ActorValueOwner::ForceMode::DAMAGE, ActorValueInfo::kHealth, 1000000);

TESObjectCELL* pCell = Cast<TESObjectCELL>(TESForm::GetById(0x165aa));
NiPoint3 pos{};
pos.x = 379.915f;
pos.y = -381.969f;
pos.z = -223.650f;
pPlayer->MoveTo(pCell, pos);

pPlayer->SetNoBleedoutRecovery(true);
}
}
Expand Down

0 comments on commit 8906c1f

Please sign in to comment.