class CombinationLock
CombinationLock › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
Constructors 1
void CombinationLock()References Math.Pow(), EntityAI.RegisterNetSyncVariableBool(), EntityAI.RegisterNetSyncVariableInt()
Show 2 more
, SetBaseLockValues(), and m_LockDigitsConstants 9
static const string LOCK_SELECTION_OUTSIDE = "lock_attached_outside"Referenced by GetLockSideByComponentIndex()
static const string LOCK_SELECTION_INSIDE = "lock_attached_inside"Referenced by GetLockSideByComponentIndex()
static const int FACING_OUTSIDE = 0static const int FACING_INSIDE = 1const string SOUND_LOCK_OPEN = "combinationlock_open_SoundSet"const string SOUND_LOCK_CLOSE = "combinationlock_close_SoundSet"const string SOUND_LOCK_CHANGE_NUMBER = "combinationlock_changenumber_SoundSet"const string SOUND_LOCK_CHANGE_DIAL = "combinationlock_changedial_SoundSet"const string SOUND_LOCK_WRONG_PIN = "combinationlock_wrong_combination_SoundSet"Referenced by InitItemSounds()
Members 11
int m_LockDigitshow many digits will the combination contain
int m_Combinationactual combination that is dialed on lock outside
int m_CombinationInsideactual combination that is dialed on lock inside
int m_CombinationLockedcombination that was dialed on lock before the shuffle
int m_DialIndexindex of current combination dial on lock outside
int m_DialIndexInsideindex of current combination dial on lock inside
int m_LockDigitsCountReferenced by AfterStoreLoad(), OnStoreLoad(), SetBaseLockValues()
Show 2 more
, SetCombinationLocked(), and CombinationLock4.SetBaseLockValues()protected bool m_IsLockedReferenced by CheckLockedStateServer(), IsLocked(), SetBaseLockValues()
Show 1 more
, CombinationLock4.SetBaseLockValues()protected LockAction m_LockActionPerformed = LockAction.NONEReferenced by DialNextNumber(), LockServer(), ResetActionVar()
Show 5 more
, SetNextDial(), Synchronize(), UnlockOnServer(), UpdateSound(), and UpdateVisuals()protected bool m_IsInitializedprotected EffectSound m_SoundReferenced by SoundLockChangeDial(), SoundLockChangeNumber(), SoundLockClose()
Show 1 more
, SoundLockOpen()Methods 55
protected void SetBaseLockValues()References string.Length(), int.ToString(), m_Combination
Show 5 more
, m_CombinationInside, m_CombinationLocked, m_IsLocked, m_LockDigits, and m_LockDigitsCountReferenced by CombinationLock()
override void EEInit()References ScriptCallQueue.CallLater(), EntityAI.EEInit(), DayZGame.GetCallQueue()
Show 1 more
, UpdateVisuals()void SetInitialized()References m_IsInitialized
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)References EntityAI.CanUseConstruction(), IsInitialized(), CGame.IsServer()
Show 2 more
, LockServer(), and ItemBase.OnItemLocationChanged()override void OnStoreSave(ParamsWriteContext ctx)References ItemBase.OnStoreSave(), Serializer.Write(), m_Combination
Show 2 more
, m_CombinationInside, and m_CombinationLockedoverride bool OnStoreLoad(ParamsReadContext ctx, int version)References ItemBase.OnStoreLoad(), Serializer.Read(), m_Combination
Show 3 more
, m_CombinationInside, m_CombinationLocked, and m_LockDigitsCountoverride void AfterStoreLoad()void Synchronize()Referenced by AfterStoreLoad(), DialNextNumber(), LockServer()
Show 2 more
, SetNextDial(), and UnlockOnServer()void ResetActionVar()References m_LockActionPerformed
override void OnVariablesSynchronized()References bsbDebugPrint(), LogManager.IsBaseBuildingLogEnable(), ItemBase.OnVariablesSynchronized()
Show 3 more
, UpdateVisuals(), m_Combination, and m_CombinationLockedReferences EntityAI.GetInventory(), GameInventory.IsAttachment(), SetCombinationInside()
Show 1 more
, m_CombinationSet both combinations when lock is not attached and combination is changed (while in hands).
References EntityAI.GetInventory(), GameInventory.IsAttachment(), SetCombination()
Show 1 more
, m_CombinationInsidevoid SetCombinationLocked(int combination)Set both combinations when lock is not attached and combination is changed (while in hands).
Referenced by LockServer()
int GetCombination()References m_Combination
Referenced by ConstructionActionData.GetDialNumberText()
int GetCombinationInside()References m_CombinationInside
Referenced by ConstructionActionData.GetDialNumberText()
void DialNextNumber(int lockSide = FACING_OUTSIDE)int GetDialIndexInside()References m_DialIndexInside
Referenced by ConstructionActionData.GetDialNumberText()
void SetNextDial(int lockSide = FACING_OUTSIDE)References Synchronize(), FACING_INSIDE, m_DialIndex
Show 3 more
, m_DialIndexInside, m_LockActionPerformed, and m_LockDigitsReferences bsbDebugPrint(), CheckLockedStateServer(), GameInventory.GetCurrentInventoryLocation()
Show 13 more
, EntityAI.GetInventory(), EntityAI.GetInventory(), InventoryLocation.GetSlot(), LogManager.IsBaseBuildingLogEnable(), IsLockAttached(), SetCombinationLocked(), GameInventory.SetSlotLock(), ItemBase.SetTakeable(), ShuffleLock(), Synchronize(), m_Combination, m_CombinationLocked, and m_LockActionPerformedUnlock AND drop
References bsbDebugPrint(), CheckLockedStateServer(), GameInventory.DropEntity()
Show 23 more
, GameInventory.GetCurrentInventoryLocation(), EntityAI.GetInventory(), EntityAI.GetInventory(), Object.GetMemoryPointPos(), Object.GetPosition(), Object.GetPosition(), InventoryLocation.GetSlot(), InventorySlots.GetSlotName(), LogManager.IsBaseBuildingLogEnable(), IsLockAttached(), CGame.IsMultiplayer(), Object.MemoryPointExists(), Object.ModelToWorld(), Object.PlaceOnSurface(), Object.SetPosition(), GameInventory.SetSlotLock(), ItemBase.SetTakeable(), Synchronize(), UpdateLockDigits(), m_Combination, m_CombinationInside, m_CombinationLocked, and m_LockActionPerformedprotected void ShuffleLock()References ShuffleCombination(), int.ToString(), int.ToString()
Show 2 more
, m_Combination, and m_CombinationInsideReferenced by LockServer()
Referenced by ShuffleLock()
bool IsLocked()References m_IsLocked
Referenced by BuildingBase.CanDoorBeOpened(), BuildingBase.CanReleaseAttachment(), BuildingBase.IsLocked()
Show 3 more
, IsLockedOnGate(), IsLockedOnParent(), and Fence.IsLocked()void CheckLockedStateServer(bool insideLock = false)bool IsLockedOnParent()bool IsLockAttached()protected void DestroyLock()References CGame.ObjectDelete()
protected void UpdateVisuals()protected void UpdateSound()Referenced by Synchronize()
protected void ShowItem()References Entity.SetAnimationPhase()
protected void HideItem()References Entity.SetAnimationPhase()
protected void ShowAttached()References Entity.SetAnimationPhase()
protected void HideAttached()References Entity.SetAnimationPhase()
override void SetActions()References Entity.SetAnimationPhase()
References Entity.SetAnimationPhase()
protected void AnimateDigitsOutside(string digitIndex)Referenced by UpdateVisuals()
protected void AnimateDigitsInside(string digitIndex)Referenced by UpdateVisuals()
protected void UpdateLockDigits()override bool IsExternalLockType()References Object.GetActionComponentNameList(), FACING_INSIDE, FACING_OUTSIDE
Show 2 more
, LOCK_SELECTION_INSIDE, and LOCK_SELECTION_OUTSIDEoverride void InitItemSounds()References ItemSoundHandler.AddSound(), ItemBase.GetItemSoundHandler(), ItemBase.InitItemSounds()
Show 11 more
, SoundConstants.ITEM_COMBINATION_LOCK_CHANGE_DIAL, SoundConstants.ITEM_COMBINATION_LOCK_CHANGE_NUMBER, SoundConstants.ITEM_COMBINATION_LOCK_LOCK, SoundConstants.ITEM_COMBINATION_LOCK_UNLOCK, SoundConstants.ITEM_COMBINATION_LOCK_WRONG_COMBINATION, SoundConstants.ITEM_COMBINATION_LOCK_WRONG_PIN, SOUND_LOCK_CHANGE_DIAL, SOUND_LOCK_CHANGE_NUMBER, SOUND_LOCK_CLOSE, SOUND_LOCK_OPEN, and SOUND_LOCK_WRONG_PINprotected void SoundLockOpen()DEPRECTAED
protected void SoundLockClose()protected void SoundLockChangeNumber()protected void SoundLockChangeDial()bool IsLockedOnGate()void Unlock()void AnimateDigits(string digitIndex)