Jump to content
sjesper

(Request to OSI) Click according to the compass angle

Recommended Posts

Yea I'll implement a true north based function that rotates a point according to compass angle although I don't recommend it... I also can't vouch for antirandoms working properly at any angle but North though it shouldn't be a problem it's just untested.

 

It's best to just play at North highest angle in most cases.

Link to comment
Share on other sites

Click according to the compass angle

 

If it's possible to make this feature, then it would make the antiban and the easiness lot's better.

 

Example:

 

ClickAng(x, y, 5, 5, Angle);

 

and

 

GetMousePosAng(x, y, Angle);

 

But i think it's pretty hard to do.

 

What ive been doing is this:

Procedure ChangeDir;
 Var
 CurrentPos: Extended;
begin
 CurrentPos := Round(GetCompassAngleDegrees);
   if ((CurrentPos < 270) and (CurrentPos  > 90)) then
     begin
       MakeCompass(RR(-10,10));
       exit;
     end;
   if ((CurrentPos > 270) or (CurrentPos < 90)) then
     begin
       MakeCompass(RR(170,190));
       exit;
     end;
end;

 

But it actual turns the camera, if ur facing north it turns south and it your south it goes north. But u could use GetcompassDegrees to write a similar func that instead of turning the camera did something like click a spot just write a shit load of those if statements or even better do a few cases and narrow the window down to about 5-10 degrees istead of 180 like i got it

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...