mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
silly me... now works in CS:GO
This commit is contained in:
parent
17e0314c3c
commit
7a76dd82b6
@ -168,11 +168,6 @@ public void Shavit_OnFinish(int client, BhopStyle style, float time, int jumps)
|
|||||||
|
|
||||||
if(StrContains(sSound, ".") != -1) // file has an extension?
|
if(StrContains(sSound, ".") != -1) // file has an extension?
|
||||||
{
|
{
|
||||||
if(gSG_Type == Game_CSGO)
|
|
||||||
{
|
|
||||||
Format(sSound, PLATFORM_MAX_PATH, "*%s", sSound);
|
|
||||||
}
|
|
||||||
|
|
||||||
PlayEventSound(client, bEveryone, sSound);
|
PlayEventSound(client, bEveryone, sSound);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -205,6 +200,20 @@ public void PlayEventSound(int client, bool everyone, const char[] sound)
|
|||||||
|
|
||||||
if(count > 0)
|
if(count > 0)
|
||||||
{
|
{
|
||||||
EmitSound(clients, count, sound, SOUND_FROM_PLAYER, SNDCHAN_STATIC, SNDLEVEL_NORMAL);
|
if(gSG_Type == Game_CSGO)
|
||||||
|
{
|
||||||
|
char[] sPlay = new char[PLATFORM_MAX_PATH+8];
|
||||||
|
FormatEx(sPlay, PLATFORM_MAX_PATH+8, "play */%s", sound);
|
||||||
|
|
||||||
|
for(int i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
ClientCommand(clients[i], sPlay);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
EmitSound(clients, count, sound);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user