Go to the source code of this file.
◆ makeXonoticCrosshairPreview()
entity makeXonoticCrosshairPreview |
( |
| ) |
|
◆ XonoticCrosshairPreview_configureXonoticCrosshairPreview()
void XonoticCrosshairPreview_configureXonoticCrosshairPreview |
( |
entity |
me | ) |
|
Definition at line 11 of file crosshairpreview.qc.
References cvar_string(), strcat(), and strzone().
14 me.src2 =
"/gfx/crosshairdot";
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
◆ XonoticCrosshairPreview_draw()
Definition at line 17 of file crosshairpreview.qc.
References cvar(), cvar_string(), draw_alpha, draw_Picture(), draw_PictureSize(), globalToBoxSize(), stov(), strcat(), strcpy, SUPER, and vector().
27 a =
cvar(
"crosshair_alpha");
32 sz = sz *
cvar(
"crosshair_size");
34 draw_Picture(
'0.5 0.5 0' - 0.5 * sz, me.src, sz, rgb, a);
35 if(
cvar(
"crosshair_dot"))
37 if(
cvar(
"crosshair_dot_color_custom") && (
cvar_string(
"crosshair_dot_color") !=
"0"))
40 draw_Picture(
'0.5 0.5 0' - 0.5 * sz *
cvar(
"crosshair_dot_size"), me.src2, sz *
cvar(
"crosshair_dot_size"), rgb, a *
cvar(
"crosshair_dot_alpha"));
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
vector(float skel, float bonenum) _skel_get_boneabs_hidden