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

◆ PlayAmmoParticle()

static bool AmmoEffects::PlayAmmoParticle ( string ammoType,
vector pos )
inlinestaticprivate

Attempt to play the ammo particle at pos if found, returns true on success.

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

48 {
49 string surfaceType;
50 g_Game.SurfaceGetType3D(pos[0], pos[1], pos[2], surfaceType);
51 ExplosiveEffectData explosiveEffectData = AmmoTypesAPI.GetExplosiveEffectData(ammoType, surfaceType);
52 //int particleID = GetAmmoParticleID(ammoType);
53
54 if (ParticleList.IsValidId(explosiveEffectData.m_ParticleID))
55 {
56 return ParticleManager.GetInstance().PlayInWorld(explosiveEffectData.m_ParticleID, pos) != null;
57 }
58
59 return false;
60 }
void AmmoTypesAPI()
Определения AmmoTypes.c:17
DayZGame g_Game
Определения DayZGame.c:4074
string ammoType
Определения DustKickupEffects.c:24
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
int m_ParticleID
Определения AmmoTypes.c:3

Перекрестные ссылки ammoType, AmmoTypesAPI(), g_Game, ParticleList::IsValidId(), ExplosiveEffectData::m_ParticleID и ParticleManager().