|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Functions | |
| void | play2 (entity e, string filename) |
| void | play2all (string samp) |
| void | play2team (float t, string filename) |
| int | precache_sound_index (string s) |
| hack: string precache_sound(string s) = #19; | |
| bool | sound_allowed (int to, entity e) |
| void | soundat (entity e, vector o, int chan, string samp, float vol, float _atten) |
| void | soundto (int _dest, entity e, int chan, string samp, float vol, float _atten, float _pitch) |
| void | soundtoat (int to, entity e, vector o, int chan, string samp, float vol, float attenu, float _pitch) |
| float | spamsound (entity e, int chan, Sound samp, float vol, float _atten) |
| use this one if you might be causing spam (e.g. | |
| void | stopsound (entity e, int chan) |
| void | stopsoundto (int _dest, entity e, int chan) |
Variables | |
| bool | autocvar_bot_sound_monopoly |
| entity | realowner |
| const int | SND_ATTENUATION = BIT(1) |
| const int | SND_LARGEENTITY = BIT(3) |
| const int | SND_LARGESOUND = BIT(4) |
| const int | SND_SPEEDUSHORT4000 = BIT(5) |
| const int | SND_VOLUME = BIT(0) |
| float | spamtime |
| const int | SVC_SOUND = 6 |
| const int | SVC_STOPSOUND = 16 |
Definition at line 116 of file all.qc.
References ATTEN_NONE, CH_INFO, entity(), msg_entity, MSG_ONE, NULL, soundtoat(), and VOL_BASE.
Referenced by client_hasweapon(), door_check_keys(), door_touch(), fragsfilter_use(), item_key_touch(), nades_GiveBonus(), ons_CaptureShield_Touch(), ons_ControlPoint_Icon_Damage(), ons_GeneratorDamage(), play2team(), secret_touch(), SUB_UseTargets_Ex(), target_print_message(), target_voicescript_next(), trigger_keylock_touch(), vehicles_locktarget(), W_MineLayer_Attack(), and W_Reload().
Definition at line 142 of file all.qc.
References _sound, ATTEN_NONE, autocvar_bot_sound_monopoly, CH_INFO, NULL, and VOL_BASE.
Referenced by dompoint_captured(), kh_LoserTeam(), kh_WinnerTeam(), and Onslaught_CheckWinner().
Definition at line 136 of file all.qc.
References autocvar_bot_sound_monopoly, FOREACH_CLIENT, IS_PLAYER, IS_REAL_CLIENT, and play2().
Referenced by ons_ControlPoint_Icon_Damage(), and ons_GeneratorDamage().
hack: string precache_sound(string s) = #19;
Referenced by soundtoat(), and stopsoundto().
Definition at line 9 of file all.qc.
References autocvar_bot_sound_monopoly, entity(), IS_REAL_CLIENT, msg_entity, and MSG_ONE.
Referenced by _GlobalSound(), CSQCProjectile(), Damage_DamageInfo(), globalsound(), GrapplingHookSend(), Monster_Damage(), PlayerCorpseDamage(), PlayerDamage(), playersound(), soundto(), soundtoat(), spamsound(), SpawnCasing(), stopsound(), stopsoundto(), vehicles_damage(), Violence_GibSplash_At(), and W_Tuba_NoteSendEntity().
Definition at line 80 of file all.qc.
References entity(), MSG_ALL, MSG_BROADCAST, soundtoat(), and vector.
Definition at line 74 of file all.qc.
References entity(), sound_allowed(), soundtoat(), and vector.
Referenced by _GlobalSound(), func_breakable_init_for_player(), func_rotating_init_for_player(), func_vectormamamam_init_for_player(), globalsound(), Item_RespawnCountdown(), ons_GeneratorThink(), playersound(), raptor_frame(), spawnfunc(), spawnfunc(), spawnfunc(), and target_speaker_use_activator().
| void soundtoat | ( | int | to, |
| entity | e, | ||
| vector | o, | ||
| int | chan, | ||
| string | samp, | ||
| float | vol, | ||
| float | attenu, | ||
| float | _pitch ) |
Definition at line 39 of file all.qc.
References entity(), etof, floor(), precache_sound_index(), SND_ATTENUATION, SND_LARGEENTITY, SND_LARGESOUND, SND_SPEEDUSHORT4000, SND_VOLUME, sound_allowed(), SVC_SOUND, vector, WriteByte(), WriteCoord(), and WriteShort().
Referenced by FireRailgunBullet(), play2(), soundat(), and soundto().
use this one if you might be causing spam (e.g.
from touch functions that might get called more than once per frame)
Definition at line 124 of file all.qc.
References entity(), MSG_BROADCAST, sound, sound_allowed(), and time.
Referenced by Monster_Damage(), nade_napalm_ball(), nade_touch(), vehicles_damage(), W_Electro_Orb_Touch(), W_MineLayer_Stick(), W_MineLayer_Think(), W_Mortar_Grenade_Touch1(), W_Mortar_Grenade_Touch2(), and W_Porto_Touch().
Definition at line 109 of file all.qc.
References entity(), MSG_ALL, MSG_BROADCAST, sound_allowed(), and stopsoundto().
Referenced by func_breakable_behave_destroyed(), func_rotating_setactive(), func_vectormamamam_setactive(), player_powerups_remove_all(), and PutPlayerInServer().
Definition at line 84 of file all.qc.
References entity(), etof, precache_sound_index(), SND, SND_LARGEENTITY, SND_LARGESOUND, sound_allowed(), SVC_SOUND, SVC_STOPSOUND, WriteByte(), WriteCoord(), and WriteShort().
Referenced by stopsound(), and train_wait().
| bool autocvar_bot_sound_monopoly |
Definition at line 6 of file all.qc.
Referenced by play2all(), play2team(), and sound_allowed().
Definition at line 34 of file all.qc.
Referenced by soundtoat().
Definition at line 35 of file all.qc.
Referenced by soundtoat(), and stopsoundto().
Definition at line 36 of file all.qc.
Referenced by soundtoat(), and stopsoundto().
Definition at line 37 of file all.qc.
Referenced by soundtoat().
Definition at line 33 of file all.qc.
Referenced by soundtoat().
| const int SVC_SOUND = 6 |
Definition at line 30 of file all.qc.
Referenced by soundtoat(), and stopsoundto().
| const int SVC_STOPSOUND = 16 |
Definition at line 31 of file all.qc.
Referenced by stopsoundto().