// Skeet Crosshair for OneTap Crack
// Made by cr1pwalk#7306 & Morty#9999 & frisch#4693
// Enjoy
// getscreensize & dist added by enQ
// happy game
// colorpicker added by 0xc0666
UI.AddSliderInt ("Distance from crosshair", 0, 200);
UI.AddSliderInt ("Size of lines", 20, 200);
UI.AddColorPicker( "Scope color" );
function draw() {
var dist = UI.GetValue ("Misc", "JAVASCRIPT", "Script items", "Distance from crosshair");
var size = UI.GetValue ("Misc", "JAVASCRIPT", "Script items", "Size of lines");
var color =UI.GetColor( "Misc", "JAVASCRIPT", "Script items", "Scope color" );
var local = Entity.GetLocalPlayer();
var is_scope = Entity.GetProp (local, "DT_CSPlayer", "m_bIsScoped");
if ( is_scope ) {
var screen_size = Global.GetScreenSize();
x = screen_size[0] / 2;
y = screen_size[1] / 2;
Render.GradientRect ( x + dist + 1, y, size, 1, 1, color, [ 55, 59, 68, 0 ] );
Render.GradientRect ( x, y + dist + 1, 1, size, 0, color, [ 55, 59, 68, 0 ] );
Render.GradientRect ( x - dist - size, y, size, 1, 1, [ 55, 59, 68, 0 ], color );
Render.GradientRect ( x, y - dist - size, 1, size, 0, [ 55, 59, 68, 0 ], color );
UI.SetValue("Misc", "JAVASCRIPT", "Script items", "Display indicators", false)
}
else
{
UI.SetValue("Misc", "JAVASCRIPT", "Script items", "Display indicators", true)
}
}
Cheat.RegisterCallback("Draw", "draw")