DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ EEHealthLevelChanged() [2/2]

override void ItemBase::EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprotected

См. определение в файле TentBase.c строка 190

191 {
192 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
193
195 return;
196
197 if (zone == "" && GetState() == PITCHED && newLevel == GameConstants.STATE_RUINED && GetGame().IsServer())
198 MiscGameplayFunctions.DropAllItemsInInventoryInBounds(this, m_HalfExtents);
199
200 if (zone != "Body" && zone != "Inventory" && zone != "")
201 {
202 if (newLevel == GameConstants.STATE_RUINED)
203 {
204 array<string> selections = new array<string>;
205 DamageSystem.GetComponentNamesFromDamageZone(this,zone,selections);
206 for (int j = 0; j < selections.Count(); j++)
207 {
208 if (selections.Get(j) != "")
209 {
210 RemoveProxyPhysics(selections.Get(j)); //To keep
211 //HideSelection(selections.Get(j)); //To change
212 AnimateCamonetByOpeningSelection(selections.Get(j)); //To keep
213 }
214 }
215 }
216 else if (oldLevel == GameConstants.STATE_RUINED)
217 {
218 if (GetState() == PITCHED)
219 {
220 TryPitch(true);
221 }
222 }
223 }
224 }
bool m_FixDamageSystemInit
Определения ItemBase.c:4835
vector m_HalfExtents
Определения TentBase.c:38
static const int PITCHED
Определения TentBase.c:21
void TryPitch(bool update_navmesh, bool init=false)
Определения TentBase.c:545
void AnimateCamonetByOpeningSelection(string opening_selection)
Определения TentBase.c:760
int GetState()
Определения TentBase.c:438
proto native CGame GetGame()

Перекрестные ссылки TentBase::AnimateCamonetByOpeningSelection(), GetGame(), GetState(), m_FixDamageSystemInit, m_HalfExtents, PITCHED, GameConstants::STATE_RUINED и TryPitch().