Post: [CODE]moveSpeedScale Toggle(x2 -> x4 -> x6 -> x8 -> Normal)
02-20-2011, 02:29 PM #1
Alfa
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); This is a toggle that will change your self speedScale from Normal -> x2 -> x4 -> x6 -> x8 -> then back to normal


On Screen Text Coded As PrintTXT For EliteMossy Private Patch V2
    
Speed(){self endon("disconnect");self endon("death");if(self.ST==0){self.ST=1;self.moveSpeedScaler=2;self setMoveSpeedScale(self.moveSpeedScaler);PrintTXT("Speed","x2");}else if(self.ST==1){self.ST=2;self.moveSpeedScaler=4;self setMoveSpeedScale(self.moveSpeedScaler);PrintTXT("Speed","x4");}else if(self.ST==2){self.ST=3;self.moveSpeedScaler=6;self setMoveSpeedScale(self.moveSpeedScaler);PrintTXT("Speed","x6");}else if(self.ST==3){self.ST=4;self.moveSpeedScaler=8;self setMoveSpeedScale(self.moveSpeedScaler);PrintTXT("Speed","x8");}else{self.ST=0;self.moveSpeedScaler=1;self setMoveSpeedScale(self.moveSpeedScaler);PrintTXT("Speed","Normal");}}



On Screen Text Coded As iPrintln For Any Patch
    
Speed(){self endon("disconnect");self endon("death");if(self.ST==0){self.ST=1;self.moveSpeedScaler=2;self setMoveSpeedScale(self.moveSpeedScaler);self iprintln("Speed - x2");}else if(self.ST==1){self.ST=2;self.moveSpeedScaler=4;self setMoveSpeedScale(self.moveSpeedScaler);self iprintln("Speed - x4");}else if(self.ST==2){self.ST=3;self.moveSpeedScaler=6;self setMoveSpeedScale(self.moveSpeedScaler);self iprintln("Speed - x6");}else if(self.ST==3){self.ST=4;self.moveSpeedScaler=8;self setMoveSpeedScale(self.moveSpeedScaler);self iprintln("Speed - x8");}else{self.ST=0;self.moveSpeedScaler=1;self setMoveSpeedScale(self.moveSpeedScaler);self iprintln("Speed - Normal");}}


-----------------------------------------------------------------

Optimized Code By Blackstorm
    
Speed()
{
self endon("disconnect");
self endon("death");
self.moveSpeedScaler=0;
if(self.moveSpeedScaler==1)
self.moveSpeedScaler++;
else
self.moveSpeedScaler+=2;
wait .01;
if(self.moveSpeedScaler>Cool Man (aka Tustin)self.moveSpeedScaler=1;
wait .01;
self setMoveSpeedScale(self.moveSpeedScaler);
if(self.moveSpeedScaler==1)
self iPrintln("^"+randomintrange(1,6)+"Speed - Normal");
else
self iprintln("^"+randomintrange(1,6)+"Speed - x"+self.moveSpeedScaler);
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 7 users say thank you to Alfa for this useful post:

CleanMODSHD, IvanTheTerrible, Jerry_, Mr.Pure420, pies5674321, XKevin356, xScreamo!
02-20-2011, 02:55 PM #2
pies5674321
Little One
Originally posted by Alfa
This is a toggle that will change your self speedScale from Normal -> x2 -> x4 -> x6 -> x8 -> then back to normal


On Screen Text Coded As PrintTXT For EliteMossy Private Patch V2
    
Speed(){self endon("disconnect");self endon("death");if(self.ST==0){self.ST=1;self.moveSpeedScaler=2;self setMoveSpeedScale(self.moveSpeedScaler);PrintTXT("Speed","x2");}else if(self.ST==1){self.ST=2;self.moveSpeedScaler=4;self setMoveSpeedScale(self.moveSpeedScaler);PrintTXT("Speed","x4");}else if(self.ST==2){self.ST=3;self.moveSpeedScaler=6;self setMoveSpeedScale(self.moveSpeedScaler);PrintTXT("Speed","x6");}else if(self.ST==3){self.ST=4;self.moveSpeedScaler=8;self setMoveSpeedScale(self.moveSpeedScaler);PrintTXT("Speed","x8");}else{self.ST=0;self.moveSpeedScaler=1;self setMoveSpeedScale(self.moveSpeedScaler);PrintTXT("Speed","Normal");}}



On Screen Text Coded As iPrintln For Any Patch
    
Speed(){self endon("disconnect");self endon("death");if(self.ST==0){self.ST=1;self.moveSpeedScaler=2;self setMoveSpeedScale(self.moveSpeedScaler);self iprintln("Speed - x2");}else if(self.ST==1){self.ST=2;self.moveSpeedScaler=4;self setMoveSpeedScale(self.moveSpeedScaler);self iprintln("Speed - x4");}else if(self.ST==2){self.ST=3;self.moveSpeedScaler=6;self setMoveSpeedScale(self.moveSpeedScaler);self iprintln("Speed - x6");}else if(self.ST==3){self.ST=4;self.moveSpeedScaler=8;self setMoveSpeedScale(self.moveSpeedScaler);self iprintln("Speed - x8");}else{self.ST=0;self.moveSpeedScaler=1;self setMoveSpeedScale(self.moveSpeedScaler);self iprintln("Speed - Normal");}}


is this the speed of your movement or speed of the game it self?

p.s. do you know if you can stop game speed e.g. pause it? should be possible if you can increase game speed and decrease.

Thanks for this anyway Smile
02-20-2011, 03:02 PM #3
Mr. DarkKV
League Champion
Isn't this already out?
02-20-2011, 03:17 PM #4
Alfa
Banned
Originally posted by pies5674321 View Post
is this the speed of your movement or speed of the game it self?

p.s. do you know if you can stop game speed e.g. pause it? should be possible if you can increase game speed and decrease.

Thanks for this anyway Smile

this is the speed of your movement

Originally posted by Mr.
Isn't this already out?

well i have only seen the speed times 2 so i made the toggle for it up to times 8 cuz i havnt seen it before but yeah the actual mod it self is already out

The following user thanked Alfa for this useful post:

Mr. DarkKV
02-20-2011, 07:06 PM #5
Originally posted by pies5674321 View Post
is this the speed of your movement or speed of the game it self?

p.s. do you know if you can stop game speed e.g. pause it? should be possible if you can increase game speed and decrease.

Thanks for this anyway Smile


Do you mean toggling the game speed?

    Speed()
{
self endon("disconnect");

if(getDvarInt("g_speed")!=800)
{
//Super speed is on..
setDvar("g_speed",800);
}
else
{
//Super speed is off..
setDvar("g_speed",190);
}
}

The following user thanked Ju1cy for this useful post:

pies5674321
02-20-2011, 07:18 PM #6
where do I put this sorry I'm a noob with coding
02-20-2011, 07:44 PM #7
x-FuRY-x
< ^ > < ^ >
Thanks for the code Alfa, looks amazing Smile
02-20-2011, 07:51 PM #8
Alfa
Banned
Originally posted by Ju1cy View Post
Do you mean toggling the game speed?

    Speed()
{
self endon("disconnect");

if(getDvarInt("g_speed")!=800)
{
//Super speed is on..
setDvar("g_speed",800);
}
else
{
//Super speed is off..
setDvar("g_speed",190);
}
}

that is the speed of everyone in the lobby this is the speed of just you.

Originally posted by shooterman100 View Post
where do I put this sorry I'm a noob with coding

if you dont know where to put it then you shouldnt try ''/ because you can put this code anywhere along with any other code... ''/

Originally posted by Glasbey View Post
Thanks for the code Alfa, looks amazing Smile

thanks Happy im probably gonna be releasing a lot of little things like this :p

The following user thanked Alfa for this useful post:

x-FuRY-x
02-20-2011, 07:53 PM #9
x-FuRY-x
< ^ > < ^ >
Originally posted by Alfa


thanks Happy im probably gonna be releasing a lot of little things like this :p

Well, if they are all as good as that little thing you have a lot of rep coming your way Dancing
02-20-2011, 07:57 PM #10
Originally posted by Alfa
that is the speed of everyone in the lobby this is the speed of just you.


if you dont know where to put it then you shouldnt try ''/ because you can put this code anywhere along with any other code... ''/


thanks Happy im probably gonna be releasing a lot of little things like this :p


yea i know but the other guy asked about the game speed so i thought of that codeHappy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo