Call of Duty 5: World at War => Tutorial Desk => Scripting => Topic started by: klevi on November 12, 2019, 11:09:56 am
Title: Verruckt Style song easter egg
Post by: klevi on November 12, 2019, 11:09:56 am
1. Go in radiant and place a trigger/use , select it, press N and give it the following KVP key:targetname value:toilet_trig Done with radiant.
2. Get two sounds, the first sound for the toilet flush sound, and the second sound for the actual song you want to play for your easter egg. After you convert them in Audacity(or whatever you use to convert your sounds), and after you have included them in your mapname (literally when you've finished adding your sounds) open your CoD WaW Root/mods/ YOUR MAP NAME/maps/ YOUR MAP NAME.gsc
3. Go to the bottom of that file, copy the code below and paste it 4. Then scroll up until you find FUNCTION CALLS PRE-LOAD and paste this line underneath 5. Save the file, build your mod, compile the map and DONE. Go in game and check if it worked. NOTE: It doesn't mean that it has to be a trigger/use, it could be a trigger damage instead, but since in verruckt it is a trigger use i did the same for the sake of this tutorial. No need for any credit anyway. Well, that's it, worked fine for me, should do the same with you. How to add custom sounds on your map ----> https://www.youtube.com/watch?v=wVmWFarXQpk (https://www.youtube.com/watch?v=wVmWFarXQpk)
Title: Re: Verruckt Style song easter egg
Post by: cristian_morales on November 13, 2019, 12:48:50 pm
nice
Title: Re: Verruckt Style song easter egg
Post by: gympie6 on November 14, 2019, 10:43:31 am
This looks like a great tutorial but I have a few questions about this.
This while loop is infinite waiting for you to press the trigger. Maybe you want to end the loop after the task is done?
Num = num + 1 is also num++
From my experience "PlaySound" is a person function. So I think you have to do this in a forloop? players PlaySound("your sound");
Players = get_Players() is not necessary inside the while loop. The player count is not going to change.
The easteregg songs are not called with the function "PlaySound" but it does the trick. Now you are still able to hear the round sounds and other stuff.
Title: Re: Verruckt Style song easter egg
Post by: klevi on November 14, 2019, 12:37:54 pm
This looks like a great tutorial but I have a few questions about this.
This while loop is infinite waiting for you to press the trigger. Maybe you want to end the loop after the task is done?
Num = num + 1 is also num++
From my experience "PlaySound" is a person function. So I think you have to do this in a forloop? players PlaySound("your sound");
Players = get_Players() is not necessary inside the while loop. The player count is not going to change.
The easteregg songs are not called with the function "PlaySound" but it does the trick. Now you are still able to hear the round sounds and other stuff.
num = num + 1; looks cooler imo :p
Title: Re: Verruckt Style song easter egg
Post by: gympie6 on November 14, 2019, 01:45:52 pm
Well, yeah, you're way more experienced then me anyway XD, but thanks anyways, it has a ton of different ways to script same thing at all :p , but they worked fine when i tested them!