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

◆ SoundCut()

void ItemBase::SoundCut ( )
inlineprotected

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

268 {
269 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
270 {
271 int random_index = Math.RandomInt(0, SOUNDS_CUT_COUNT);
272 string sound_type = m_SoundsCut[random_index];
273 PlaySound(sound_type, 50);
274 }
275 }
void PlaySound()
Определения HungerSoundHandler.c:38
static const string m_SoundsCut[SOUNDS_CUT_COUNT]
Определения BarbedWire.c:11
static const int SOUNDS_CUT_COUNT
Определения BarbedWire.c:5
proto native CGame GetGame()

Перекрестные ссылки GetGame(), m_SoundsCut, PlaySound(), Math::RandomInt() и SOUNDS_CUT_COUNT.

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