4
Fork 0

Updated autosave system

development
Eddoursul 3 months ago
parent b60feead3e
commit 1aae79648f
  1. BIN
      scripts/_00e_autosavesystem_functions.pex
  2. 4
      source/Enderal DLL/src/PapyrusFunctions.h
  3. 4
      source/scripts/_00e_autosavesystem_functions.psc

@ -89,12 +89,16 @@ namespace Papyrus::PapyrusFunctions
sstream << StringToHex(RE::PlayerCharacter::GetSingleton()->GetName()).c_str();
sstream << "_";
// TODO: Add cell names and delete old copies, current implementation breaks rotation
/*
RE::TESObjectCELL* parentCell = RE::PlayerCharacter::GetSingleton()->parentCell;
if (parentCell->IsInteriorCell()) {
sstream << parentCell->GetFormEditorID();
} else {
sstream << RE::PlayerCharacter::GetSingleton()->GetWorldspace()->GetFormEditorID();
}
*/
sstream << "Vyn";
sstream << "_000000_00000000000000_1_1";

@ -4,11 +4,11 @@ Event OnUpdate()
Actor PlayerREF = Game.GetForm(0x14) as Actor
if PlayerREF.IsDead() || ! PlayerREF.GetParentCell()
if PlayerREF.IsDead()
return
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)
return
endif

Loading…
Cancel
Save