|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include <server/chat.qh>Go to the source code of this file.
Macros | |
| #define | GlobalSound(this, def, chan, vol, voicetype) |
| #define | GlobalSound_string(this, def, chan, vol, voicetype) |
| #define | PlayerSound(this, def, chan, vol, voicetype) |
| #define | REGISTER_GLOBALSOUND(id, str) |
| #define | REGISTER_PLAYERSOUND(id) |
| #define | REGISTER_VOICEMSG(id, vt, listed) |
| #define | VoiceMessage(this, def, msg) |
Functions | |
| void | _GlobalSound (entity this, entity gs, entity ps, string sample, float chan, float vol, float voicetype, bool fake) |
| 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 (float, cvar_cl_voice_directional_taunt_attenuation) | |
| REPLICATE_INIT (int, cvar_cl_voice_directional) | |
| STATIC_INIT (allvoicesamples) | |
| STATIC_INIT (GlobalSounds_renumber) | |
| STATIC_INIT (PlayerSounds_renumber) | |
| void | UpdatePlayerSounds (entity this) |
Variables | |
| string | allvoicesamples |
| bool | autocvar_g_debug_globalsounds = false |
| Use new sound handling. | |
| bool | autocvar_sv_autotaunt |
| bool | autocvar_sv_taunt |
| 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 GlobalSound | ( | this, | |
| def, | |||
| chan, | |||
| vol, | |||
| voicetype ) |
Definition at line 141 of file globalsound.qh.
Referenced by PM_check_hitground(), and PM_Footsteps().
| #define GlobalSound_string | ( | this, | |
| def, | |||
| chan, | |||
| vol, | |||
| voicetype ) |
Definition at line 142 of file globalsound.qh.
| #define PlayerSound | ( | this, | |
| def, | |||
| chan, | |||
| vol, | |||
| voicetype ) |
Definition at line 143 of file globalsound.qh.
Referenced by DrownPlayer(), MUTATOR_HOOKFUNCTION(), PlayerDamage(), PlayerJump(), PlayerPreThink(), and PM_dodging().
| #define REGISTER_GLOBALSOUND | ( | id, | |
| str ) |
Definition at line 98 of file globalsound.qh.
| #define REGISTER_PLAYERSOUND | ( | id | ) |
Definition at line 24 of file globalsound.qh.
| #define REGISTER_VOICEMSG | ( | id, | |
| vt, | |||
| listed ) |
Definition at line 54 of file globalsound.qh.
| #define VoiceMessage | ( | this, | |
| def, | |||
| msg ) |
Definition at line 144 of file globalsound.qh.
Referenced by ClientCommand_voice().
| void _GlobalSound | ( | entity | this, |
| entity | gs, | ||
| entity | ps, | ||
| string | sample, | ||
| float | chan, | ||
| float | vol, | ||
| float | voicetype, | ||
| bool | fake ) |
References entity().
Definition at line 252 of file globalsound.qc.
References entity(), 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.
References entity(), FOREACH, and NULL.
Referenced by _GetPlayerSoundSampleField(), and ClientCommand_voice().
Definition at line 217 of file globalsound.qc.
References _GetPlayerSoundSampleField().
Referenced by LoadPlayerSounds(), target_speaker_use_activator(), and target_speaker_use_on().
Definition at line 164 of file globalsound.qc.
Referenced by _GlobalSound().
Definition at line 150 of file globalsound.qc.
References car(), cdr(), floor(), and stof().
Referenced by _GlobalSound(), globalsound(), Monster_Sound(), NET_HANDLE(), NET_HANDLE(), and playersound().
Definition at line 263 of file globalsound.qc.
References argv(), entity(), 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, and PrecacheGlobalSound().
Definition at line 176 of file globalsound.qc.
References car(), cdr(), precache_sound(), and stof().
Referenced by Monster_Sound_Precache(), PRECACHE(), and PrecachePlayerSounds().
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 | ( | float | , |
| cvar_cl_voice_directional_taunt_attenuation | ) |
| REPLICATE_INIT | ( | int | , |
| cvar_cl_voice_directional | ) |
| STATIC_INIT | ( | allvoicesamples | ) |
Definition at line 160 of file globalsound.qh.
References allvoicesamples, FOREACH, strcat(), strzone(), and substring().
| STATIC_INIT | ( | GlobalSounds_renumber | ) |
Definition at line 107 of file globalsound.qh.
References FOREACH, and STATIC_INIT.
| STATIC_INIT | ( | PlayerSounds_renumber | ) |
Definition at line 35 of file globalsound.qh.
References FOREACH, and STATIC_INIT.
Definition at line 300 of file globalsound.qc.
References autocvar_g_debug_defaultsounds, autocvar_g_debug_globalsounds, ClearPlayerSounds(), entity(), get_model_datafilename(), LoadPlayerSounds(), model, model_for_playersound, skin, skin_for_playersound, and strcpy.
Referenced by FixPlayermodel(), NET_HANDLE(), and setplayermodel().
| string allvoicesamples |
Definition at line 159 of file globalsound.qh.
Referenced by ClientCommand_voice(), and STATIC_INIT().
Use new sound handling.
TODO: use when sounds play correctly on clients
Definition at line 9 of file globalsound.qh.
Referenced by FixPlayermodel(), globalsound(), playersound(), PutObserverInServer(), setplayermodel(), and UpdatePlayerSounds().
| bool autocvar_sv_autotaunt |
Definition at line 11 of file globalsound.qh.
Referenced by _GlobalSound().
| bool autocvar_sv_taunt |
Definition at line 10 of file globalsound.qh.
Referenced by _GlobalSound().
| bool GetPlayerSoundSampleField_notFound |
Definition at line 123 of file globalsound.qh.
Referenced by _GetPlayerSoundSampleField(), LoadPlayerSounds(), target_speaker_use_activator(), and target_speaker_use_on().
| 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 _GlobalSound(), and PlayerPreThink().
| const int VOICETYPE_LASTATTACKER = 12 |
Definition at line 66 of file globalsound.qh.
Referenced by _GlobalSound().
| const int VOICETYPE_LASTATTACKER_ONLY = 13 |
Definition at line 67 of file globalsound.qh.
Referenced by _GlobalSound(), and PlayerPreThink().
| const int VOICETYPE_PLAYERSOUND = 10 |
Definition at line 64 of file globalsound.qh.
Referenced by _GlobalSound(), DrownPlayer(), MUTATOR_HOOKFUNCTION(), PlayerDamage(), PlayerJump(), PM_check_hitground(), PM_dodging(), and PM_Footsteps().
| const int VOICETYPE_TAUNT = 15 |
Definition at line 69 of file globalsound.qh.
Referenced by _GlobalSound().
| const int VOICETYPE_TEAMRADIO = 11 |
Definition at line 65 of file globalsound.qh.
Referenced by _GlobalSound().