Added ownership checks to _00E_ContainerController

This commit is contained in:
Eddoursul 2024-01-25 20:41:41 +01:00
parent cf1b5371c2
commit dcaa1ae6b6
3 changed files with 5 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -54,7 +54,7 @@ event OnMenuOpen(String MenuName)
return return
endif endif
if ! ( lootMenuRef.GetBaseObject() as Container ) || lootMenuRef.IsLocked() || lootMenuRef.IsActivationBlocked() if ! ( lootMenuRef.GetBaseObject() as Container ) || lootMenuRef.IsLocked() || lootMenuRef.IsActivationBlocked() || lootMenuRef.GetActorOwner() == Player
return return
endif endif
@ -78,7 +78,7 @@ event OnMenuOpen(String MenuName)
if MenuName == "ContainerMenu" if MenuName == "ContainerMenu"
ObjectReference currentContainer = EnderalFunctions.GetCurrentContainer() ObjectReference currentContainer = EnderalFunctions.GetCurrentContainer()
if ! currentContainer || currentContainer as Actor if ! currentContainer || currentContainer as Actor || currentContainer.GetActorOwner() == Player || currentContainer.GetParentCell() != PlayerREF.GetParentCell()
return return
endif endif
@ -359,6 +359,7 @@ bool bLmHasGold
bool bLmHasSlot bool bLmHasSlot
Actor Property PlayerRef Auto Actor Property PlayerRef Auto
ActorBase Property Player Auto
GlobalVariable Property PlayerLevel Auto GlobalVariable Property PlayerLevel Auto
GlobalVariable Property _00E_HiddenSlotAchievementUnlocked Auto GlobalVariable Property _00E_HiddenSlotAchievementUnlocked Auto