Discussion Forums at Tactical Neuronics


This piece of code will not work and I can't figure out why From:
jeremiah

The code is cmath v8 = -1*(2*((INT(SQR(ABS((#x_pos+4)-#enemy_x)*ABS((#x_pos+4)-#enemy_x))+(ABS(#y_pos-#enemy_y)*ABS(#y_pos-#enemy_y))) < (INT(SQR(ABS(#x_pos-#enemy_x)*ABS(#x_pos-#enemy_x))+(ABS(#y_pos-#enemy_y)*ABS(#y_pos-#enemy_y))))+3*((INT(SQR(ABS(#x_pos-#enemy_x)*ABS(#x_pos-#enemy_x))+(ABS((#y_pos+4)-#enemy_y)*ABS((#y_pos+4)-#enemy_y))) < (INT(SQR(ABS(#x_pos-#enemy_x)*ABS(#x_pos-#enemy_x))+(ABS(#y_pos-#enemy_y)*ABS(#y_pos-#enemy_y))))+4*((INT(SQR(ABS((#x_pos-4)-#enemy_x)*ABS((#x_pos-4)-#enemy_x))+(ABS(#y_pos-#enemy_y)*ABS(#y_pos-#enemy_y))) < (INT(SQR(ABS(#x_pos-#enemy_x)*ABS(#x_pos-#enemy_x))+(ABS(#y_pos-#enemy_y)*ABS(#y_pos-#enemy_y))))+1*((INT(SQR(ABS(#x_pos-#enemy_x)*ABS(#x_pos-#enemy_x))+(ABS((#y_pos-4)-#enemy_y)*ABS((#y_pos-4)-#enemy_y))) < (INT(SQR(ABS(#x_pos-#enemy_x)*ABS(#x_pos-#enemy_x))+(ABS(#y_pos-#enemy_y)*ABS(#y_pos-#enemy_y))))
(that is one line)
if value ~v8 = 1 then goto gosouth1
if value ~v8 = 2 then goto gowest1
if value ~v8 = 3 then goto gonorth1
if value ~v8 = 4 then goto goeast1
if value ~v8 = 5 then goto goeast1
if value ~v8 = 7 then goto gowest1
why will it not work?
I m posting my bot, its called sniper_v_1.5

Replies to this message:


© 2001, John A. Reder.