footballjds
2009-05-05 21:31:41
gets the color of wall on mm.
useful, i made it cause someone requested it…
maybe add it to next rev ;)
it ignores urself and other players on mm…
if it can't find anything it returns 0.
useful, i made it cause someone requested it…
maybe add it to next rev ;)
function AutoWallColor :integer;
var
wall2by1, tmx, tmy: integer;
begin
wall2by1 := DTMFromString('78DA632C60626050674001EF9FBF629004D28' +
'C503E23488D1A6E35FF81000004520AE4');
FindDTMRotated(wall2by1, tmx, tmy, mmx1, mmy1, mmx2, mmy2, 0, 360, 1, angle);
freedtm(wall2by1);
result := GetColor(tmx, tmy);
if not(SimilarColors(result, 16247020, 35)) then result := 0;
end;it ignores urself and other players on mm…
if it can't find anything it returns 0.