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

Stackable Double Points!

broken avatar :(
Created 10 years ago
by TwoDeeSee
0 Members and 1 Guest are viewing this topic.
2,375 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 27 February 2015
Last active: 9 years ago
Posts
18
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
TwoDeeSee's Groups
TwoDeeSee's Contact & Social Links
basically this is a rewrite of the way Double Points works in WaW zombies!
I was sitting yesterday bored as heck when I had the idea of stacking the timer for Double Points!
because normally it restarts and it is sort of a pest having to run for the blinking powerup at last second to spare every point!  :D

here goes! :nyan:

so to do this you must have a text editor (NotePad++ is my personal go-to) and _zombiemode_powerups.gsc  :lol:

first step is to go to the very bottom of the script and paste
Code Snippet
Plaintext
dotimer()
{
  while(1)
  {
if( !level.putimer["dptimeremaining"] == 0 )
{
level.zombie_vars["zombie_point_scalar"] = 2;
level.putimer["dptimeremaining"] -= 1;
}
else
{
break;
}
wait 1;
  }
}

next go to the very top and look for // powerups and paste somewhere
Code Snippet
Plaintext
	level.putimer = [];
level.putimer["dptimeremaining"] = 1;

next look for time_remaining_on_point_doubler_powerup() and find

Code Snippet
Plaintext
	// time it down!
while ( level.zombie_vars["zombie_powerup_point_doubler_time"] >= 0)
{
wait 0.1;
level.zombie_vars["zombie_powerup_point_doubler_time"] = level.zombie_vars["zombie_powerup_point_doubler_time"] - 0.1;
//self setvalue( level.zombie_vars["zombie_powerup_point_doubler_time"] );
}

delete

Code Snippet
Plaintext
level.zombie_vars["zombie_powerup_point_doubler_time"] = level.zombie_vars["zombie_powerup_point_doubler_time"] - 0.1;

because it is no longer needed and will just complicate and ruin the way it works now

next find
Code Snippet
Plaintext
point_doubler_on_hud( drop_item )
{
self endon ("disconnect");

// check to see if this is on or not
if ( level.zombie_vars["zombie_powerup_point_doubler_on"] )
{
// reset the time and keep going
level.zombie_vars["zombie_powerup_point_doubler_time"] = 30;
return;
}

and delete

Code Snippet
Plaintext
level.zombie_vars["zombie_powerup_point_doubler_time"] = 30;

then use the find and replace function in the text editor of your choice
Code Snippet
Plaintext
find
level.zombie_vars["zombie_powerup_point_doubler_time"]

replace
level.putimer["dptimeremaining"]

then find double_points_powerup( drop_item ) and replace THE ENTIRE FUNCTION with

Code Snippet
Plaintext
// double the points
double_points_powerup( drop_item )
{
level notify ("powerup points scaled");
level endon ("powerup points scaled");

// players = get_players();
// array_thread(level,::point_doubler_on_hud, drop_item);


level.putimer["dptimeremaining"] += 30;
level thread point_doubler_on_hud( drop_item );


dotimer();

level.zombie_vars["zombie_powerup_point_doubler_on"] = false;
level.zombie_vars["zombie_point_scalar"] = 1;
}


then you should be done! go in game and try it out! feedback would be greatly appreciated! hope I helped. :)
for those too lazy to do this I added my powerups file down below :P
:+1:1

 
Loading ...