SRL Archive - SRL Archives

AutoWallColor:integer;


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 ;)
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.

Sir R. M8gic1an

2009-05-05 21:39:10

From: footballjds
gets the color of wall on mm.
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.



SRL is changing it's autocolors to CTS 2 ;)

http://www.villavu.com/forum/showthread.php?t=44921

~RM

footballjds

2009-05-05 21:47:30

but mine is faster only 16 msec!!! lol cmon!!!

Da 0wner

2009-05-05 23:17:52

CTS 2 pwns all. Although CTS 3 is more reliable, CTS 2 is faster and reliable :D.

XcanadamanX

2009-05-05 23:25:11

i just made one. uses cts 2. i just stole the proc from ACA temporarily. if you use 15.88 and 8.03 for the CTS2 modifiers and the colour 15856104 with 5 tolerance you can get it everytime. (Only tested in AK)

noidea

2009-05-05 23:49:17

I dont get it!
Why not only change the not working AutoColours to CTS2?

lordsaturn

2009-05-06 05:19:42

From: noidea
I dont get it!
Why not only change the not working AutoColours to CTS2?


Accuracy.