120    if (autocvar_g_logTimestamps)
 
  121        print(sprintf(
"^9%f ^xF50%s^7: %s\n", time, functionName, msg));
 
  123        print(sprintf(
"^xF50%s^7: %s\n", functionName, msg));
 
 
  130#define SndLog(...) if (autocvar_s_logLevel >= LOGLEVEL_DEBUG) _SndLog(__FUNC__, sprintf(__VA_ARGS__)) 
  133_SndEntLog(
string className, 
string functionName, 
float edictNum, 
string warnMessage)
 
  135    if (autocvar_g_logTimestamps)
 
  136        print(sprintf(
"^9%f ^xF50%s (id: %d)^7: %s\n", time, functionName, edictNum, warnMessage));
 
  138        print(sprintf(
"^xF50%s (id: %d)^7: %s\n", functionName, edictNum, warnMessage));
 
 
  145#define SndEntLog(...) if (autocvar_s_logLevel >= LOGLEVEL_DEBUG) _SndEntLog(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__)) 
  162void SoundDef_Play(entity targetEntity, 
int sndChannel, 
string sndDef);
 
  170void SoundDef_Update(entity targetEntity, 
int sndChannel, 
int sndSample, 
float desiredVolume);
 
  175void SoundDef_Speak(entity targetEntity, 
string sentencesEntry);
 
float flags
Definition soundDef.h:114
var logLevel_t autocvar_s_logLevel
Definition soundDef.h:116
int SoundDef_GetID(string sndDef)
Definition soundDef.qc:790
void _SndLog(string functionName, string msg)
Definition soundDef.h:118
void SoundDef_Play(entity targetEntity, int sndChannel, string sndDef)
Play a soundDef on a given target entity.
Definition soundDef.qc:577
void SoundDef_DebugList()
Called by listSoundDef.
Definition soundDef.qc:957
float maxspeed
Definition soundDef.h:113
void SoundDef_Shutdown(void)
Called by CSQC_Shutdown() and in theory, somewhere on the server.
Definition soundDef.qc:36
void SoundDef_Update(entity targetEntity, int sndChannel, int sndSample, float desiredVolume)
Client-side only: Update the sound parameters on a given entity.
Definition soundDef.qc:800
int SoundDef_Precache(string sndDef)
Force the precache of a soundDef file.
Definition soundDef.qc:386
void SoundDef_Init(void)
Called by the client inside CSQC_Init(), and on the server inside init().
Definition soundDef.qc:47
void _SndEntLog(string className, string functionName, float edictNum, string warnMessage)
Definition soundDef.h:133
void SoundDef_Stop(entity target, float chan)
Stops sounds on a given channel, on a target entity.
Definition soundDef.qc:570
void SoundDef_PlayLocal(string shader)
Client-side only: Play a sound locally, outside the game world.
Definition soundDef.qc:762
void SoundDef_PlayAt(vector worldPos, string sndDef)
Play a soundDef a a given location.
Definition soundDef.qc:699
A sound sample of a sentences.txt word sequence.
Definition soundDef.h:149
string m_strSnd
Definition soundDef.h:150
float m_flLength
Definition soundDef.h:151
float m_flPitch
Definition soundDef.h:152