Xonotic
sv_cloaked.qc
Go to the documentation of this file.
1 #include "sv_cloaked.qh"
2 
3 //string autocvar_g_cloaked;
4 REGISTER_MUTATOR(cloaked, expr_evaluate(cvar_string("g_cloaked")));
5 
7 
9 {
12  return true;
13 }
14 
15 MUTATOR_HOOKFUNCTION(cloaked, BuildMutatorsPrettyString)
16 {
17  if (!g_cts) M_ARGV(0, string) = strcat(M_ARGV(0, string), ", Cloaked");
18 }
REGISTER_MUTATOR(cloaked, expr_evaluate(cvar_string("g_cloaked")))
#define g_cts
Definition: cts.qh:36
float autocvar_g_balance_cloaked_alpha
Definition: sv_cloaked.qc:6
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"))
MUTATOR_HOOKFUNCTION(cloaked, SetDefaultAlpha)
Definition: sv_cloaked.qc:8
#define M_ARGV(x, type)
Definition: events.qh:17
void SetDefaultAlpha()
Definition: world.qc:104
float default_player_alpha
Definition: world.qh:66
float default_weapon_alpha
Definition: world.qh:67
ERASEABLE bool expr_evaluate(string s)
Evaluate an expression of the form: [+ | -]? [var[op]val | [op]var | val | var] ...
Definition: cvar.qh:48