UGX-Mods

Call of Duty: Black Ops 3 => Tutorial Desk => Scripting => Topic started by: Dust on October 01, 2016, 03:06:30 pm

Title: [Tutorial] How to put Widows Wine in your map
Post by: Dust on October 01, 2016, 03:06:30 pm
So, as most of you guys are aware, Treyarch did not give us the prefabs for Widows Wine, but they did give us the scripts, and the assets for Widows Wine. Its just a matter of calling them and changing the models to Widows Wine in radiant.

So first lets call the scripts.
1. Open up your mapname.gsc, found in usermaps/your map/scripts/zm. Open up the .gsc. and where you see the different script calls for the perks, copy the final one, which is
#using scripts\zm\_zm_perk_staminup;
, paste it under that and put
#using scripts\zm\_zm_perk_widows_wine;
. Save that.
2. Now in that same folder, you should see mapname.csc, open that up, and do the same thing you did in mapname.gsc, copy
#using scripts\zm\_zm_perk_staminup;
, paste it under and put
#using scripts\zm\_zm_perk_widows_wine;
.

Thats it for the scripting part.

3. Now open up radiant, get a random perk machine prefab, I used quick revive for this, but it doesn't matter. If you dont know how to get to your prefabs, press B to bring up the entity browser, find misc_prefab. Drag it into your map. The perk machine prefabs are found in zm/zm_core. They start with vending_.
4. Now stamp the prefab by first selecting it, right click either in the 2D view, or the 3D View, doesn't matter. Go to prefab, stamp prefab. Now you should be able to click on each piece individually.
5. Click on the green box which is the actual machine for the perks.
6. Press N to bring up the entity info. Find model, which is the name of the perk machine model. Change the value to
p7_zm_vending_widows_wine
.
7. Now find script_noteworthy, change it to
specialty_widowswine
.
8 Save your map. Be sure to compile, and link.

And your done, you now have widows wine 100% working in your maps. The triggers are controlled by scripts for the perk machines, so you dont need to worry about that.
 I dont know why Treyarch didnt give us the prefab, or call the scripts for us before giving us the mod tools, if they gave us the other assets we needed for it, but oh well.
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: MZslayer11 on October 01, 2016, 04:11:47 pm
Thanks good tut.

Why would they not just give us the prefab if they gave us all the assets anyway lol?
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: Dust on October 01, 2016, 04:14:58 pm
Thanks good tut.

Why would they not just give us the prefab if they gave us all the assets anyway lol?

I dont know. I assume they will eventually, guess that just forgot.
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: Jdcobra on October 01, 2016, 04:26:47 pm
Thanks good tut.

Why would they not just give us the prefab if they gave us all the assets anyway lol?
Probably just because its the beta at the moment
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: chromastone10 on October 01, 2016, 07:40:47 pm
now maybe we can get the perk on models and sounds actually working lmao
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: gauty40 on October 02, 2016, 05:54:12 am
does this work with electric cherry or even the wunderfizz? i cant try it atm because i'm meant to be studying for uni xD
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: Dust on October 02, 2016, 06:46:04 am
does this work with electric cherry or even the wunderfizz? i cant try it atm because i'm meant to be studying for uni xD

Electric Cherry, I am not sure, havent tried it yet. I don't think they gave us the models for it, since EC was never actually in Black ops 3 in machine form(could be wrong, cant remember). And wonderfizz, you cant right now, since we dont have the assets for it right now.
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: treminaor on October 12, 2016, 03:55:15 am
When I add the include for either Widow's Wine or Electric Cherry, I get a server client fields mismatch error on mapload. Does anyone else have this issue?

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fimg.andy-king.me%2F918e1653ebc276b701386097d718261a.png&hash=9e8b5f7ba3e21b83c41ba59d2c9799f2)
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: reckfullies on October 12, 2016, 03:58:24 am
When I add the include for either Widow's Wine or Electric Cherry, I get a server client fields mismatch error on mapload. Does anyone else have this issue?

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fimg.andy-king.me%2F918e1653ebc276b701386097d718261a.png&hash=9e8b5f7ba3e21b83c41ba59d2c9799f2)

Make sure you add it to the csc as well, i forgot to read that part and I got this error and adding it fixed this.
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: treminaor on October 12, 2016, 03:59:00 am
Make sure you add it to the csc as well, i forgot to read that part and I got this error and adding it fixed this.
I already did that before I even found this tutorial and it still doesn't work. I have it in both CSC and GSC, not working.
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: reckfullies on October 12, 2016, 04:00:44 am
I already did that before I even found this tutorial and it still doesn't work. I have it in both CSC and GSC, not working.

Strange, I had this about an hour ago and all I did was added the includes into the csc and re-linked/compiled my map then everything worked fine.
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: treminaor on October 12, 2016, 04:01:37 am
Strange, I had this about an hour ago and all I did was added the includes into the csc and re-linked/compiled my map then everything worked fine.
Turns out it was because I was trying to activate Electric Cherry too. Seems only Widow's Wine works using this method...
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: reckfullies on October 12, 2016, 04:03:57 am
Turns out it was because I was trying to activate Electric Cherry too. Seems only Widow's Wine works using this method...

Not sure why electric cherry wouldn't work, I have it in my map right now using this method.
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: All0utWar on October 12, 2016, 04:06:35 am
Turns out it was because I was trying to activate Electric Cherry too. Seems only Widow's Wine works using this method...

Both EC and WW work perfect for me using this method.
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: treminaor on October 12, 2016, 04:08:17 am
Not sure why electric cherry wouldn't work, I have it in my map right now using this method.
lol it's decided to work now... must have been a link issue not applying my csc change.
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: treminaor on October 12, 2016, 04:26:26 am
Does anyone have the sounds working for Widows Wine? Or a fixed script for Electric Cherry? The one in raw is a mashup of staninup/marathon and widows wine crap, its clearly not the correct version to ship.
Title: Re: [Tutorial] How to put Widows Wine in your map
Post by: kieranballard2 on June 30, 2017, 06:37:41 pm
Sorry for bumping an old thread, but I found a solution. I looked around the web for a sound alias file, looked through the BO3 game files for the Widow's Wine sound files and looked online for the sound files. I didn't find a solution.

I managed to get the Widow's Wine jingle working by downloading a YouTube video of the Widow's Wine theme song (http://"https://www.youtube.com/watch?v=niDg9-EXUZ4"), opening it in audacity and exporting it as a 48KHz .wav with the file name "mus_widows_jingle".

To get the sting working, I edited the file I made previously and cropped it down to the very end, then exported it (once again as a 48KHz .wav) with the file name "mus_widows_sting".

I then added these files to my "Call of Duty Black Ops III\sound_assets\zombie\perks\mus" directory and appended my "Call of Duty Black Ops III\share\raw\sound\aliases\user_aliases.csv" with the following lines:

# WIDOWS WINE,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
mus_perks_widow_jingle,,,zombie\perks\mus\mus_widows_jingle.wav,,,UIN_MOD,,,,,BUS_FX,,,,,,75,75,50,400,401,,,,,3,oldest,,,1,1,,,,,,3d,wpn_all,,NONLOOPING,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
mus_perks_widow_sting,,,zombie\perks\mus\mus_widows_sting.wav,,,UIN_MOD,,,,,BUS_FX,,,,,,75,75,50,400,401,,,,,3,oldest,,,1,1,,,,,,3d,wpn_all,,NONLOOPING,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Here's a link to download my user_aliases.csv (http://"http://www.mediafire.com/file/rbq6ay8999s5jeq/user_aliases.csv")
Here's a link to the Widows Wine files I made in audacity (http://"http://www.mediafire.com/file/ldh4vdem3tshez3/Widows_Wine.zip")

Hope this helps anyone who wants the Widow's Wine Jingle and Sting audio files in their map!

Cheers