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

[Tutorial]Double Points Nuke and Carpenter

broken avatar :(
Created 10 years ago
by Dust
0 Members and 1 Guest are viewing this topic.
4,607 views
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Donate to me if you enjoy my work. https://www.paypal.me/thezombiekilla6
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
Okay since most people dont know how to have double points for nuke or carpenter since that was never in world at war, and i get asked a bunch how to do it, and i would love to see it in more maps i decided to release it.

Open up zombiemode_powerups

search for 200, and replace the entire players = get_players function with this
Code Snippet
Plaintext
	players = get_players();
for(i = 0; i < players.size; i++)
{
if(level.zombie_vars["zombie_point_scalar"] == 1)
{
players[i].score += 200;
players[i].score_total += 200;
players[i] maps\_zombiemode_score::set_player_score_hud();
}
else
{
players[i].score += 400;
players[i].score_total += 400;
players[i] maps\_zombiemode_score::set_player_score_hud();
}
}
thats carpenter done, now for nuke search for 400 and replace the players = get_players with this
Code Snippet
Plaintext
	players = get_players();
for(i = 0; i < players.size; i++)
{
if(level.zombie_vars["zombie_point_scalar"] == 1)
{
players[i].score += 400;
players[i].score_total += 400;
players[i] maps\_zombiemode_score::set_player_score_hud();
}
else
{
players[i].score += 800;
players[i].score_total += 800;
players[i] maps\_zombiemode_score::set_player_score_hud();
}
}

And thats how you do it, dont worry about credit as im not the original author but since i cant find this on zm anymore i decided to post it
Last Edit: May 24, 2014, 08:01:44 pm by thezombiekilla6
broken avatar :(
×
broken avatar :(
Location: usPhiladelphia, Pennsylvania
Date Registered: 26 October 2013
Last active: 2 years ago
Posts
262
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Projects:
CPH (Collingwood Psychiatric Hospital) - Map Testing
Raze - Map Testing
×
JadenSzewczak's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
JadenSzewczak's Contact & Social LinksKazcwezsjadenszewczakszwczk
you da man :rainbow:
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
you da man :rainbow:

Thanks man! Hopefully this helps people add double points on nuke and carpenter
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 21 March 2014
Last active: 2 years ago
Posts
227
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I the Mighty
×
ConvictioNDR's Groups
I actually posted for the nuke on TMG's site.
I simply got a reply of this
Code Snippet
Plaintext
players = get_players();
for(i = 0; i < players.size; i++)
{
players[i].score += 400 * level.zombie_vars["zombie_point_scalar"];
players[i].score_total += 400 * level.zombie_vars["zombie_point_scalar"];
players[i] maps\_zombiemode_score::set_player_score_hud();
}
I guess the benefit of this is it makes room for if for whatever reason the map maker wants to create something that makes the scalar anything other than 1 or 2 and still have it add points for nuke and carpenter. Also shorter code.
Last Edit: May 24, 2014, 11:53:45 pm by ConvictioNDR
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
I actually posted for the nuke on TMG's site.
I simply got a reply of this
Code Snippet
Plaintext
players = get_players();
for(i = 0; i < players.size; i++)
{
players[i].score += 400 * level.zombie_vars["zombie_point_scalar"];
players[i].score_total += 400 * level.zombie_vars["zombie_point_scalar"];
players[i] maps\_zombiemode_score::set_player_score_hud();
}
I guess the benefit of this is it makes room for if for whatever reason the map maker wants to create something that makes the scalar anything other than 1 or 2 and still have it add points for nuke and carpenter. Also shorter code.

Ya both ways work. Also the shorter the code the better.
broken avatar :(
×
broken avatar :(
Location: usbuffalo
Date Registered: 16 August 2013
Last active: 11 months ago
Posts
927
Respect
Forum Rank
The Decider
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Giggity.
Signature
maps:
Undead Town
http://ugx-mods.com/forum/index.php?topic=2294.0 (Release)
Origins 1922
http://ugx-mods.com/forum/index.php?topic=2659.0
[WIP] mapping 39%, weapons 85%, scripts 65%
[/url]
×
RamboBadass's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
RamboBadass's Contact & Social LinksAsk merambobadassRamboDaGreat
nice to see this here

 
Loading ...