spriteimage = strcat("models/sprites/", spriteimage, "_frame", ftos(mod(floor((max(0, time - self.spawntime)) * 2), t)));
float edgedistance_min, crosshairdistance;
- edgedistance_min = min4(o_y, // todo: FIGURE THIS SHIT OUT
- o_x,
- vid_conwidth - o_x,
- vid_conheight - o_y);
+ edgedistance_min = min4((o_y - (vid_conheight * waypointsprite_edgeoffset_left)),
+ (o_x - (vid_conwidth * waypointsprite_edgeoffset_top)),
+ (vid_conwidth - (vid_conwidth * waypointsprite_edgeoffset_right)) - o_x,
+ (vid_conheight - (vid_conheight * waypointsprite_edgeoffset_bottom)) - o_y);
crosshairdistance = sqrt( pow(o_x - vid_conwidth/2, 2) + pow(o_y - vid_conheight/2, 2) );