- if(s0 < 0)
- sound(e, CHAN_VOICE, e.noise, e.volume * e.state * cvar("bgmvolume"), ATTN_NONE); // restart
+ if(vol0 < 0)
+ sound(e, CHAN_VOICE, e.noise, vol, ATTN_NONE); // restart
- sound(e, CHAN_VOICE, "", e.volume * e.state * cvar("bgmvolume"), ATTN_NONE);
+ sound(e, CHAN_VOICE, "", vol, ATTN_NONE);
+ e.lastvol = vol;
}
void Net_TargetMusic()
{
float vol, fai, fao, tim, id;
}
void Net_TargetMusic()
{
float vol, fai, fao, tim, id;
precache_sound(e.noise);
sound(e, CHAN_VOICE, e.noise, 0, ATTN_NONE);
if(getsoundtime(e, CHAN_VOICE) < 0)
precache_sound(e.noise);
sound(e, CHAN_VOICE, e.noise, 0, ATTN_NONE);
if(getsoundtime(e, CHAN_VOICE) < 0)