View Single Post
Re: Current JoeBOT Version : 1.6.5.1
Old
  (#9)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Current JoeBOT Version : 1.6.5.1 - 08-04-2004

Hmmm....I've just taken a look at the code.....

I've found the code is quite different from the C/C++ I recognized Maybe it's too l33t for beginners like me to read.

So my suggestion is: do NOT use those names of variables like this...
pWPAMPlay, STMem.f_NUpdate, FFE...and so on,

Also don't write strange code like this....
Code:
 		// process log of weapon with which the bot has been killed
 		for(ischl = 0;ischl < _MAXLKW;ischl++){
 			if(FLKW[ischl] != -1){
 				if(IsSniperWeapon(1<<FLKW[ischl])){
 					lKSniper ++;
 				}
 				if(IsShotgunWeapon(1<<FLKW[ischl])){
 					lKShot ++;
 				}
 				if(IsSubMWeapon(1<<FLKW[ischl])){
 					lKSub ++;
 				}
 			}
 		}
 		
 		lKSniper>lKSub&&lKSniper>lKShot?
 			bKSniper=true:lKSub>lKSniper&&lKSub>lKShot?
 		        bKSub=true:lKShot>lKSniper&&lKShot>lKSub?
 					bKShot=true:0==0;
  
Reply With Quote