#pragma once
+#if defined(SVQC)
+ #include <server/chat.qh>
+#endif
+
#ifdef SVQC
/** Use new sound handling. TODO: use when sounds play correctly on clients */
bool autocvar_g_debug_globalsounds = false;
..string m_playersoundfld;
REGISTRY(PlayerSounds, BITS(8) - 1)
-#define PlayerSounds_from(i) _PlayerSounds_from(i, NULL)
#define REGISTER_PLAYERSOUND(id) \
.string _playersound_##id; \
REGISTER(PlayerSounds, playersound, id, m_id, new_pure(PlayerSound)) \
}
REGISTER_REGISTRY(PlayerSounds)
REGISTRY_SORT(PlayerSounds)
+
+REGISTRY_DEFINE_GET(PlayerSounds, NULL)
STATIC_INIT(PlayerSounds_renumber)
{
FOREACH(PlayerSounds, true, it.m_id = i);
.string m_globalsoundstr;
REGISTRY(GlobalSounds, BITS(8) - 1)
-#define GlobalSounds_from(i) _GlobalSounds_from(i, NULL)
#define REGISTER_GLOBALSOUND(id, str) \
REGISTER(GlobalSounds, GS, id, m_id, new_pure(GlobalSound)) \
{ \
}
REGISTER_REGISTRY(GlobalSounds)
REGISTRY_SORT(GlobalSounds)
+
+REGISTRY_DEFINE_GET(GlobalSounds, NULL)
STATIC_INIT(GlobalSounds_renumber)
{
FOREACH(GlobalSounds, true, it.m_id = i);
string GlobalSound_sample(string pair, float r);
+float GlobalSound_pitch(float _pitch);
+
#ifdef SVQC
void _GlobalSound(entity this, entity gs, entity ps, string sample, float chan, float vol, float voicetype, bool fake);