e.state = 0;
}
if(e.state != s0)
- sound(e, CHAN_PROJECTILE, "", e.volume * e.state, ATTN_NONE);
+ sound(e, CHAN_VOICE, "", e.volume * e.state, ATTN_NONE);
}
music_trigger = world;
}
if(e.noise)
strunzone(e.noise);
e.noise = strzone(noi);
- sound(e, CHAN_PROJECTILE, self.noise, 0, ATTN_NONE);
+ sound(e, CHAN_VOICE, self.noise, 0, ATTN_NONE);
}
e.volume = vol;
e.fade_time = fai;
// on world: UNUSED
// on players: voice VOICE
// on entities: ambient AMBIENT
- // on csqc: UNUSED
+ // on csqc: background music BGM
float CHAN_TRIGGER = 3; // Triggers/Items
// on world: UNUSED
// on players: item pickup ITEMS
me.TR(me);
s = makeXonoticDecibelsSlider(-20, 0, 0.5, "bgmvolume");
+ makeMulti(s, "snd_csqcchannel2volume");
me.TD(me, 1, 1, e = makeXonoticSliderCheckBox(-1000000, 1, s, "Music:"));
me.TD(me, 1, 2, s);
me.TR(me);