07.07.2012, 09:07
Quote:
Hey RyDeR' !
You that like math, answer me ![]() (GangZones Post) --- I tried everything, but can not find anything (to create "circulation" must make "interpolation" of gangzones) |
pawn Код:
stock RoundGangZone(const Float: radius, const Float: X , const Float: Y, const color, const size = 20) {
new
Float: inc = 90.0 / size,
Float: deg = inc,
Float: cos,
Float: sin,
zone
;
while(deg < 90.0) {
cos = floatcos(deg, degrees) * radius;
sin = floatsin(deg, degrees) * radius;
zone = GangZoneCreate(X - cos, Y - sin, X + cos, Y + sin);
GangZoneShowForAll(zone, color);
deg += inc;
}
return zone;
}
![](http://i176.photobucket.com/albums/w187/Nero_3D/Jpeg/roundGangZones.jpg)
It doesnt look like a circle because of my resolution