Results 1 to 5 of 5

Thread: Background music

  1. #1
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts

    Background music

    Hello, I have little problems with background music for my mod, I want to insert few nice fresh songs in the server, 1. When players joins and spawns. 2. As a background music the whole map. 3 At the end of the map when in scoreboard. But I have no idea how it would work, I have searched everywhere. Is it possible to insert the songs into the mod, not in the map? I only know that it is something like
    Code:
    sound playsound("mysound");
    or
    Code:
    soundEnt playsound( "mysound" );
    I am not 100% sure about that, I just saw these lines somewhere.
    Somebody please help. Thanks!

  2. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    http://www.modbase.be/tutorials/cod4...ptingindex.htm
    Look in the "Sound" thing
    Although it's for cod4, most of these work also in cod2

  3. #3
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    Quote Originally Posted by Ni3ls View Post
    http://www.modbase.be/tutorials/cod4...ptingindex.htm
    Look in the "Sound" thing
    Although it's for cod4, most of these work also in cod2
    Its not in english, so its a bit hard to understand anything from it :P

  4. #4
    Private
    Join Date
    Jul 2012
    Posts
    76
    Thanks
    9
    Thanked 56 Times in 38 Posts
    This is in english:
    http://www.zeroy.com/script/

    1. Unfortunately I forgot how the sound thingy works, but according to the script index you should try this one:
    Code:
    player PlaySoundToPlayer( "mysound", player );
    not sure if this is only for cod4, but you should try it, though.
    If not, simply find it out searching through the functions in the script index.

    2. If you want to play a sound to every player at the end of the map I propose using the ambient:
    Code:
    AmbientStop( 2 );
    AmbientPlay( "mysound2" );
    Atleast that seems to be the most simple solution.
    Last edited by Peterlankton; 16th December 2012 at 13:48.

  5. The Following 2 Users Say Thank You to Peterlankton For This Useful Post:

    EvoloZz (21st December 2012),kung foo man (16th December 2012)

  6. #5
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    Actually there is one for CoD2, many people just dont know about it because its hidden in your cod2 folder :P
    C:\Program Files (x86)\Activision\Call of Duty 2\Docs\CoD2_Tools_Documentation.htm
    Then click on Script Commands Documentation
    Its exactly same, but it has only cod2 stuff

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •