• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Music thread
#1
I made a thread for music pretty simple thread but, I'm such a noob that it don't work.....

it looks also terrible Tongue, 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)
Black Ops Mods:

RPG(rocket launcher) mod
Get the Specials

Old aliasses:

eliteCVDelite
CVD

  Reply
#2
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;

YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
  Reply
#3
*GENIUS*
[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]
  Reply
#4
Since 1.09 you can include your own music on any map.

I'm just sayin'.
  Reply
#5
(06-12-2011, 17:58)SuperNovaAO Wrote: Since 1.09 you can include your own music on any map.

I'm just sayin'.

how? i want to play some good music that i have lol
  Reply
#6
(06-12-2011, 17:58)SuperNovaAO Wrote: Since 1.09 you can include your own music on any map.

I'm just sayin'.

Since 1.09 (and before that) you can't convert music files to work.
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
  Reply
#7
someone said something about a bytepatch in the .wav header to make custom sounds work.
  Reply
#8
(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
  Reply
#9
http://www.itsmods.com/forum/Thread-Soun...0#pid17640
  Reply
#10
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 51
or
Code:
.....O........0........0......................yQ
this is what it would look like with a normal header
Code:
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 51
or
Code:
RIFFQ.WAVEfmt 2..........M...... [email protected]
with
Code:
64 61 74 61 A8 79 51
just before the start of the data , open them up in Hxd and have a look you'll get the idea, also i posted a tool in that thread that puts the real headers in to the files so you can play them , handy to convert them and brong them in to hxd and look at what they changed , thats how i got custom music working xD
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Thread removed [HARD] Tony. 4 3,420 10-01-2013, 17:53
Last Post: DidUknowiPwn
  Help Thread removed [HARD] Tony. 5 3,611 09-26-2013, 20:26
Last Post: Casper
  Thread removed [HARD] Tony. 3 2,657 09-22-2013, 16:23
Last Post: d0h!
  Thread removed [HARD] Tony. 2 2,345 09-20-2013, 18:03
Last Post: [HARD] Tony.
  Thread removed [HARD] Tony. 3 2,823 09-20-2013, 16:00
Last Post: Nekochan
  Help Official Teckno Gods Thread [Stickied] aceed 3 3,029 08-27-2013, 16:55
Last Post: SuperNovaAO
Thumbs Up Awesome music Nekochan 2 2,937 07-26-2013, 21:49
Last Post: Nekochan
  Tim Minchin - Combining music and humour Arteq 0 2,093 07-19-2013, 17:35
Last Post: Arteq
  Chill Music AZUMIKKEL 8 4,860 07-16-2013, 13:54
Last Post: AZUMIKKEL
Video Preview AIZombies eXtreme 2.0 / Zombie Player (Music Player) DidUknowiPwn 4 5,397 06-24-2013, 16:37
Last Post: DidUknowiPwn

Forum Jump:


Users browsing this thread: 1 Guest(s)