Thanks, but on github version sounds are not precached, or am i doing something wrong?Foxculated, Use the latest version from github
sound_vote_started
for example.What do you mean wrong? It comes by default in your configuration fileFoxculated, Wrong syntax. Look atsound_vote_started
for example.
"KEY"
option, sounds_countdown is "KEY" = "VALUE"
option."1" = "sound"
by default in sound_vote_finished option?Sorry, my fault. Noticed that it is not like countdown...Foxculated, you trying use syntax from countdown to single sound option. sound_vote_finished is"KEY"
option, sounds_countdown is"KEY" = "VALUE"
option.
Where did you see something like"1" = "sound"
by default in sound_vote_finished option?
Have you seen how the sound is written for the sound_vote_started option?
send_audio
ставить после public mapm_vote_finished(const map[], type, total_votes)
, но увы.. видимо не угадал public mapm_vote_started(type)
{
send_audio(0, "sound/wrabbit/choosemap.wav", PITCH_NORM);
}
public mapm_vote_finished(const map[], type, total_votes)
{
disable_effects();
}
public mapm_vote_canceled(type)
{
disable_effects();
}
disable_effects()
{
if(get_num(BLACK_SCREEN)) {
remove_task(TASK_FULLBLACK);
set_black_screenfade(0);
}
if(get_num(BLOCK_CHAT)) {
g_bBlockChat = false;
}
if(get_num(BLOCK_VOICE)) {
set_num(VOICE_ENABLED, 1);
}
if(get_num(FREEZE_IN_VOTE) != FREEZE_DISABLED) {
if(g_bFreezeTimeChanged) {
// decrease freezetime
g_bFreezeTimeChanged = false;
set_float(FREEZETIME, get_float(FREEZETIME) - get_float(PREPARE_TIME) - get_float(VOTE_TIME) - 1);
}
if(g_bFreezeFlagsChanged) {
g_bFreezeFlagsChanged = false;
freeze_unfreeze(1);
}
}
DisableHamForward(g_hHamSpawn);
}