Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
combinationlock.c File Reference

Go to the source code of this file.

Enumerations

enum  LockAction {
  NONE , DIAL_NUMBER_CHANED , DIAL_INDEX_CHANGED , LOCKED ,
  UNLOCKED , COUNT
}

Functions

override void AfterStoreLoad ()
void CheckLockedStateServer ()
void CombinationLock ()
void DestroyLock ()
void DialNextNumber ()
override void EEInit ()
int GetCombination ()
int GetDialIndex ()
int GetLockDigits ()
void HideAttached ()
void HideItem ()
override bool IsInitialized ()
bool IsLockAttached ()
bool IsLocked ()
bool IsLockedOnGate ()
void LockServer (EntityAI parent, bool ignore_combination=false)
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
override bool OnStoreLoad (ParamsReadContext ctx, int version)
override void OnStoreSave (ParamsWriteContext ctx)
override void OnVariablesSynchronized ()
void ResetActionVar ()
override void SetActions ()
void SetBaseLockValues ()
void SetCombination (int combination)
void SetCombinationLocked (int combination)
void SetInitialized ()
void SetNextDial ()
void ShowAttached ()
void ShowItem ()
void ShuffleLock ()
void SoundLockChangeDial ()
void SoundLockChangeNumber ()
void SoundLockClose ()
void SoundLockOpen ()
void Synchronize ()
void UnlockServer (EntityAI player, EntityAI parent)
void UpdateSound ()
void UpdateVisuals ()

Variables

int m_Combination
int m_CombinationLocked
int m_DialIndex
bool m_IsInitialized
bool m_IsLocked
LockAction m_LockActionPerformed = LockAction.NONE
enum LockAction m_LockDigits
EffectSound m_Sound
const string SOUND_LOCK_CHANGE_DIAL = "combinationlock_changedial_SoundSet"
const string SOUND_LOCK_CHANGE_NUMBER = "combinationlock_changenumber_SoundSet"
const string SOUND_LOCK_CLOSE = "combinationlock_close_SoundSet"
const string SOUND_LOCK_OPEN = "combinationlock_open_SoundSet"

Enumeration Type Documentation

◆ LockAction

enum LockAction
Enumerator
NONE 
DIAL_NUMBER_CHANED 
DIAL_INDEX_CHANGED 
LOCKED 
UNLOCKED 
COUNT 

Definition at line 1 of file combinationlock.c.

Function Documentation

◆ AfterStoreLoad()

override void AfterStoreLoad ( )
protected

Definition at line 132 of file combinationlock.c.

References g_Game, LockServer(), and Synchronize().

◆ CheckLockedStateServer()

void CheckLockedStateServer ( )
protected

Definition at line 370 of file combinationlock.c.

References m_Combination, m_CombinationLocked, and m_IsLocked.

Referenced by DialNextNumber(), LockServer(), and UnlockServer().

◆ CombinationLock()

void CombinationLock ( )
protected

Definition at line 33 of file combinationlock.c.

References m_LockDigits, Math::Pow(), and CombinationLock::SetBaseLockValues().

◆ DestroyLock()

void DestroyLock ( )
protected

Definition at line 401 of file combinationlock.c.

References g_Game.

◆ DialNextNumber()

◆ EEInit()

override void EEInit ( )
protected

Definition at line 54 of file combinationlock.c.

References CALL_CATEGORY_GAMEPLAY, g_Game, SetInitialized(), and UpdateVisuals().

◆ GetCombination()

int GetCombination ( )
protected

Definition at line 191 of file combinationlock.c.

References m_Combination.

◆ GetDialIndex()

int GetDialIndex ( )
protected

Definition at line 242 of file combinationlock.c.

References m_DialIndex.

◆ GetLockDigits()

int GetLockDigits ( )
protected

Definition at line 196 of file combinationlock.c.

References m_LockDigits.

◆ HideAttached()

void HideAttached ( )
protected

Definition at line 471 of file combinationlock.c.

Referenced by UpdateVisuals().

◆ HideItem()

void HideItem ( )
protected

Definition at line 457 of file combinationlock.c.

Referenced by UpdateVisuals().

◆ IsInitialized()

◆ IsLockAttached()

bool IsLockAttached ( )
protected

Definition at line 389 of file combinationlock.c.

Referenced by LockServer(), and UnlockServer().

◆ IsLocked()

bool IsLocked ( )
protected

Definition at line 365 of file combinationlock.c.

References m_IsLocked.

◆ IsLockedOnGate()

bool IsLockedOnGate ( )
protected

Definition at line 375 of file combinationlock.c.

References IsLocked().

Referenced by UpdateVisuals().

◆ LockServer()

◆ OnItemLocationChanged()

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
protected

Definition at line 75 of file combinationlock.c.

References g_Game, IsInitialized(), and LockServer().

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
protected

Definition at line 99 of file combinationlock.c.

References m_Combination, m_CombinationLocked, and Serializer::Read().

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 90 of file combinationlock.c.

References m_Combination, m_CombinationLocked, and Serializer::Write().

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
protected

◆ ResetActionVar()

void ResetActionVar ( )
protected

Definition at line 163 of file combinationlock.c.

References m_LockActionPerformed.

Referenced by Synchronize().

◆ SetActions()

override void SetActions ( )
protected

◆ SetBaseLockValues()

void SetBaseLockValues ( )
protected

Definition at line 45 of file combinationlock.c.

References m_Combination, m_CombinationLocked, m_IsLocked, and m_LockDigits.

◆ SetCombination()

void SetCombination ( int combination)
protected

Definition at line 181 of file combinationlock.c.

References m_Combination.

Referenced by DialNextNumber(), and ShuffleLock().

◆ SetCombinationLocked()

void SetCombinationLocked ( int combination)
protected

Definition at line 186 of file combinationlock.c.

References m_CombinationLocked.

Referenced by LockServer().

◆ SetInitialized()

void SetInitialized ( )
protected

Definition at line 65 of file combinationlock.c.

References m_IsInitialized.

Referenced by EEInit().

◆ SetNextDial()

void SetNextDial ( )
protected

Definition at line 247 of file combinationlock.c.

References m_DialIndex, m_LockActionPerformed, m_LockDigits, and Synchronize().

◆ ShowAttached()

void ShowAttached ( )
protected

Definition at line 464 of file combinationlock.c.

Referenced by UpdateVisuals().

◆ ShowItem()

void ShowItem ( )
protected

Definition at line 450 of file combinationlock.c.

Referenced by UpdateVisuals().

◆ ShuffleLock()

void ShuffleLock ( )
protected

◆ SoundLockChangeDial()

void SoundLockChangeDial ( )
protected

Definition at line 497 of file combinationlock.c.

References m_Sound, and SOUND_LOCK_CHANGE_DIAL.

Referenced by UpdateSound().

◆ SoundLockChangeNumber()

void SoundLockChangeNumber ( )
protected

Definition at line 492 of file combinationlock.c.

References m_Sound, and SOUND_LOCK_CHANGE_NUMBER.

Referenced by UpdateSound().

◆ SoundLockClose()

void SoundLockClose ( )
protected

Definition at line 487 of file combinationlock.c.

References m_Sound, and SOUND_LOCK_CLOSE.

Referenced by UpdateSound().

◆ SoundLockOpen()

void SoundLockOpen ( )
protected

Definition at line 482 of file combinationlock.c.

References m_Sound, and SOUND_LOCK_OPEN.

Referenced by UpdateSound().

◆ Synchronize()

◆ UnlockServer()

◆ UpdateSound()

void UpdateSound ( )
protected

◆ UpdateVisuals()

void UpdateVisuals ( )
protected

Variable Documentation

◆ m_Combination

◆ m_CombinationLocked

◆ m_DialIndex

int m_DialIndex

Definition at line 17 of file combinationlock.c.

Referenced by DialNextNumber(), GetDialIndex(), and SetNextDial().

◆ m_IsInitialized

bool m_IsInitialized
protected

Definition at line 22 of file combinationlock.c.

Referenced by IsInitialized(), and SetInitialized().

◆ m_IsLocked

bool m_IsLocked
protected

Definition at line 18 of file combinationlock.c.

◆ m_LockActionPerformed

◆ m_LockDigits

◆ m_Sound

EffectSound m_Sound
protected

Definition at line 31 of file combinationlock.c.

◆ SOUND_LOCK_CHANGE_DIAL

const string SOUND_LOCK_CHANGE_DIAL = "combinationlock_changedial_SoundSet"
protected

Definition at line 29 of file combinationlock.c.

Referenced by SoundLockChangeDial().

◆ SOUND_LOCK_CHANGE_NUMBER

const string SOUND_LOCK_CHANGE_NUMBER = "combinationlock_changenumber_SoundSet"
protected

Definition at line 28 of file combinationlock.c.

Referenced by SoundLockChangeNumber().

◆ SOUND_LOCK_CLOSE

const string SOUND_LOCK_CLOSE = "combinationlock_close_SoundSet"
protected

Definition at line 27 of file combinationlock.c.

Referenced by SoundLockClose().

◆ SOUND_LOCK_OPEN

const string SOUND_LOCK_OPEN = "combinationlock_open_SoundSet"
protected

Definition at line 26 of file combinationlock.c.

Referenced by SoundLockOpen().