Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс BetaSound

Закрытые статические члены

static SoundOnVehicle SaySound (Object source, string sound_name, float distance, bool looped)
 

Подробное описание

Методы

◆ SaySound()

static SoundOnVehicle SaySound ( Object source,
string sound_name,
float distance,
bool looped )
inlinestaticprivate
4 {
5 bool is_female = source.ConfigGetBool("woman");
6
7
8 string path_class = "CfgActionSounds " + sound_name;
9 string path_sound = path_class + " sounds";
10 //is the action sound class defined ? if not, try to play it as a regular sound
11 if( GetDayZGame().ConfigIsExisting(path_sound) )
12 {
13 string path_sound_female = path_class + "_female" + " sounds";
14
15 if(is_female && GetDayZGame().ConfigIsExisting(path_sound_female))
16 {
18 }
19
24 return sound_object;
25 }
26 else
27 {
28 return GetGame().CreateSoundOnObject(source, sound_name, distance, looped);
29 }
30 }
DayZGame GetDayZGame()
Definition DayZGame.c:3748
Definition UtilityClasses.c:41
static ref TStringArray ARRAY_STRING
Definition UtilityClasses.c:49
Definition EnMath.c:7
Definition EntityAI.c:95
proto native CGame GetGame()
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

Перекрестные ссылки CachedObjectsArrays::ARRAY_STRING, GetDayZGame(), GetGame() и Math::RandomInt().

Используется в ManBase::PlaySound().


Объявления и описания членов класса находятся в файле: