Xonotic
|
Go to the source code of this file.
Macros | |
#define | REGISTER_GLOBALSOUND(id, str) |
#define | REGISTER_PLAYERSOUND(id) |
#define | REGISTER_VOICEMSG(id, vt, listed) |
Functions | |
void | ClearPlayerSounds (entity this) |
string | GetPlayerSoundSampleField (string type) |
entity | GetVoiceMessage (string type) |
string | GetVoiceMessageSampleField (string type) |
float | GlobalSound_pitch (float _pitch) |
string | GlobalSound_sample (string pair, float r) |
float | LoadPlayerSounds (entity this, string f, bool strict) |
PRECACHE (GlobalSounds) | |
void | PrecacheGlobalSound (string samplestring) |
void | PrecachePlayerSounds (string f) |
REPLICATE_INIT (float, cvar_cl_autotaunt) | |
REPLICATE_INIT (int, cvar_cl_voice_directional) | |
REPLICATE_INIT (float, cvar_cl_voice_directional_taunt_attenuation) | |
STATIC_INIT (PlayerSounds_renumber) | |
STATIC_INIT (GlobalSounds_renumber) | |
STATIC_INIT (allvoicesamples) | |
void | UpdatePlayerSounds (entity this) |
Variables | |
string | allvoicesamples |
bool | GetPlayerSoundSampleField_notFound |
bool | instanceOfVoiceMessage |
string | m_globalsoundstr |
string | m_playersoundfld |
string | m_playersoundstr |
int | m_playersoundvt |
const int | VOICETYPE_AUTOTAUNT = 14 |
const int | VOICETYPE_LASTATTACKER = 12 |
const int | VOICETYPE_LASTATTACKER_ONLY = 13 |
const int | VOICETYPE_PLAYERSOUND = 10 |
const int | VOICETYPE_TAUNT = 15 |
const int | VOICETYPE_TEAMRADIO = 11 |
#define REGISTER_GLOBALSOUND | ( | id, | |
str | |||
) |
Definition at line 98 of file globalsound.qh.
Referenced by PRECACHE().
#define REGISTER_PLAYERSOUND | ( | id | ) |
Definition at line 24 of file globalsound.qh.
Referenced by STATIC_INIT().
#define REGISTER_VOICEMSG | ( | id, | |
vt, | |||
listed | |||
) |
Definition at line 54 of file globalsound.qh.
Definition at line 252 of file globalsound.qc.
References FOREACH, and strfree.
Referenced by UpdatePlayerSounds().
Definition at line 247 of file globalsound.qc.
References _GetPlayerSoundSampleField().
Referenced by LoadPlayerSounds().
Definition at line 196 of file globalsound.qc.
Referenced by _GetPlayerSoundSampleField(), and ClientCommand_voice().
Definition at line 217 of file globalsound.qc.
References _GetPlayerSoundSampleField().
Referenced by LoadPlayerSounds().
Definition at line 164 of file globalsound.qc.
Referenced by UpdatePlayerSounds().
Definition at line 150 of file globalsound.qc.
References car(), cdr(), floor(), and stof().
Referenced by Monster_Sound(), and UpdatePlayerSounds().
Definition at line 263 of file globalsound.qc.
References argv(), fclose(), fgets(), FILE_READ, fopen(), GetPlayerSoundSampleField(), GetPlayerSoundSampleField_notFound, GetVoiceMessageSampleField(), LOG_TRACEF, LOG_WARNF, strcat(), strcpy, and tokenize_console.
Referenced by UpdatePlayerSounds().
PRECACHE | ( | GlobalSounds | ) |
Definition at line 113 of file globalsound.qh.
References FOREACH, PrecacheGlobalSound(), and REGISTER_GLOBALSOUND.
Definition at line 176 of file globalsound.qc.
References car(), cdr(), precache_sound(), and stof().
Referenced by Monster_Sound_Precache(), PRECACHE(), PrecachePlayerSounds(), and STATIC_INIT().
Definition at line 222 of file globalsound.qc.
References argv(), fclose(), fgets(), FILE_READ, fopen(), LOG_WARNF, PrecacheGlobalSound(), strcat(), and tokenize_console.
Referenced by PRECACHE(), and precache_playermodel().
REPLICATE_INIT | ( | float | , |
cvar_cl_autotaunt | |||
) |
REPLICATE_INIT | ( | int | , |
cvar_cl_voice_directional | |||
) |
REPLICATE_INIT | ( | float | , |
cvar_cl_voice_directional_taunt_attenuation | |||
) |
STATIC_INIT | ( | PlayerSounds_renumber | ) |
Definition at line 35 of file globalsound.qh.
References FOREACH, REGISTER_PLAYERSOUND, and REGISTRY_CHECK.
STATIC_INIT | ( | GlobalSounds_renumber | ) |
Definition at line 107 of file globalsound.qh.
References FOREACH, PrecacheGlobalSound(), and REGISTRY_CHECK.
STATIC_INIT | ( | allvoicesamples | ) |
Definition at line 160 of file globalsound.qh.
References FOREACH, strcat(), strzone(), and substring().
Definition at line 300 of file globalsound.qc.
References ANIMACTION_TAUNT, animdecide_setaction(), ATTEN_MIN, ATTEN_NONE, ATTEN_NORM, backtrace, classname, ClearPlayerSounds(), CS_CVAR, entity(), FOREACH_CLIENT, get_model_datafilename(), GlobalSound_pitch(), GlobalSound_sample(), IS_DEAD, IS_PLAYER, IS_REAL_CLIENT, LoadPlayerSounds(), model, model_for_playersound, MSG_ALL, MSG_BROADCAST, msg_entity, MSG_ONE, NULL, pusher, random(), SAME_TEAM, scale, skin, skin_for_playersound, strcpy, VOICETYPE_AUTOTAUNT, VOICETYPE_LASTATTACKER, VOICETYPE_LASTATTACKER_ONLY, VOICETYPE_PLAYERSOUND, VOICETYPE_TAUNT, VOICETYPE_TEAMRADIO, VOL_BASE, and X.
Referenced by FixPlayermodel(), and setplayermodel().
string allvoicesamples |
Definition at line 159 of file globalsound.qh.
Referenced by ClientCommand_voice().
bool GetPlayerSoundSampleField_notFound |
Definition at line 123 of file globalsound.qh.
Referenced by _GetPlayerSoundSampleField(), and LoadPlayerSounds().
bool instanceOfVoiceMessage |
Definition at line 52 of file globalsound.qh.
string m_globalsoundstr |
Definition at line 96 of file globalsound.qh.
string m_playersoundfld |
Definition at line 17 of file globalsound.qh.
string m_playersoundstr |
Definition at line 16 of file globalsound.qh.
int m_playersoundvt |
Definition at line 53 of file globalsound.qh.
const int VOICETYPE_AUTOTAUNT = 14 |
Definition at line 68 of file globalsound.qh.
Referenced by PlayerPreThink(), and UpdatePlayerSounds().
const int VOICETYPE_LASTATTACKER = 12 |
Definition at line 66 of file globalsound.qh.
Referenced by UpdatePlayerSounds().
const int VOICETYPE_LASTATTACKER_ONLY = 13 |
Definition at line 67 of file globalsound.qh.
Referenced by PlayerPreThink(), and UpdatePlayerSounds().
const int VOICETYPE_PLAYERSOUND = 10 |
Definition at line 64 of file globalsound.qh.
Referenced by DrownPlayer(), PlayerDamage(), PlayerJump(), PM_check_hitground(), PM_dodging(), PM_Footsteps(), and UpdatePlayerSounds().
const int VOICETYPE_TAUNT = 15 |
Definition at line 69 of file globalsound.qh.
Referenced by UpdatePlayerSounds().
const int VOICETYPE_TEAMRADIO = 11 |
Definition at line 65 of file globalsound.qh.
Referenced by UpdatePlayerSounds().