14 if (e.classname ==
"body") e = e.enemy;
15 else if (e.realowner && e.realowner != e) e = e.realowner;
16 else if (e.owner && e.owner != e) e = e.owner;
44 attenu =
floor(attenu * 64);
45 vol =
floor(vol * 255);
47 int speed4000 =
floor((_pitch * 0.01) * 4000 + 0.5);
74void soundto(
int _dest,
entity e,
int chan,
string samp,
float vol,
float _atten,
float _pitch)
77 vector o = e.origin + 0.5 * (e.mins + e.maxs);
78 soundtoat(_dest, e, o, chan, samp, vol, _atten, _pitch);
88 if (entno >= 8192 || chan < 0 || chan > 7)
127 if (
time > e.spamtime)
130 sound(e, chan, samp, vol, _atten);
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define _sound(e, c, s, v, a)
#define sound(e, c, s, v, a)
bool autocvar_bot_sound_monopoly
const int SND_ATTENUATION
const int SND_SPEEDUSHORT4000
void play2(entity e, string filename)
void play2team(float t, string filename)
void stopsound(entity e, int chan)
const int SND_LARGEENTITY
int precache_sound_index(string s)
hack: string precache_sound(string s) = #19;
void play2all(string samp)
void stopsoundto(int _dest, entity e, int chan)
void soundtoat(int to, entity e, vector o, int chan, string samp, float vol, float attenu, float _pitch)
void soundto(int _dest, entity e, int chan, string samp, float vol, float _atten, 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 soundat(entity e, vector o, int chan, string samp, float vol, float _atten)
bool sound_allowed(int to, entity e)
#define IS_REAL_CLIENT(v)
#define FOREACH_CLIENT(cond, body)