2018-06-10 23:14:31 +00:00
|
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
|
2018-08-01 04:49:49 +00:00
|
|
|
// Crosshair system based on OpenAG
|
|
|
|
// https://github.com/YaLTeR/OpenAG
|
|
|
|
|
2018-06-10 23:14:31 +00:00
|
|
|
class CHudCrosshairs : public CHudBase
|
|
|
|
{
|
|
|
|
cvar_t* cl_cross;
|
|
|
|
cvar_t* cl_cross_color;
|
|
|
|
cvar_t* cl_cross_alpha;
|
|
|
|
cvar_t* cl_cross_thickness;
|
|
|
|
cvar_t* cl_cross_size;
|
|
|
|
cvar_t* cl_cross_gap;
|
|
|
|
cvar_t* cl_cross_outline;
|
2018-08-01 04:49:49 +00:00
|
|
|
cvar_t* cl_cross_outline_alpha;
|
2018-06-10 23:14:31 +00:00
|
|
|
cvar_t* cl_cross_outline_inner;
|
2018-08-01 04:49:49 +00:00
|
|
|
cvar_t* cl_cross_circle_radius;
|
2018-06-10 23:14:31 +00:00
|
|
|
cvar_t* cl_cross_dot_size;
|
|
|
|
cvar_t* cl_cross_dot_color;
|
|
|
|
cvar_t* cl_cross_dot_outline;
|
2018-08-01 04:49:49 +00:00
|
|
|
cvar_t* cl_cross_line_top;
|
|
|
|
cvar_t* cl_cross_line_bottom;
|
|
|
|
cvar_t* cl_cross_line_left;
|
|
|
|
cvar_t* cl_cross_line_right;
|
2018-06-10 23:14:31 +00:00
|
|
|
|
2018-08-01 04:49:49 +00:00
|
|
|
float old_circle_radius;
|
|
|
|
std::vector<Vector2D> circle_points;
|
2018-06-10 23:14:31 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
virtual int Init();
|
|
|
|
virtual int VidInit();
|
|
|
|
virtual int Draw(float time);
|
|
|
|
};
|