[C++]Run Speed

08/17/2011 19:48 Dr.Php#1
I was a little bit boring so I tought lets make Run Speed Public.
So enjoy

Code:
/*****************************//
//******Credits To: Dr.Php*****//
//*****************************//
//***Release Date: 17/08/2011**//
//*****************************//
//***If u leech give credits***//
//*****************************//
#define ADR_RunSpeed 0x00841028
 
int CH_Runspeed =0;
 
if(CH_Runspeed)
{
    switch(CH_Runspeed)
    {
         case 0:*(float*)(ADR_RunSpeed)=1.5;break;//Normal
         case 1:*(float*)(ADR_RunSpeed)=3.0;break;//x2
         case 2:*(float*)(ADR_RunSpeed)=6.0;break;//x4
         case 3:*(float*)(ADR_RunSpeed)=9.0;break;//x6
         case 4:*(float*)(ADR_RunSpeed)=12.0;break;//x8
    }
}


P.S: Give Credits....

It only works For WARROCK.
08/17/2011 19:49 Myxir™#2
[Only registered and activated users can see links. Click Here To Register...]

post here ty
08/17/2011 20:52 BlackLegend™#3
Quote:
#define ADR_RunSpeed 0x00841028

int Runspeed =0;

switch(Runspeed)
{
default:*(float*)(ADR_RunSpeed)=1.5;break;//Normal
case 1:*(float*)(ADR_RunSpeed)=3.0;break;//x2
case 2:*(float*)(ADR_RunSpeed)=6.0;break;//x4
case 3:*(float*)(ADR_RunSpeed)=9.0;break;//x6
case 4:*(float*)(ADR_RunSpeed)=12.0;break;//x8
}
...
08/18/2011 11:02 Yazzn :)#4
Quote:
Originally Posted by Yazzn
bug: if CH_Runspeed was equal to zero, the switch statement would be jumped. for that there is no reason to check for 'case 0'.
Quote:
Originally Posted by Dr.Php
case 0 must be default. Sorry my bad..
Quote:
Originally Posted by Yazzn
It won't make a difference.
the switch statement still will be jumped and 'case 0' / 'case default' won't get checked.
hint: if(CH_Runspeed) { ... }
Nice share nevertheless
08/18/2011 13:46 xRoute66x#5
Jo, das failt xD
Speed ist doch Double und nicht float?
08/18/2011 16:54 Dogukan47#6
Quote:
Originally Posted by xroute66x™ :) View Post
Jo, das failt xD
Speed ist doch Double und nicht float?
ne hat sich geändert du procoder :D
08/18/2011 17:22 Angel-Piece#7
Quote:
Originally Posted by xroute66x™ :) View Post
Jo, das failt xD
Speed ist doch Double und nicht float?
Quote:
Originally Posted by Dogukan47 View Post
ne hat sich geändert du procoder :D
lol das ist etwas anderes xD
08/18/2011 17:47 xRoute66x#8
Aso, aber da kommt auch jeder drauf der nur ein bisschen c++ skillz hat.
08/19/2011 00:53 BlackLegend™#9
Walkspeed ist Double.

Sprintspeed+Speedroll ist float.
08/19/2011 13:43 Snorlax#10
Quote:
Originally Posted by Myxir™ View Post
[Only registered and activated users can see links. Click Here To Register...]

post here ty
#closed