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

◆ UpdateVaporParticle()

void Edible_Base::UpdateVaporParticle ( )
inlineprotected

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

935 {
936 if (g_Game.IsHeadlessOrDedicatedServer())
937 return;
938
939 if (m_VarTemperature >= GameConstants.STATE_HOT_LVL_TWO && !m_HotVaporParticle)
940 {
941 InventoryLocation invLoc = new InventoryLocation();
942 GetInventory().GetCurrentInventoryLocation(invLoc);
943 if (invLoc && (invLoc.GetType() == InventoryLocationType.GROUND || invLoc.GetType() == InventoryLocationType.HANDS || invLoc.GetType() == InventoryLocationType.ATTACHMENT))
944 {
945 ParticleManager ptcMgr = ParticleManager.GetInstance();
946 if (ptcMgr)
947 {
948 m_HotVaporParticle = ParticleManager.GetInstance().PlayOnObject(ParticleList.ITEM_HOT_VAPOR, this);
949 m_HotVaporParticle.SetParticleParam(EmitorParam.SIZE, 0.3);
950 m_HotVaporParticle.SetParticleParam(EmitorParam.BIRTH_RATE, 10);
951 m_HotVaporParticle.SetParticleAutoDestroyFlags(ParticleAutoDestroyFlags.ON_STOP);
952 }
953 }
954 }
955 else if (m_HotVaporParticle)
956 {
957 if (m_VarTemperature <= GameConstants.STATE_HOT_LVL_TWO)
958 {
959 m_HotVaporParticle.Stop();
960 m_HotVaporParticle = null;
961 return;
962 }
963
964 InventoryLocation inventoryLoc = new InventoryLocation();
965 GetInventory().GetCurrentInventoryLocation(inventoryLoc);
966 if (invLoc && (invLoc.GetType() != InventoryLocationType.GROUND && invLoc.GetType() != InventoryLocationType.HANDS))
967 {
968 m_HotVaporParticle.Stop();
969 m_HotVaporParticle = null;
970 }
971 }
972 }
DayZGame g_Game
Определения DayZGame.c:4074
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
EmitorParam
Определения EnVisual.c:114

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

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