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

◆ UpdateVaporParticle()

void Edible_Base::UpdateVaporParticle ( )
inlineprotected

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

931 {
932 if (GetGame().IsDedicatedServer())
933 return;
934
935 if (m_VarTemperature >= GameConstants.STATE_HOT_LVL_TWO && !m_HotVaporParticle)
936 {
937 InventoryLocation invLoc = new InventoryLocation();
938 GetInventory().GetCurrentInventoryLocation(invLoc);
939 if (invLoc && (invLoc.GetType() == InventoryLocationType.GROUND || invLoc.GetType() == InventoryLocationType.HANDS || invLoc.GetType() == InventoryLocationType.ATTACHMENT))
940 {
941 ParticleManager ptcMgr = ParticleManager.GetInstance();
942 if (ptcMgr)
943 {
944 m_HotVaporParticle = ParticleManager.GetInstance().PlayOnObject(ParticleList.ITEM_HOT_VAPOR, this);
945 m_HotVaporParticle.SetParticleParam(EmitorParam.SIZE, 0.3);
946 m_HotVaporParticle.SetParticleParam(EmitorParam.BIRTH_RATE, 10);
947 m_HotVaporParticle.SetParticleAutoDestroyFlags(ParticleAutoDestroyFlags.ON_STOP);
948 }
949 }
950 }
951 else if (m_HotVaporParticle)
952 {
953 if (m_VarTemperature <= GameConstants.STATE_HOT_LVL_TWO)
954 {
955 m_HotVaporParticle.Stop();
956 m_HotVaporParticle = null;
957 return;
958 }
959
960 InventoryLocation inventoryLoc = new InventoryLocation();
961 GetInventory().GetCurrentInventoryLocation(inventoryLoc);
962 if (invLoc && (invLoc.GetType() != InventoryLocationType.GROUND && invLoc.GetType() != InventoryLocationType.HANDS))
963 {
964 m_HotVaporParticle.Stop();
965 m_HotVaporParticle = null;
966 }
967 }
968 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
ParticleAutoDestroyFlags
Flags to pass to ParticleSource.SetParticleAutoDestroyFlags.
Определения ParticleSource.c:3
ParticleSource m_HotVaporParticle
Определения Edible_Base.c:21
proto native int GetType()
returns type of InventoryLocation
proto native CGame GetGame()
EmitorParam
Определения EnVisual.c:114

Перекрестные ссылки GetGame(), InventoryLocation::GetType(), ParticleList::ITEM_HOT_VAPOR, m_HotVaporParticle, ParticleManager() и GameConstants::STATE_HOT_LVL_TWO.

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