![]() |
|
Music thread - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Music thread (/Thread-Music-thread.html) |
Music thread - Xzite - 06-12-2011 I made a thread for music pretty simple thread but, I'm such a noob that it don't work..... it looks also terrible , but no errors I only get with the wait 1; every second a printin :S and not if meleebutton is pressed.Code: Music()
{
if ( self IsHost() )
self endon("disconnect");
self endon("death");
for(;;)
{
if(self MeleeButtonPressed())
clientnotify ( "notify_stones" ); // the music only works in nuketown
iPrintLnBold("^1Music On");
wait 1;
if(self MeleeButtonPressed())
clientnotify ( "none" );
iPrintLnBold("^1Music Off");
wait 1;
}
}plz help(wouldn't take so long i guess) RE: Music thread - AZUMIKKEL - 06-12-2011 PHP Code: for(;;)
{
while(!self MeleeButtonPressed())
wait 0.05;
clientnotify("notify_stones");
iPrintLnBold("^1Music On");
wait 0.2;
while(!self MeleeButtonPressed())
wait 0.05;
clientnotify("none");
iPrintLnBold("^1Music Off");
wait 0.2;
}
RE: Music thread - Arteq - 06-12-2011 *GENIUS* RE: Music thread - SuperNovaAO - 06-12-2011 Since 1.09 you can include your own music on any map. I'm just sayin'. RE: Music thread - mixedgamer123 - 06-12-2011 (06-12-2011, 17:58)SuperNovaAO Wrote: Since 1.09 you can include your own music on any map. how? i want to play some good music that i have lol RE: Music thread - AZUMIKKEL - 06-12-2011 (06-12-2011, 17:58)SuperNovaAO Wrote: Since 1.09 you can include your own music on any map. Since 1.09 (and before that) you can't convert music files to work. RE: Music thread - SuperNovaAO - 06-12-2011 someone said something about a bytepatch in the .wav header to make custom sounds work. RE: Music thread - mixedgamer123 - 06-12-2011 (06-12-2011, 19:09)SuperNovaAO Wrote: someone said something about a bytepatch in the .wav header to make custom sounds work. i'm afraid that doesnt help, because i forgot what a bytepatch is lol RE: Music thread - SuperNovaAO - 06-12-2011 http://www.itsmods.com/forum/Thread-Sounds-Animations-ANYTHING.html?pid=17640#pid17640 RE: Music thread - rotceh_dnih - 06-13-2011 well i've been playing around with the headers and stuff and i can make custom wav's work as long as you use them in place of a game sound file ie this is the header from the main menu wav file Code: 01 00 00 00 00 9C 4F 00 7F BB 00 00 02 00 00 00 30 08 00 00 00 06 01 00 00 30 08 00 06 00 00 00 03 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 A8 79 51Code: .....O........0........0......................yQCode: 52 49 46 46 F8 DF 51 00 57 41 56 45 66 6D 74 20 32 00 00 00 02 00 02 00 7F BB 00 00 4D B0 00 00 0C 02 04 00 20 00 00 02 07 00 00 01 00 00 00 02 00 FF 00 00 00 00 C0 00 40 00 F0 00 00 00 CC 01 30 FF 88 01 18 FF 50 52 49 56 DA 07 00 00 53 4E 44 53 05 00 00 00 7F BB 00 00 02 00 00 00 8A 6C 56 00 A8 79 51Code: RIFFQ.WAVEfmt 2..........M...... [email protected]Code: 64 61 74 61 A8 79 51 |