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

◆ EEHealthLevelChanged()

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

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 1027

1028 {
1029 // Notify potential parent that this item was ruined
1030 EntityAI parent = GetHierarchyParent();
1031
1032 if (newLevel == GameConstants.STATE_RUINED)
1033 {
1034 if (parent)
1035 {
1036 parent.OnAttachmentRuined(this);
1037 }
1038 if (!zone)
1039 {
1040 OnDamageDestroyed(oldLevel);
1041 }
1042 AttemptDestructionBehaviour(oldLevel,newLevel, zone);
1043 }
1044 }
proto native EntityAI GetHierarchyParent()
Returns direct parent of current entity.
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
void OnDamageDestroyed(int oldLevel)
Called when the health gets to the min value, 'oldLevel' is previous health level,...
void AttemptDestructionBehaviour(int oldLevel, int newLevel, string zone)

Перекрестные ссылки AttemptDestructionBehaviour(), EntityAI(), GetHierarchyParent(), OnDamageDestroyed() и GameConstants::STATE_RUINED.