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

◆ EEHealthLevelChanged()

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

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

1044 {
1045 // Notify potential parent that this item was ruined
1046 EntityAI parent = GetHierarchyParent();
1047
1048 if (newLevel == GameConstants.STATE_RUINED)
1049 {
1050 if (parent)
1051 {
1052 parent.OnAttachmentRuined(this);
1053 }
1054 if (!zone)
1055 {
1056 OnDamageDestroyed(oldLevel);
1057 }
1058 AttemptDestructionBehaviour(oldLevel,newLevel, zone);
1059 }
1060
1062 HandleDamageLevelConstruction(oldLevel,newLevel,zone);
1063 }
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)
void HandleDamageLevelConstruction(int oldLevel, int newLevel, string zone)
ConstructionBasic GetConstructionBasic()
Construction itself is defined on module 4. Workaround. Don't forget to cast!

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