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

◆ EEInit()

void Entity::EEInit ( )
inlineprotected

Called upon object creation.

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

901 {
902 GameInventory inventory = GetInventory();
903 if (inventory)
904 {
905 inventory.EEInit();
908 for ( int i = 0; i < inventory.AttachmentCount(); ++i )
909 {
910 EntityAI attachment = inventory.GetAttachmentFromIndex( i );
911 if ( attachment )
912 {
913 GameInventory attachmentInventory = attachment.GetInventory();
914 if ( attachmentInventory.GetCargo() )
915 {
916 m_AttachmentsWithCargo.Insert( attachment );
917 }
918
919 if ( attachmentInventory.GetAttachmentSlotsCount() > 0 )
920 {
921 m_AttachmentsWithAttachments.Insert( attachment );
922 }
923 }
924 }
925 }
926
928
929 if (CanHaveTemperature() && g_Game.IsServer())
931 }
DayZGame g_Game
Определения DayZGame.c:3942
ref array< EntityAI > m_AttachmentsWithCargo
void InitTemperature()
ref array< EntityAI > m_AttachmentsWithAttachments
proto native GameInventory GetInventory()
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
void MaxLifetimeRefreshCalc()
Calculates if the max lifetime is higher than refresher frequency (i.e. gets kept alive by refresher)
bool CanHaveTemperature()
returns true used on selected items that have a temperature effect and can processes temperature chan...
proto native int GetAttachmentSlotsCount()
proto native EntityAI GetAttachmentFromIndex(int index)
proto native CargoBase GetCargo()
cargo
proto native int AttachmentCount()
Returns count of attachments attached to this item.

Перекрестные ссылки GameInventory::AttachmentCount(), CanHaveTemperature(), GameInventory::EEInit(), EntityAI(), g_Game, GameInventory::GetAttachmentFromIndex(), GameInventory::GetAttachmentSlotsCount(), GameInventory::GetCargo(), GetInventory(), InitTemperature(), m_AttachmentsWithAttachments, m_AttachmentsWithCargo и MaxLifetimeRefreshCalc().