|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | X() |
| #define | X() |
Variables | |
| bool | autocvar_g_debug_defaultsounds |
| string | model_for_playersound |
| int | skin_for_playersound |
| #define X | ( | ) |
Referenced by __spawnfunc_defer(), __spawnfunc_spawn(), _GlobalSound(), _wepent_send(), load_unit_settings(), ReadWepent(), STATIC_INIT(), wepent_think(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), X(), and X().
| #define X | ( | ) |
Definition at line 208 of file globalsound.qc.
References entity(), GetPlayerSound(), GetPlayerSoundSampleField_notFound, and GetVoiceMessage().
Referenced by GetPlayerSoundSampleField(), and GetVoiceMessageSampleField().
| void _GlobalSound | ( | entity | this, |
| entity | gs, | ||
| entity | ps, | ||
| string | sample, | ||
| int | chan, | ||
| float | vol, | ||
| int | voicetype, | ||
| bool | fake ) |
Definition at line 321 of file globalsound.qc.
References ANIMACTION_TAUNT, animdecide_setaction(), atten, ATTEN_MIN, ATTEN_NONE, ATTEN_NORM, autocvar_sv_autotaunt, autocvar_sv_taunt, backtrace, classname, CS_CVAR, entity(), FOREACH_CLIENT, globalsound(), GlobalSound_pitch(), GlobalSound_sample(), IS_DEAD, IS_PLAYER, IS_REAL_CLIENT, MSG_ALL, MSG_BROADCAST, msg_entity, MSG_ONE, NULL, playersound(), pusher, random(), SAME_TEAM, scale, sound_allowed(), soundto(), VOICETYPE_AUTOTAUNT, VOICETYPE_LASTATTACKER, VOICETYPE_LASTATTACKER_ONLY, VOICETYPE_PLAYERSOUND, VOICETYPE_TAUNT, VOICETYPE_TEAMRADIO, VOL_BASE, and X.
Definition at line 252 of file globalsound.qc.
References entity(), FOREACH, and strfree.
Referenced by UpdatePlayerSounds().
Definition at line 202 of file globalsound.qc.
References entity(), FOREACH, and NULL.
Referenced by _GetPlayerSoundSampleField().
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().
| void globalsound | ( | int | channel, |
| entity | from, | ||
| entity | gs, | ||
| float | r, | ||
| int | chan, | ||
| float | _vol, | ||
| float | _atten, | ||
| float | _pitch ) |
| from | the source entity, its position is sent |
| gs | the global sound def |
| r | a random number in 0..1 |
Definition at line 22 of file globalsound.qc.
References autocvar_g_debug_globalsounds, entcs_force_origin(), entity(), etof, floor(), globalsound(), GlobalSound_sample(), IS_REAL_CLIENT, MSG_ALL, MSG_BROADCAST, msg_entity, MSG_ONE, sound_allowed(), soundto(), vector, WriteByte(), and WriteHeader.
Referenced by _GlobalSound(), globalsound(), and NET_HANDLE().
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().
| NET_HANDLE | ( | globalsound | , |
| bool | isnew ) |
Definition at line 92 of file globalsound.qc.
References atten, entcs_receiver, entity(), entnum, findfloat(), globalsound(), GlobalSound_sample(), LOG_WARNF, NULL, player_currententnum, ReadByte(), ReadSByte, ReadVector, REGISTRY_GET, sound8, and vector.
| NET_HANDLE | ( | playersound | , |
| bool | isnew ) |
Definition at line 119 of file globalsound.qc.
References atten, entcs_receiver, entity(), entnum, findfloat(), GlobalSound_sample(), LOG_WARNF, NULL, player_currententnum, playersound(), ReadByte(), ReadSByte, ReadVector, REGISTRY_GET, sound8, UpdatePlayerSounds(), and vector.
| void playersound | ( | int | channel, |
| entity | from, | ||
| entity | ps, | ||
| float | r, | ||
| int | chan, | ||
| float | _vol, | ||
| float | _atten, | ||
| float | _pitch ) |
| from | the source entity, its position is sent |
| ps | the player sound def |
| r | a random number in 0..1 |
Definition at line 57 of file globalsound.qc.
References autocvar_g_debug_globalsounds, entcs_force_origin(), entity(), etof, floor(), GlobalSound_sample(), IS_REAL_CLIENT, MSG_ALL, MSG_BROADCAST, msg_entity, MSG_ONE, playersound(), sound_allowed(), soundto(), vector, WriteByte(), and WriteHeader.
Referenced by _GlobalSound(), NET_HANDLE(), and playersound().
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 | ( | cvar_cl_autotaunt | , |
| float | , | ||
| "cl_autotaunt" | ) |
| REPLICATE | ( | cvar_cl_voice_directional | , |
| int | , | ||
| "cl_voice_directional" | ) |
| REPLICATE | ( | cvar_cl_voice_directional_taunt_attenuation | , |
| float | , | ||
| "cl_voice_directional_taunt_attenuation" | ) |
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().
| bool autocvar_g_debug_defaultsounds |
Definition at line 298 of file globalsound.qc.
Referenced by UpdatePlayerSounds().
| string model_for_playersound |
Definition at line 295 of file globalsound.qc.
Referenced by UpdatePlayerSounds().
| int skin_for_playersound |
Definition at line 296 of file globalsound.qc.
Referenced by UpdatePlayerSounds().