UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

[Script/Sound] How to add EE music in your map.

broken avatar :(
Created 10 years ago
by Ege115
0 Members and 1 Guest are viewing this topic.
7,553 views
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 13 days ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
This is a simple script I made that allows you to hit triggers with for example teddy models that will play a song once all triggers has been hit.
Okey so this is a very simple script. I didn't plan on doing this tut but some people in the UGX chat requested it so. xD
And as I haven't seen any tutorial like this at UGX then here we go.

Step 1: Create a new .GSC file and name it,
Code Snippet
Plaintext
ee_song
Make sure the file is empty and paste this script in it.
Code Snippet
Plaintext
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;

main()
{
level.teddys = 0;
    thread teddys();
}

teddys()
{
    trigger = GetEntArray("dubstep_trigger","targetname");

for(h = 0; h < trigger.size; h++)
trigger[h] thread shot(trigger);
}

shot(trigger)
{
self PlayLoopSound("meteor_loop");
self SetCursorHint("HINT_NOICON");

self waittill("trigger", player);
level.teddys++;

self StopLoopSound();
self.get_var = self;
self.get_var PlaySound("meteor_affirm");
wait .05;
self delete();

if(level.teddys == trigger.size)
{
players = getplayers();
for(i = 0; i < players.size; i++)
players[i] PlaySound("ee_alias"); // Enter the soundalias here!
}
}
Save and close.

Step 2: Copy and paste this .GSC file in,
Code Snippet
Plaintext
root/mods/MAPNAME/maps/

Step 3: Open your MAPNAME.gsc and find this line,
Code Snippet
Plaintext
maps\_zombiemode::main();
Under that line, paste this,
Code Snippet
Plaintext
thread maps\ee_song::main();
Save and close.

Step 4: Copy a new soundalias file, you can find one in,
Code Snippet
Plaintext
root/raw/soundalias/
copy any of them to your desktop and rename it to,
Code Snippet
Plaintext
ee_song
Open it and delete everything inside, and then paste this in it,
Code Snippet
Plaintext
name,file,platform,sequence,vol_min,vol_max,dist_min,dist_max,limit_count,limit_type,entity_limit_count,entity_limit_type,bus,volume_min_falloff_curve,volumefalloffcurve,reverb_send,dist_reverb_max,reverb_min_falloff_curve,reverb_falloff_curve,pitch_min,pitch_max,randomize_type,spatialized,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,chainaliasname,startdelay,speakermap,lfe percentage,center percentage,envelop_min,envelop_max,envelop percentage,occlusion_level,occlusion_wet_dry,real_delay,distance_lpf,move_type,move_time,min_priority,max_priority,min_priority_threshold,max_priority_threshold,,isbig

ee_alias,SOUND_FOLDER_PATH\SOUND_FILE_NAME.wav,,,1,1,50,800,,,,,music,,,0.8,1800,,curve0,1,1,,2d,,,,,,,,,,,,,,100,200,0.5,0.15,,,,,,90,90,0.25,1,,
When you add your .WAV file, paste it in whatever folders you choose and add the paths to it in the soundalias after the word, "ee_alias".

Step 5: Paste the soundalias in,
Code Snippet
Plaintext
root/raw/soundalias/

Step 6: Now open your map in radiant, and make a trigger and give it the KVP,
And give the trigger this KVP,
Code Snippet
Plaintext
targetname - dubstep_trigger
Make a misc_model for example a teddy and place it at the trigger.
Now have the trigger and the model selected and copy and paste as many of them as you want.
Save and close radiant, go to the "mod builder" tab in launcher and add this in the mod.CSV,
Code Snippet
Plaintext
sound,ee_song,,all_sp

Step 7: Now check the script in the IWD list in mod builder and then build your mod. And then compile your map.

Also if you don't know how to convert sound files, then here are instructions on how to convert sounds.
http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_Custom_Sound

Enjoy!
Last Edit: September 30, 2014, 04:39:42 pm by Ege115
broken avatar :(
×
broken avatar :(
Location: gbsomerset
Date Registered: 2 March 2014
Last active: 10 months ago
Posts
169
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Now you see me, Now you don`t
×
FATKIDSLOV3CAK3's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
FATKIDSLOV3CAK3's Contact & Social LinksHypercaineHypercaineZombies_dieFATKIDSLOV3CAK3
In the ee_song.gsc you say change 3 to how many teddys you will have but what 3 do you mean? Cause I dont see any 3. Really would like to get this working :)
Last Edit: September 11, 2014, 11:16:39 pm by FATKIDSLOV3CAK3
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 21 March 2014
Last active: 2 years ago
Posts
227
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I the Mighty
×
ConvictioNDR's Groups
In the ee_song.gsc you say change 3 to how many teddys you will have but what 3 do you mean? Cause I dont see any 3. Really would like to get this working :)
I don't see any reason for it to say that. Just ignore it, it should get the size from the teddy array so that comment about changing the 3 wasn't needed. My guess is that he made this by editing some other script he had.
broken avatar :(
×
broken avatar :(
Location: gbsomerset
Date Registered: 2 March 2014
Last active: 10 months ago
Posts
169
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Now you see me, Now you don`t
×
FATKIDSLOV3CAK3's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
FATKIDSLOV3CAK3's Contact & Social LinksHypercaineHypercaineZombies_dieFATKIDSLOV3CAK3
I don't see any reason for it to say that. Just ignore it, it should get the size from the teddy array so that comment about changing the 3 wasn't needed. My guess is that he made this by editing some other script he had.

Ok thanks man. Just found out what I did wrong anyway :) so all sorted now :)

Double Post Merge: September 12, 2014, 11:33:51 am
Anyone able to tell me how to have 2 running as in I have 2 songs working but if I trigger one wait till the song has finished then trigger the other one, the 2nd one doesn't play, anyone able to help with that? As im looking to put 3 in total in my map
Last Edit: September 12, 2014, 11:33:51 am by FATKIDSLOV3CAK3
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 13 days ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Opps I'm sorry, I seem to have forgot to remove that when editing the message. :-[
broken avatar :(
×
broken avatar :(
Location: usJapan
Date Registered: 14 September 2013
Last active: 8 years ago
Posts
71
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
rdthdthth
×
omgitsbothscarab's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
omgitsbothscarab's Contact & Social Linksbothscarab86LilyMu
I stopped reading when I saw the word dubstep
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I stopped reading when I saw the word dubstep

It doesnt affect the song at all :D You could change script, so it has different targetnames and such
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
I stopped reading when I saw the word dubstep
Who does not like dubstep  :D
broken avatar :(
×
broken avatar :(
Location: gbsomerset
Date Registered: 2 March 2014
Last active: 10 months ago
Posts
169
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Now you see me, Now you don`t
×
FATKIDSLOV3CAK3's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
FATKIDSLOV3CAK3's Contact & Social LinksHypercaineHypercaineZombies_dieFATKIDSLOV3CAK3
Im guessing no one seen it so I'll just quote it cause I would like to know how to do it :)

Anyone able to tell me how to have 2 running as in I have 2 songs working but if I trigger one wait till the song has finished then trigger the other one, the 2nd one doesn't play, anyone able to help with that? As im looking to put 3 in total in my map
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Tutorial has been updated with new, "official" activation sound and has now static noise, when going near it :D
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Well done HitmanVere ;) **EDIT** and Ege115  ;)

Very nice work
Last Edit: September 17, 2014, 09:47:25 pm by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Well done HitmanVere ;)

Very nice work

No, dont thank me, thank Ege115 for his skills :D I only showed him the official sounds
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Remove PlaySound and use MusicPlay(alias, bool/to distort on timescale) instead and MusicStop(int / time to fade ). Works better that playSound as it'll play in background and won't be overridden/stopped by anything else.
Make sure to put a wait on how long the song is as I'm pretty sure MusicPlay doesn't have a notify.
Last Edit: September 17, 2014, 06:28:15 pm by DidUknowiPwn

 
Loading ...