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

◆ ChangeInfestation()

void ChangeInfestation ( bool is_infested)
private

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

418 {
419 m_IsInfested = is_infested;
420
421 string plant_type = GetType();
422 PlantMaterialHealth material = m_ModuleHorticulture.GetPlantMaterial( plant_type );
423
424 if ( m_IsInfested )
425 {
426 if ( material.m_InfestedTex != "" )
427 {
428 SetObjectTexture( 0, material.m_InfestedTex );
429 }
430 if ( material.m_InfestedMat != "" )
431 {
432 SetObjectMaterial( 0, material.m_InfestedMat );
433 }
434 }
435 else
436 {
437 if ( material.m_HealthyTex != "" )
438 {
439 SetObjectTexture( 0, material.m_HealthyTex );
440 }
441 if ( material.m_HealthyMat != "" )
442 {
443 SetObjectMaterial( 0, material.m_HealthyMat );
444 }
445 }
446 }
eBleedingSourceType GetType()
PluginHorticulture m_ModuleHorticulture
Определения PlantBase.c:42
bool m_IsInfested
Определения PlantBase.c:26

Перекрестные ссылки GetType(), PlantMaterialHealth::m_HealthyMat, PlantMaterialHealth::m_HealthyTex, PlantMaterialHealth::m_InfestedMat, PlantMaterialHealth::m_InfestedTex, m_IsInfested и m_ModuleHorticulture.

Используется в GrowthTimerTick() и SprayPlant().