Xonotic
cl_lms.qc
Go to the documentation of this file.
1 #include "cl_lms.qh"
2 
4 
5 REGISTER_MUTATOR(cl_lms, true);
6 
7 MUTATOR_HOOKFUNCTION(cl_lms, DrawInfoMessages)
8 {
9  if(!warmup_stage && ISGAMETYPE(LMS))
10  {
12  vector pos = M_ARGV(0, vector);
13  vector mySize = M_ARGV(1, vector);
14  vector fontsize = '0.2 0.2 0' * mySize.y;
15  int img_curr_group = M_ARGV(2, int);
16  if(sk.(scores(ps_primary)) > 0)
17  {
18  InfoMessage(_("^1You have no more lives left"));
19  M_ARGV(0, vector) = pos;
20  M_ARGV(2, int) = img_curr_group;
21  return true;
22  }
23  }
24  return false;
25 }
entity() spawn
REGISTER_MUTATOR(cl_lms, true)
bool warmup_stage
Definition: main.qh:103
entity playerslots[255]
Definition: main.qh:70
#define InfoMessage(s)
Definition: infomessages.qc:56
#define M_ARGV(x, type)
Definition: events.qh:17
vector(float skel, float bonenum) _skel_get_boneabs_hidden
MUTATOR_HOOKFUNCTION(cl_lms, DrawInfoMessages)
Definition: cl_lms.qc:7
#define ISGAMETYPE(NAME)
Definition: main.qh:32
PlayerScoreField ps_primary
Definition: hud.qh:116
float player_localnum
Definition: csprogsdefs.qc:20