Updated autosave system
This commit is contained in:
parent
b60feead3e
commit
1aae79648f
Binary file not shown.
@ -89,12 +89,16 @@ namespace Papyrus::PapyrusFunctions
|
|||||||
sstream << StringToHex(RE::PlayerCharacter::GetSingleton()->GetName()).c_str();
|
sstream << StringToHex(RE::PlayerCharacter::GetSingleton()->GetName()).c_str();
|
||||||
sstream << "_";
|
sstream << "_";
|
||||||
|
|
||||||
|
// TODO: Add cell names and delete old copies, current implementation breaks rotation
|
||||||
|
/*
|
||||||
RE::TESObjectCELL* parentCell = RE::PlayerCharacter::GetSingleton()->parentCell;
|
RE::TESObjectCELL* parentCell = RE::PlayerCharacter::GetSingleton()->parentCell;
|
||||||
if (parentCell->IsInteriorCell()) {
|
if (parentCell->IsInteriorCell()) {
|
||||||
sstream << parentCell->GetFormEditorID();
|
sstream << parentCell->GetFormEditorID();
|
||||||
} else {
|
} else {
|
||||||
sstream << RE::PlayerCharacter::GetSingleton()->GetWorldspace()->GetFormEditorID();
|
sstream << RE::PlayerCharacter::GetSingleton()->GetWorldspace()->GetFormEditorID();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
sstream << "Vyn";
|
||||||
|
|
||||||
sstream << "_000000_00000000000000_1_1";
|
sstream << "_000000_00000000000000_1_1";
|
||||||
|
|
||||||
|
@ -4,11 +4,11 @@ Event OnUpdate()
|
|||||||
|
|
||||||
Actor PlayerREF = Game.GetForm(0x14) as Actor
|
Actor PlayerREF = Game.GetForm(0x14) as Actor
|
||||||
|
|
||||||
if PlayerREF.IsDead() || ! PlayerREF.GetParentCell()
|
if PlayerREF.IsDead()
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
If PlayerREF.IsInCombat() || PlayerREF.IsOnMount() || PlayerREF.IsSwimming() || ! Game.IsFightingControlsEnabled() || Utility.IsInMenuMode() || UI.IsTextInputEnabled() || UI.IsMenuOpen("Dialogue Menu")
|
If PlayerREF.IsInCombat() || PlayerREF.IsOnMount() || PlayerREF.IsSwimming() || ! Game.IsFightingControlsEnabled() || Utility.IsInMenuMode() || UI.IsTextInputEnabled() || UI.IsMenuOpen("Dialogue Menu") || ! PlayerREF.GetParentCell()
|
||||||
RegisterForSingleUpdate(5)
|
RegisterForSingleUpdate(5)
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user