Xonotic
cl_lms.qc File Reference
#include "cl_lms.qh"
#include <common/mutators/base.qh>
+ Include dependency graph for cl_lms.qc:

Go to the source code of this file.

Functions

 MUTATOR_HOOKFUNCTION (cl_lms, DrawInfoMessages)
 
 REGISTER_MUTATOR (cl_lms, true)
 

Function Documentation

◆ MUTATOR_HOOKFUNCTION()

MUTATOR_HOOKFUNCTION ( cl_lms  ,
DrawInfoMessages   
)

Definition at line 7 of file cl_lms.qc.

References entity(), InfoMessage, ISGAMETYPE, M_ARGV, player_localnum, playerslots, ps_primary, vector(), and warmup_stage.

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
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
#define ISGAMETYPE(NAME)
Definition: main.qh:32
PlayerScoreField ps_primary
Definition: hud.qh:116
float player_localnum
Definition: csprogsdefs.qc:20
+ Here is the call graph for this function:

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( cl_lms  ,
true   
)