Quote:
Originally Posted by .Electro'
Unpack it self! It takes 2 Minutes.
Code:
#define ASM_CRCPATCH 0x4181BA // By .Electro' Give Credits!
#define ASM_WTW 0x70C752 // By .Electro' Give Credits!
#define ASM_NORELOAD 0x5782BC // By .Electro' Give Credits!
#define ASM_BULLETS 0x4D3AC7 // By .Electro' Give Credits!
#define ASM_QUICKPLANT 0x43668B // By .Electro' Give Credits!
#define ASM_QUICKDEFUSE 0x4D28BC // By .Electro' Give Credits!
if(Runspeed)
{switch(Runspeed){
case 0:*(float*)(ADR_RunSpeed)=1.5;break;
case 1:*(float*)(ADR_RunSpeed)=3.0;break;
case 2:*(float*)(ADR_RunSpeed)=6.0;break;
case 3:*(float*)(ADR_RunSpeed)=12.0;break;}}
Or
if(RunSpeed ==0)
{
*(float*)(ADR_RunSpeed)=1.5;
}
if(RunSpeed ==1)
{
*(float*)(ADR_RunSpeed)=3.0;
}
if(RunSpeed ==1)
{
*(float*)(ADR_RunSpeed)=6.0;
}
if(RunSpeed ==1)
{
*(float*)(ADR_RunSpeed)=12.0;
}
What is now Longer? NooB!
|
u are a NOOB !!
you compress the switch stuff

(and the speed source are false ;DD)
if(RunSpeed==1){*(double*)(ADR_RunSpeed)=300;}
if(RunSpeed==2){*(double*)(ADR_RunSpeed)=400;}
if(RunSpeed==3){*(double*)(ADR_RunSpeed)=12000;}
else{*(double*)(ADR_RunSpeed)=100;}
and the switch ....
(warum ist da auch ne if verzweigung ??? wer kann hier wohl nicht coden

)
if(Runspeed)
{switch(Runspeed){
case 0:*(float*)(ADR_RunSpeed)=1.5;break;
case 1:*(float*)(ADR_RunSpeed)=3.0;break;
case 2:*(float*)(ADR_RunSpeed)=6.0;break;
case 3:*(float*)(ADR_RunSpeed)=12.0;break;}}