Recent Posts

broken avatar :(
×
broken avatar :(
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
0
Primary Group
Member
×
gympie6's Groups
gympie6's Contact & Social Links
Last post by gympie6 - 23 days ago
Code: cpp
toilet_flush()
{

trig = GetEnt( "toilet_trig","targetname" );

num = 0;

trig SetHintString( "" );
trig SetCursorHint( "HINT_NOICON" );
trig UseTriggerRequireLookAt(  );

for(;;)
{
trig  waittill( "trigger", player );
PlaySoundAtPosition( "toilet_flush", trig.origin);
num = num + 1;
trig disable_trigger(  );
wait 4;
trig enable_trigger(  );
if( num == 3)
{
player PlaySound( "cha_ching" );
trig Delete(  );
player PlaySound( "verruckt_sound" );
break;
}
}
}
num = num + 1;  looks cooler imo  :p
toilet_flush()
{
    trig = GetEnt( "toilet_trig","targetname" );

    num = 0;

    trig SetHintString( "" );
    trig SetCursorHint( "HINT_NOICON" );
    trig UseTriggerRequireLookAt();

    while (true)
    {
        trig waittill( "trigger", player );
        trig disable_trigger();
        PlaySoundAtPosition( "toilet_flush", trig.origin );

        num = num + 1;
        wait 4;

        trig enable_trigger();

        // This goes true for one time
        if ( num == 3)
        {
            player PlaySound( "cha_ching" );
            trig Delete();
            players = get_players();
            for (i = 0; i == players.size; i++)
            {
               players[i] PlaySound( "verruckt_sound" );
            }
            return;
        }
    }
}
Almost :)
broken avatar :(
×
broken avatar :(
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
0
Primary Group
Member
×
klevi's Groups
klevi's Contact & Social Links
Last post by klevi - 23 days ago
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.
Code: cpp
toilet_flush()
{

trig = GetEnt( "toilet_trig","targetname" );

num = 0;

trig SetHintString( "" );
trig SetCursorHint( "HINT_NOICON" );
trig UseTriggerRequireLookAt(  );

for(;;)
{
trig  waittill( "trigger", player );
PlaySoundAtPosition( "toilet_flush", trig.origin);
num = num + 1;
trig disable_trigger(  );
wait 4;
trig enable_trigger(  );
if( num == 3)
{
player PlaySound( "cha_ching" );
trig Delete(  );
player PlaySound( "verruckt_sound" );
break;
}
}
}
num = num + 1;  looks cooler imo  :p 
broken avatar :(
×
broken avatar :(
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
0
Primary Group
Member
×
gympie6's Groups
gympie6's Contact & Social Links
Last post by gympie6 - 23 days ago
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.
broken avatar :(
×
broken avatar :(
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
0
Primary Group
Member
×
cristian_morales's Contact & Social Links
Last post by cristian_morales - 24 days ago
nice
broken avatar :(
×
broken avatar :(
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
0
Primary Group
Member
×
Clippy95's Groups
Clippy95's Contact & Social Links
Last post by Clippy95 - 24 days ago
I downloaded this map and played. But when I got the red mortar, the dogs came out all the time and I didn't know where to put that bullet, and I went through the whole map with that bullet, but I couldn't find anything. If there is an end to this map, can you share the steps with us? I've played almost five times, and I just can't figure out where to take that red bullet. If you share this game's easter egg's (at least steps) I would appreciate it. Thank youO0
 https://steamcommunity.com/sharedfiles/filedetails/?id=1892547317
broken avatar :(
×
broken avatar :(
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
0
Primary Group
Member
×
EMRAKRAL's Groups
EMRAKRAL's Contact & Social Links
Last post by EMRAKRAL - 25 days ago
I downloaded this map and played. But when I got the red mortar, the dogs came out all the time and I didn't know where to put that bullet, and I went through the whole map with that bullet, but I couldn't find anything. If there is an end to this map, can you share the steps with us? I've played almost five times, and I just can't figure out where to take that red bullet. If you share this game's easter egg's (at least steps) I would appreciate it. Thank youO0
broken avatar :(
×
broken avatar :(
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
0
Primary Group
Member
×
Thunderfrost's Groups
Thunderfrost's Contact & Social Links
Last post by Thunderfrost - 25 days ago
New progress 12-11-2019 added
broken avatar :(
×
broken avatar :(
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
0
Primary Group
Member
×
Gogeta22344's Groups
Gogeta22344's Contact & Social Links
Last post by Gogeta22344 - 25 days ago

Thanks, I added the dogs in that step because I thought it was too easy, I didn't think it would be that difficult but of course I knew where all the mines were located, so it was easy for me :P .
broken avatar :(
×
broken avatar :(
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
0
Primary Group
Member
×
klevi's Groups
klevi's Contact & Social Links
Last post by klevi - 25 days ago
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
Code: cpp
toilet_flush()
{
trig = GetEnt( "toilet_trig","targetname" );

num = 0;

trig SetHintString( "" );
trig SetCursorHint( "HINT_NOICON" );
trig UseTriggerRequireLookAt(  );

while( true )
{
players = get_players(  );
trig  waittill( "trigger", players );
PlaySoundAtPosition( "toilet_flush", trig.origin);
num = num + 1;
trig disable_trigger(  );
wait 4;
trig enable_trigger(  );
if( num == 3) 
{
players PlaySound( "cha_ching" );
trig Delete(  );
players PlaySound( "verruckt_sound" );
}
}
}

/*
trig SetHintString( "" );  you can put a Hint String inside the brackets if you want EX: Press and old &&1 to press the toilet button

trig SetCursorHint( "HINT_NOICON" );  you can remove this line and the default HAND ICON will appear when you're near the trigger

PlaySoundAtPosition( "toilet_flush", trig.origin); change the toilet_flush to the name of your flush sound alias

wait 4; put the length of your flush sound here

if( num == 3)  change the 3 to the number of how many times you want the player to press the trigger in order to play the sound

players PlaySound( "verruckt_sound" ); change the verruckt_sound to the name of the soundalias of the song you want to play
*/
4. Then scroll up until you find FUNCTION CALLS PRE-LOAD and paste this line underneath
thread toilet_flush();
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
broken avatar :(
×
broken avatar :(
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
0
Primary Group
Member
×
Devstr's Groups
Devstr's Contact & Social Links
Last post by Devstr - 26 days ago
I have a custom map with Madgaz's Wunderfizz 2.0 machine placed in it. When I attempt to purchase it, I get a scripterror (retrieved from console_mp.log)

[5364430][SCRIPTERROR]  Error: throwing script exception: Error: type undefined is not a vector, param 2Error: 
[5364573][SCRIPTERROR] 
******* script error *******
[5364639][SCRIPTERROR]  Error: type undefined is not a vector, param 2
[5364694][SCRIPTERROR]  Error:
******* Call stack *******
[5364761][SCRIPTERROR]  Error: file 'scripts/zm/_zm_perk_wunderfizz2.gsc', line 328 ::
[5364827][SCRIPTERROR]  Error: file 'scripts/zm/_zm_perk_wunderfizz2.gsc', line 231 ::
[5364882][SCRIPTERROR]  Error: file 'scripts/zm/_zm_perk_wunderfizz2.gsc', line 157 ::
[5364948][SCRIPTERROR]  Error: file 'scripts/zm/_zm_perk_wunderfizz2.gsc', line 128 ::
[5365014][SCRIPTERROR]  Error: ************************************
[5365137][SCRIPTERROR]  Error: throwing script exception: Error: type undefined is not a vector, param 2Error:
[5365725][SCRIPTERROR] 
******* script error *******
[5365729][         ] 
====================================================
Com_ERROR: Vertex type 5 ('particlecloud') doesn't have the information used by shader techsetdef_unlit.hlsl#cffd4dff in material 'ec/gfx_fxt_env_dust_mote_pcloud_add'

====================================================
[5365811][SCRIPTERROR]  Error: type undefined is not a vector, param 2
[5366021][SCRIPTERROR]  Error:
******* Call stack *******
[5366098][SCRIPTERROR]  Error: file 'scripts/zm/_zm_perk_wunderfizz2.gsc', line 328 ::
[5366164][SCRIPTERROR]  Error: file 'scripts/zm/_zm_perk_wunderfizz2.gsc', line 329 ::
[5366231][SCRIPTERROR]  Error: ************************************
Anyone have any clue what could be causing this? 

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 Twitch
Loading ...