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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Tomzen

Oh yeah, sorry you have to also add this with the others:

Code Snippet
Plaintext
#using scripts\zm\_zm_score;
8 years ago
Anyone seen this before? http://www.youtube.com/watch?v=fBE0DdX10_k

Not sure why, tried on multiple maps.
8 years ago
Just go into root/scripts/zm/_zm_perks.gsc and look through the functions until you find what you need.

If there isn't a way to give all perks just give one at a time.

I'm pretty sure it's possible, if you look at Madgaz Gaming's FABRIK DER UNTOTEN map he has a buyable Perk-a-Lot machine which gives you all the perks when you buy it.
8 years ago
You have the sound file in the wrong location. It should be in root/sound_assets/[any folder name you want]/
In your user_aliases.csv file, paste the following on a new line:
Code Snippet
Plaintext
[ANY_SOUND_ALIAS_YOU_WANT],,,[folder_name][file_name_with_extension},,,UIN_MOD,,,,,BUS_MUSIC,,,,,,100,100,,,,,,,,2,oldest,,,1,1,,,,,,2d,,,NONLOOPING,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

In the playsound code, use the sound alias you made.

Hey how do I add a second sound? I copied the exact same thing and pasted it on the second line but changed the file location and alias, but it dosen't work:

Code Snippet
Plaintext
maxammosnd,,,bestbox/maxammo.wav,,,UIN_MOD,,,,,BUS_MUSIC,,,,,,100,100,,,,,,,,2,oldest,,,1,1,,,,,,2d,,,NONLOOPING,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
papcamosnd,,,bestbox/papcamo.wav,,,UIN_MOD,,,,,BUS_MUSIC,,,,,,100,100,,,,,,,,2,oldest,,,1,1,,,,,,2d,,,NONLOOPING,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
8 years ago
I have a script at home, if you wait till 3 my time. (it's 12:58 right now) I'll PM it to you when I'm home.

Double Post Merge: October 11, 2016, 09:16:52 am
I might as well share it here:

Code Snippet
Plaintext
function MaxAmmo()
{
    trigger = GetEnt("maxammo_trigger", "targetname");
    trigger SetHintString("Press ^3&&1^7 for max ammo."); // Changes the string that shows when looking at the trigger.
    trigger SetCursorHint("HINT_NOICON"); // Changes the icon that shows when looking at the trigger.
    trigger1cost = 4500;
 
    while(1)
    {
        while(1)
        {
            // Purchase Code
            trigger waittill("trigger", player);
                 
            if(player.score >= trigger1cost)
            {
                player zm_score::minus_to_player_score(trigger1cost);
                trigger PlayLocalSound( "cha-ching" );
                break;
            }
            else
            {
                trigger PlayLocalSound( "deny" );
            }
        }
 
players = GetPlayers();

for (i = 0; i < players.size; i++)
{
primaryWeapons = players[i] GetWeaponsList();
players[i] PlayLocalSound( "maxammosnd" );
players[i] notify( "zmb_max_ammo" );

for( x = 0; x < primaryWeapons.size; x++ )
{

players[i] GiveMaxAmmo( primaryWeapons[x] );
}
}

        wait(5);
    }
}

Add a trigger to your map with the targetname "maxammo_trigger"
8 years ago
Using this script apparently breaks triggers. Me and a friend had to remove it in order for custom triggers to work.
8 years ago
Hi, I want to be able to add custom sounds, but I don't really understand the "user_aliases.csv" file, how can I make it so a file located in my usermaps/zm_mapname/sound directory plays once, and once only at 100% volume.

Double Post Merge: October 09, 2016, 06:27:01 am
I already have:

Code Snippet
Plaintext
maxammosnd,,,usermaps/zm_bestbox/sound/maxammo.wav,,,UIN_MOD,,,,,BUS_MUSIC,,,,,,100,100,,,,,,,,2,oldest,,,1,1,,,,,,2d,,,NONLOOPING,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

And it's being activated with:
Code Snippet
Plaintext
players = GetPlayers( player.team );

for (i = 0; i < players.size; i++)
{
primaryWeapons = players[i] GetWeaponsList();

for( x = 0; x < primaryWeapons.size; x++ )
{
players[i] PlayLocalSound( "maxammosnd" );
players[i] notify( "zmb_max_ammo" );
players[i] GiveMaxAmmo( primaryWeapons[x] );
}
}

However when I go into my map and purchase it, the sound dosen't play.

I've also tried:
Code Snippet
Plaintext
playsound( "maxammosnd" );
8 years ago
I would like to know how to give one a perk with a usable trigger.
8 years ago
Sorry for wasting time, I don't remember what I did but I fixed it, but it didn't involve the .gsc file.
8 years ago
After compiling map, straight after loading the map it says Game Over instantly.

The spawn points are set up correctly (I believe):




And my zone is set up correctly:


8 years ago
I've added a zombie window to my map and it's not allowing me to "Add KVP", when I hit the button nothing happens, its not just for the window's either.

Anything that requires me pressing "Add KVP" dosen't work.

Double Post Merge: October 08, 2016, 02:03:58 am
It's also stopping me from making a zone to stop the game from killing me instantly...
8 years ago
Hey, I've made a buyable max ammo, but I want the price to be 750 for non upgraded weapons and 4500 for upgraded weapons.

I have already made the buyable max ammo work, however I have not made the part to detect whether its upgraded or not.
How would one detect whether the weapon is upgraded or not? I guess I could make an array containing "pistol_standard_upgraded" etc etc, and then use getCurrentWeapon to check, but I'm pretty sure there would be a more simple way.
8 years ago
Loading ...