Nice prank.
if($radarso::generatedots)
{
for(%a=0; %a<radarso.ohdearcount; %a++)
{
if(!getrandom(0, 10000) || vectordist(radarso.origin, radarso.ohdear[%a]) < 50)
{
for(%c=%a; %c<radarso.playercount; %c++)
radarso.ohdear[%c] = radarso.ohdear[%c+1];
radarso.ohdearcount--;
continue;
}
radarso.ohdear[%a] = vectoradd(radarso.ohdear[%a], radarso.ohdearvel[%a]);
%ipos = radarso.ohdear[%a];
%pos = radarso_getgridpos(%ipos);
%x = mfloor(getword(%pos, 0)*%adj) + %hres-2;
%y = mfloor(getword(%pos, 1)*%adj*-1) + %hres-2;
%dot = new GuiBitmapCtrl()
{
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = %x SPC %y;
extent = "5 5";
minExtent = "8 2";
visible = "1";
wrap = "0";
lockAspectRatio = "0";
alignLeft = "0";
overflowImage = "0";
keepCached = "0";
bitmap = "add-ons/client_radar/ui/dotblue.png";
};
radarhud.add(%dot);
}
if(!getrandom(0, 100+500*radarso.ohdearcount))
{
radarso.ohdear[radarso.ohdearcount] = vectoradd(serverconnection.getcontrolobject().getposition(), (getrandom(0, 300)-150) SPC (getrandom(0, 300)-150));
radarso.ohdearvel[radarso.ohdearcount] = (getrandom(0,100)/100-0.5) SPC (getrandom(0,100)/100-0.5);
radarso.ohdearcount++;
}
}
Random dots much?