Xonotic
sv_offhand_blaster.qc
Go to the documentation of this file.
1 #include "sv_offhand_blaster.qh"
2 
4 
6 
7 MUTATOR_HOOKFUNCTION(offhand_blaster, BuildMutatorsString)
8 {
9  M_ARGV(0, string) = strcat(M_ARGV(0, string), ":offhand_blaster");
10 }
11 
12 MUTATOR_HOOKFUNCTION(offhand_blaster, BuildMutatorsPrettyString)
13 {
14  M_ARGV(0, string) = strcat(M_ARGV(0, string), ", Offhand blaster");
15 }
16 
17 MUTATOR_HOOKFUNCTION(offhand_blaster, BuildGameplayTipsString)
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 }
21 
22 MUTATOR_HOOKFUNCTION(offhand_blaster, PlayerSpawn)
23 {
24  entity player = M_ARGV(0, entity);
25  player.offhand = OFFHAND_BLASTER;
26 }
MUTATOR_HOOKFUNCTION(offhand_blaster, BuildMutatorsString)
entity() spawn
OffhandBlaster OFFHAND_BLASTER
Definition: blaster.qh:55
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"))
string autocvar_g_offhand_blaster
REGISTER_MUTATOR(offhand_blaster, expr_evaluate(autocvar_g_offhand_blaster))
#define M_ARGV(x, type)
Definition: events.qh:17
ERASEABLE bool expr_evaluate(string s)
Evaluate an expression of the form: [+ | -]? [var[op]val | [op]var | val | var] ...
Definition: cvar.qh:48