csgo-plugins/includes/mapmusic_interface.inc
2020-03-25 20:09:12 +02:00

53 lines
1.6 KiB
SourcePawn

#if defined _mapmusic_interface
#endinput
#endif
#define _mapmusic_interface
native float MapMusicInterface_GetSoundVolume(int client);
native float MapMusicInterface_GetMusicVolume(int client);
native void MapMusicInterface_SetSoundVolume(int client, float volume);
native void MapMusicInterface_SetMusicVolume(int client, float volume);
native bool MapMusicInterface_IsDisabled(int client);
native void MapMusicInterface_SetDisabled(int client, bool disabled);
native bool MapMusicInterface_GetBlockAll();
native void MapMusicInterface_SetBlockAll(bool block);
native bool MapMusicInterface_HasExceedingLengthSound(float searchlength = 0.0);
forward Action MapMusicInterface_OnStartSound(const char[] sample, float length, bool& isMusic, int& volume);
/* DO NOT EDIT BELOW THIS LINE */
public SharedPlugin __pl_mapmusic_interface =
{
name = "mapmusic_interface",
file = "mapmusic_interface.smx",
#if defined REQUIRE_PLUGIN
required = 1,
#else
required = 0,
#endif
};
#if !defined REQUIRE_PLUGIN
public void __pl_mapmusic_interface_SetNTVOptional()
{
MarkNativeAsOptional("MapMusicInterface_GetSoundVolume");
MarkNativeAsOptional("MapMusicInterface_GetMusicVolume");
MarkNativeAsOptional("MapMusicInterface_SetSoundVolume");
MarkNativeAsOptional("MapMusicInterface_SetMusicVolume");
MarkNativeAsOptional("MapMusicInterface_IsDisabled");
MarkNativeAsOptional("MapMusicInterface_SetDisabled");
MarkNativeAsOptional("MapMusicInterface_GetBlockAll");
MarkNativeAsOptional("MapMusicInterface_SetBlockAll");
MarkNativeAsOptional("MapMusicInterface_HasExceedingLengthSound");
}
#endif