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

◆ EEInit()

void Entity::EEInit ( )
inlineprotected

Called upon object creation.

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

906 {
907 GameInventory inventory = GetInventory();
908 if (inventory)
909 {
910 inventory.EEInit();
913 for ( int i = 0; i < inventory.AttachmentCount(); ++i )
914 {
915 EntityAI attachment = inventory.GetAttachmentFromIndex( i );
916 if ( attachment )
917 {
918 GameInventory attachmentInventory = attachment.GetInventory();
919 if ( attachmentInventory.GetCargo() )
920 {
921 m_AttachmentsWithCargo.Insert( attachment );
922 }
923
924 if ( attachmentInventory.GetAttachmentSlotsCount() > 0 )
925 {
926 m_AttachmentsWithAttachments.Insert( attachment );
927 }
928 }
929 }
930 }
931
933
934 if (CanHaveTemperature() && g_Game.IsServer())
936
937 ConstructionBasic constructionComponent = GetConstructionBasic();
938 if (constructionComponent)
939 {
940 constructionComponent.EEInitConstruction();
941 constructionComponent.InitBaseState(); //delayed to handle physics init states
942 }
943 }
DayZGame g_Game
Определения DayZGame.c:4074
void EEInitConstruction()
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...
ConstructionBasic GetConstructionBasic()
Construction itself is defined on module 4. Workaround. Don't forget to cast!
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(), ConstructionBasic::EEInitConstruction(), EntityAI(), g_Game, GameInventory::GetAttachmentFromIndex(), GameInventory::GetAttachmentSlotsCount(), GameInventory::GetCargo(), GetConstructionBasic(), GetInventory(), ConstructionBasic::InitBaseState(), InitTemperature(), m_AttachmentsWithAttachments, m_AttachmentsWithCargo и MaxLifetimeRefreshCalc().