WriteByte(to, TE_CSQC_TARGET_MUSIC);
WriteByte(to, self.volume * 255.0);
WriteByte(to, self.fade_time * 16.0);
+ WriteByte(to, self.timeout);
WriteString(to, self.noise);
}
void target_music_reset()
{
- target_music_sendto(MSG_ALL);
+ if(self.targetname == "")
+ target_music_sendto(MSG_ALL);
}
void target_music_use()
{
precache_sound(self.noise);
if(!self.volume)
self.volume = 1;
- target_music_sendto(MSG_INIT);
+ if(self.targetname == "")
+ target_music_sendto(MSG_INIT);
}
// values:
// volume