Xonotic
sv_offhand_blaster.qc File Reference
+ Include dependency graph for sv_offhand_blaster.qc:

Go to the source code of this file.

Functions

 MUTATOR_HOOKFUNCTION (offhand_blaster, BuildMutatorsString)
 
 MUTATOR_HOOKFUNCTION (offhand_blaster, BuildMutatorsPrettyString)
 
 MUTATOR_HOOKFUNCTION (offhand_blaster, BuildGameplayTipsString)
 
 MUTATOR_HOOKFUNCTION (offhand_blaster, PlayerSpawn)
 
 REGISTER_MUTATOR (offhand_blaster, expr_evaluate(autocvar_g_offhand_blaster))
 

Variables

string autocvar_g_offhand_blaster = "0"
 

Function Documentation

◆ MUTATOR_HOOKFUNCTION() [1/4]

MUTATOR_HOOKFUNCTION ( offhand_blaster  ,
BuildMutatorsString   
)

Definition at line 7 of file sv_offhand_blaster.qc.

References M_ARGV, and strcat().

8 {
9  M_ARGV(0, string) = strcat(M_ARGV(0, string), ":offhand_blaster");
10 }
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:

◆ MUTATOR_HOOKFUNCTION() [2/4]

MUTATOR_HOOKFUNCTION ( offhand_blaster  ,
BuildMutatorsPrettyString   
)

Definition at line 12 of file sv_offhand_blaster.qc.

References M_ARGV, and strcat().

13 {
14  M_ARGV(0, string) = strcat(M_ARGV(0, string), ", Offhand blaster");
15 }
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:

◆ MUTATOR_HOOKFUNCTION() [3/4]

MUTATOR_HOOKFUNCTION ( offhand_blaster  ,
BuildGameplayTipsString   
)

Definition at line 17 of file sv_offhand_blaster.qc.

References M_ARGV, and strcat().

18 {
19  M_ARGV(0, string) = strcat(M_ARGV(0, string), "\n\n^3offhand blaster^8 is enabled, press 'e' (+hook) to use it\n");
20 }
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:

◆ MUTATOR_HOOKFUNCTION() [4/4]

MUTATOR_HOOKFUNCTION ( offhand_blaster  ,
PlayerSpawn   
)

Definition at line 22 of file sv_offhand_blaster.qc.

References entity(), M_ARGV, and OFFHAND_BLASTER.

23 {
24  entity player = M_ARGV(0, entity);
25  player.offhand = OFFHAND_BLASTER;
26 }
entity() spawn
OffhandBlaster OFFHAND_BLASTER
Definition: blaster.qh:55
#define M_ARGV(x, type)
Definition: events.qh:17
+ Here is the call graph for this function:

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( offhand_blaster  ,
expr_evaluate(autocvar_g_offhand_blaster  
)

Variable Documentation

◆ autocvar_g_offhand_blaster

string autocvar_g_offhand_blaster = "0"

Definition at line 3 of file sv_offhand_blaster.qc.