DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Файл CombinationLock.c

См. исходные тексты.

Перечисления

enum  LockAction {
  NONE , DIAL_NUMBER_CHANED_INSIDE , DIAL_NUMBER_CHANED_OUTSIDE , DIAL_INDEX_CHANGED_INSIDE ,
  DIAL_INDEX_CHANGED_OUTSIDE , LOCKED , UNLOCKED , COUNT
}
 

Функции

void CombinationLock ()
 
void SetBaseLockValues ()
 
override void EEInit ()
 
void SetInitialized ()
 
override bool IsInitialized ()
 
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
void Synchronize ()
 
void ResetActionVar ()
 
override void OnVariablesSynchronized ()
 
void SetCombination (int combination, bool setOtherSide=true)
 
void SetCombinationInside (int combination, bool setOtherSide=true)
 
void SetCombinationLocked (int combination)
 
int GetCombination ()
 
int GetCombinationInside ()
 
int GetLockDigits ()
 
void DialNextNumber (int lockSide=FACING_OUTSIDE)
 
int GetDialIndex ()
 
int GetDialIndexInside ()
 
void SetNextDial (int lockSide=FACING_OUTSIDE)
 
void LockServer (EntityAI parent, bool ignore_combination=false)
 
void UnlockOnServer (EntityAI player, EntityAI parent, bool isInsideLock=false)
 Unlock AND drop.
 
void ShuffleLock ()
 
void ShuffleCombination (string combinationText, bool isInsideLock=false)
 
bool IsLocked ()
 
void CheckLockedStateServer (bool insideLock=false)
 
bool IsLockedOnParent ()
 
bool IsLockAttached ()
 
void DestroyLock ()
 
void UpdateVisuals ()
 
void UpdateSound ()
 
void ShowItem ()
 
void HideItem ()
 
void ShowAttached ()
 
void HideAttached ()
 
override void SetActions ()
 
static float GetDigitRotation (int digitValue)
 
void SetDigitRotationAnimationPhaseOutside (string digitIndex, float rot)
 
void SetDigitRotationAnimationPhaseInside (string digitIndex, float rot)
 
void AnimateDigitsOutside (string digitIndex)
 
void AnimateDigitsInside (string digitIndex)
 
void UpdateLockDigits ()
 
override bool IsExternalLockType ()
 
int GetLockSideByComponentIndex (int componentIndex)
 
override void InitItemSounds ()
 
void SoundLockOpen ()
 DEPRECTAED.
 
void SoundLockClose ()
 
void SoundLockChangeNumber ()
 
void SoundLockChangeDial ()
 
bool IsLockedOnGate ()
 
void Unlock ()
 
void SetDigitRotationAnimationPhase (string digitIndex, float rot)
 
void AnimateDigits (string digitIndex)
 

Переменные

const float DIGIT_ROTATION_POSITION_0 = 0.9
 
const float DIGIT_ROTATION_POSITION_1 = 0.0
 
const float DIGIT_ROTATION_POSITION_2 = 0.1
 
const float DIGIT_ROTATION_POSITION_3 = 0.2
 
const float DIGIT_ROTATION_POSITION_4 = 0.3
 
const float DIGIT_ROTATION_POSITION_5 = 0.4
 
const float DIGIT_ROTATION_POSITION_6 = 0.5
 
const float DIGIT_ROTATION_POSITION_7 = 0.6
 
const float DIGIT_ROTATION_POSITION_8 = 0.7
 
const float DIGIT_ROTATION_POSITION_9 = 0.8
 
enum LockAction LOCK_SELECTION_OUTSIDE = "lock_attached_outside"
 
static const string LOCK_SELECTION_INSIDE = "lock_attached_inside"
 
static const int FACING_OUTSIDE = 0
 
static const int FACING_INSIDE = 1
 
int m_LockDigits
 
int m_Combination
 
int m_CombinationInside
 
int m_CombinationLocked
 
int m_DialIndex
 
int m_DialIndexInside
 
int m_LockDigitsCount
 
bool m_IsLocked
 
LockAction m_LockActionPerformed = LockAction.NONE
 
bool m_IsInitialized
 
const 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"
 
EffectSound m_Sound