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

Only one person can get a wonderweapon out of the box

broken avatar :(
Created 7 years ago
by Pieternba2k
0 Members and 1 Guest are viewing this topic.
1,231 views
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 7 March 2016
Last active: 6 years ago
Posts
88
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Love 4 Custom zombies
Signature
My maps:
Pietercity v1.0
Matrix V1.1
×
Pieternba2k's Groups
Pieternba2k's Contact & Social Linksbasketlbalpro-96PieternbaPieternba2kLove4theGame
Hello everyone,

How do I make it so only one person can get a wonderweapon out of the box instead of everyone (for example thundergun).
This is the case with the wunderwaffe but not with custom wonderweapons does anybody know how to change this?

Thanks alot :)
Marked as best answer by Pieternba2k 7 years ago
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Hello everyone,

How do I make it so only one person can get a wonderweapon out of the box instead of everyone (for example thundergun).
This is the case with the wunderwaffe but not with custom wonderweapons does anybody know how to change this?

Thanks alot :)

Find this part in your _zombiemode_weapons.gsc

Code Snippet
Plaintext
	// Special                                          	
add_zombie_weapon( "mine_bouncing_betty", &"ZOMBIE_WEAPON_SATCHEL_2000", 2000, "" );
add_zombie_weapon( "mortar_round", &"ZOMBIE_WEAPON_MORTARROUND_2000", 2000, "" );
add_zombie_weapon( "satchel_charge", &"ZOMBIE_WEAPON_SATCHEL_2000", 2000, "vox_monkey", 3 );
add_zombie_weapon( "zombie_cymbal_monkey", &"ZOMBIE_WEAPON_SATCHEL_2000", 2000, "vox_monkey", 3 );
add_zombie_weapon( "ray_gun", &"ZOMBIE_WEAPON_RAYGUN_10000", 10000, "vox_raygun", 6 );
add_zombie_weapon( "ray_gun_upgraded", &"ZOMBIE_WEAPON_RAYGUN_10000", 10000, "vox_raygun", 6 );
add_zombie_weapon( "tesla_gun", &"ZOMBIE_BUY_TESLA", 10, "vox_tesla", 5 );
add_zombie_weapon( "tesla_gun_upgraded", &"ZOMBIE_BUY_TESLA", 10, "vox_tesla", 5 );

if(level.script != "nazi_zombie_prototype")
{
Precachemodel("zombie_teddybear");
}
// ONLY 1 OF THE BELOW SHOULD BE ALLOWED
add_limited_weapon( "m2_flamethrower_zombie", 1 );
add_limited_weapon( "tesla_gun", 1);
}   

and then under add_limited_weapon("tesla_gun", 1 );
add the weapon(s) that you want only 1 person can get out of the box.

Example:

Code Snippet
Plaintext
add_limited_weapon( "weaponfile_name", 1 );

then in dlc3_code.gsc find this:

Code Snippet
Plaintext
	// Limited weapons
maps\_zombiemode_weapons::add_limited_weapon( "zombie_colt", 0 );
maps\_zombiemode_weapons::add_limited_weapon( "zombie_gewehr43", 0 );
maps\_zombiemode_weapons::add_limited_weapon( "zombie_m1garand", 0 );

and add the weapon(s) that only 1 player(s) can get out of the box.

For example:

Code Snippet
Plaintext
maps\_zombiemode_weapons::add_limited_weapon( "weaponfile_name", 0 );
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 7 March 2016
Last active: 6 years ago
Posts
88
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Love 4 Custom zombies
×
Pieternba2k's Groups
Pieternba2k's Contact & Social Linksbasketlbalpro-96PieternbaPieternba2kLove4theGame
Find this part in your _zombiemode_weapons.gsc

Code Snippet
Plaintext
	// Special                                          	
add_zombie_weapon( "mine_bouncing_betty", &"ZOMBIE_WEAPON_SATCHEL_2000", 2000, "" );
add_zombie_weapon( "mortar_round", &"ZOMBIE_WEAPON_MORTARROUND_2000", 2000, "" );
add_zombie_weapon( "satchel_charge", &"ZOMBIE_WEAPON_SATCHEL_2000", 2000, "vox_monkey", 3 );
add_zombie_weapon( "zombie_cymbal_monkey", &"ZOMBIE_WEAPON_SATCHEL_2000", 2000, "vox_monkey", 3 );
add_zombie_weapon( "ray_gun", &"ZOMBIE_WEAPON_RAYGUN_10000", 10000, "vox_raygun", 6 );
add_zombie_weapon( "ray_gun_upgraded", &"ZOMBIE_WEAPON_RAYGUN_10000", 10000, "vox_raygun", 6 );
add_zombie_weapon( "tesla_gun", &"ZOMBIE_BUY_TESLA", 10, "vox_tesla", 5 );
add_zombie_weapon( "tesla_gun_upgraded", &"ZOMBIE_BUY_TESLA", 10, "vox_tesla", 5 );

if(level.script != "nazi_zombie_prototype")
{
Precachemodel("zombie_teddybear");
}
// ONLY 1 OF THE BELOW SHOULD BE ALLOWED
add_limited_weapon( "m2_flamethrower_zombie", 1 );
add_limited_weapon( "tesla_gun", 1);
}   

and then under add_limited_weapon("tesla_gun", 1 );
add the weapon(s) that you want only 1 person can get out of the box.

Example:

Code Snippet
Plaintext
add_limited_weapon( "weaponfile_name", 1 );

then in dlc3_code.gsc find this:

Code Snippet
Plaintext
	// Limited weapons
maps\_zombiemode_weapons::add_limited_weapon( "zombie_colt", 0 );
maps\_zombiemode_weapons::add_limited_weapon( "zombie_gewehr43", 0 );
maps\_zombiemode_weapons::add_limited_weapon( "zombie_m1garand", 0 );

and add the weapon(s) that only 1 player(s) can get out of the box.

For example:

Code Snippet
Plaintext
maps\_zombiemode_weapons::add_limited_weapon( "weaponfile_name", 0 );

Thanks!

 
Loading ...