HitSplats

Find and read hitsplats on the screen.

_images/hitsplats.png

At the moment only your hitsplats are supported, tinted ones by other players or NPCs are not.


ERSHitSplat

ERSHitSplat = enum(BLUE, RED, MAX);

Enum representing the main hitsplat colors.


TRSHitSplat

Hitsplat record that holds the methods used to find hitsplats.


TRSHitSplat.Find

function TRSHitSplat.Find(out splats: TRSHitSplatArray; areas: TBoxArray): Boolean; static;
function TRSHitSplat.Find(out splats: TRSHitSplatArray; areas: TPolygonArray): Boolean; static; overload;
function TRSHitSplat.Find(out splats: TRSHitSplatArray; areas: TCuboidArray): Boolean; static; overload;
function TRSHitSplat.Find(out splats: TRSHitSplatArray): Boolean; static; overload;

Attempts to find hitsplats on the given area a TColorFinder. If area is not specified, MainScreen Bounds are used. The function returns true if we find at least one hitsplat and found splats are returned via splats.