X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fmiscfunctions.qh;h=c61dc1e7167397925c986e13266af9adc5ea5e36;hp=cb11057eff97d8c5167600c17a97d5ccd740ba9c;hb=8e5d3750fe6c2938222b1a6547b0d26b7a1ede60;hpb=e824d4612617171b932bba08f1a5a50500d4a603 diff --git a/qcsrc/server/miscfunctions.qh b/qcsrc/server/miscfunctions.qh index cb11057eff..c61dc1e716 100644 --- a/qcsrc/server/miscfunctions.qh +++ b/qcsrc/server/miscfunctions.qh @@ -11,24 +11,6 @@ #include #include -#if 1 -#define cvar_string_normal builtin_cvar_string -#define cvar_normal builtin_cvar -#else -string cvar_string_normal(string n) -{ - if (!(cvar_type(n) & CVAR_TYPEFLAG_EXISTS)) - backtrace(strcat("Attempt to access undefined cvar: ", n)); - return builtin_cvar_string(n); -} - -float cvar_normal(string n) -{ - return stof(cvar_string_normal(n)); -} -#endif -#define cvar_set_normal builtin_cvar_set - .vector dropped_origin; entity eliminatedPlayers; @@ -53,7 +35,7 @@ void soundat(entity e, vector o, float chan, string samp, float vol, float _atte void InitializeEntitiesRun(); void stopsoundto(float _dest, entity e, float chan); -void soundtoat(float _dest, entity e, vector o, float chan, string samp, float vol, float _atten); +void soundtoat(float _dest, entity e, vector o, float chan, string samp, float vol, float _atten, float _pitch); void droptofloor(entity this); @@ -74,14 +56,6 @@ string formatmessage(entity this, string msg); /** print(), but only print if the server is not local */ void dedicated_print(string input); -string GameLog_ProcessIP(string s); - -void GameLogEcho(string s); - -void GameLogInit(); - -void GameLogClose(); - void GetCvars(entity this, entity store, int f); string GetMapname(); @@ -108,7 +82,7 @@ void remove_unsafely(entity e); void SetMovetypeFollow(entity ent, entity e); -void soundto(float dest, entity e, float chan, string samp, float vol, float atten); +void soundto(float dest, entity e, float chan, string samp, float vol, float atten, float _pitch); void stopsound(entity e, float chan); @@ -133,9 +107,6 @@ void WarpZone_traceline_antilag (entity source, vector v1, vector v2, float nomo // copies a string to a tempstring (so one can strunzone it) string strcat1(string s) = #115; // FRIK_FILE -float logfile_open; -float logfile; - /* // NOTE: DO NOT USE THIS FUNCTION TOO OFTEN. // IT WILL MOST PROBABLY DESTROY _ALL_ OTHER TEMP