98 {
99 if (!super.ActionCondition(player, target, item))
100 return false;
101
102 bool isFacingBackside = false;
104 if (!codeLock || (codeLock && !codeLock.
HasEnergy()))
105 return false;
106
107 if (!
g_Game.IsDedicatedServer())
108 {
109 if (!codeLock.GetHierarchyRoot())
110 return false;
111
113
115 {
117 {
118 m_Text =
"#STR_LOCK_CODELOCK";
119 return true;
120 }
121
123 {
125 {
126 m_Text =
"#STR_ENTER_CODE";
127 return true;
128 }
129 else if (isFacingBackside)
130 {
131 m_Text =
"#STR_UNLOCK_CODELOCK";
132 return true;
133 }
134 }
135 }
136 else
137 {
138 if (!isFacingBackside && codeLock.
CanSetCode())
139 {
141 return true;
142 }
143 }
144 }
145 else
146 {
147 return true;
148 }
149
150 return false;
151 }
bool HasBruteForceProtection()
bool IsPlayerOnBackside(PlayerBase player)