Xonotic
sv_cloaked.qc File Reference
#include "sv_cloaked.qh"
+ Include dependency graph for sv_cloaked.qc:

Go to the source code of this file.

Functions

 MUTATOR_HOOKFUNCTION (cloaked, SetDefaultAlpha)
 
 MUTATOR_HOOKFUNCTION (cloaked, BuildMutatorsPrettyString)
 
 REGISTER_MUTATOR (cloaked, expr_evaluate(cvar_string("g_cloaked")))
 

Variables

float autocvar_g_balance_cloaked_alpha
 

Function Documentation

◆ MUTATOR_HOOKFUNCTION() [1/2]

MUTATOR_HOOKFUNCTION ( cloaked  ,
SetDefaultAlpha   
)

Definition at line 8 of file sv_cloaked.qc.

References autocvar_g_balance_cloaked_alpha, default_player_alpha, and default_weapon_alpha.

9 {
12  return true;
13 }
float autocvar_g_balance_cloaked_alpha
Definition: sv_cloaked.qc:6
float default_player_alpha
Definition: world.qh:66
float default_weapon_alpha
Definition: world.qh:67

◆ MUTATOR_HOOKFUNCTION() [2/2]

MUTATOR_HOOKFUNCTION ( cloaked  ,
BuildMutatorsPrettyString   
)

Definition at line 15 of file sv_cloaked.qc.

References g_cts, M_ARGV, and strcat().

16 {
17  if (!g_cts) M_ARGV(0, string) = strcat(M_ARGV(0, string), ", Cloaked");
18 }
#define g_cts
Definition: cts.qh:36
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"))
#define M_ARGV(x, type)
Definition: events.qh:17
+ Here is the call graph for this function:

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( cloaked  ,
expr_evaluate(cvar_string("g_cloaked"))   
)

Variable Documentation

◆ autocvar_g_balance_cloaked_alpha

float autocvar_g_balance_cloaked_alpha

Definition at line 6 of file sv_cloaked.qc.

Referenced by MUTATOR_HOOKFUNCTION().