Naike
2008-05-24 12:55:24
Don't you hate minimap when it wont go north ?
When MakeCompass(N) only make it go 330 not 360 degrees and it messes up everything!
Well that long gone!
RadialWalkDegrees & GetMMDegrees is the way to go!!
GetMMDegrees gets the degree of the minimap angle! If minimap is set to
a little bit more then north it will result somewhere around 0 - 20 etc…
True or False?
True counts the degree clockwise ->
False counts from the other way <-
RadialWalkDegrees works like this, Start by setting the degrees/angle while minimap is set to north! when done rotate minimap however you want it and try the function.. Only smart people understand this.
If you don't understand how to use the functions dont even bother to post!
When MakeCompass(N) only make it go 330 not 360 degrees and it messes up everything!
Well that long gone!
RadialWalkDegrees & GetMMDegrees is the way to go!!
GetMMDegrees gets the degree of the minimap angle! If minimap is set to
a little bit more then north it will result somewhere around 0 - 20 etc…
True or False?
True counts the degree clockwise ->
False counts from the other way <-
RadialWalkDegrees works like this, Start by setting the degrees/angle while minimap is set to north! when done rotate minimap however you want it and try the function.. Only smart people understand this.
{*************************************************************************************************
Function GetMMDegrees(GetAngleFrom : Boolean): Integer;
By: N1ke!
Description: Gets the minimap angle in degrees. True = Clockwise , False = Not Clockwise
*************************************************************************************************}
Function GetMMDegrees(Clockwise : boolean): Integer;
Var MMDegrees : extended;
Begin
If(Not(LoggedIn))Then Exit;
MMDegrees := (rs_GetCompassAngleDegrees);
If ClockWise then Angle := MMDegrees - Angle;
Result := Round(MMDegrees);
End;
{*************************************************************************************************
Function RadialWalkDegrees(Color: Integer; StartRadial, EndRadial: Integer; Radius: Integer): Boolean;
By: N1ke!
Description:
*************************************************************************************************}
Function RadialWalkDegrees(Color: Integer; StartRadial, EndRadial: Integer; Radius: Integer): Boolean;
Var
M1n, M4x, D3grees: Integer;
begin
If(Not(LoggedIn))Then Exit;
D3grees := GetMMDegrees(True);
M1n := StartRadial - D3grees;
M4x := EndRadial - D3grees;
If M1n < 0 then
begin
M1n := M1n + 360;
M4x := M4x + 360;
StartRadial := StartRadial + 360;
EndRadial := EndRadial + 360;
end;
Result := RadialWalk(Color, M1n, M4x, Radius, 0, 0);
End;If you don't understand how to use the functions dont even bother to post!