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

Go to the source code of this file.

Functions

 MUTATOR_HOOKFUNCTION (cl_buffs, WP_Format)
 
 REGISTER_MUTATOR (cl_buffs, true)
 

Function Documentation

◆ MUTATOR_HOOKFUNCTION()

MUTATOR_HOOKFUNCTION ( cl_buffs  ,
WP_Format   
)

Definition at line 4 of file cl_buffs.qc.

References entity(), M_ARGV, Buff::m_color, Buff::m_icon, Buff::m_name, REGISTRY_GET, vector(), and wp_extra.

5 {
6  entity this = M_ARGV(0, entity);
7  string s = M_ARGV(1, string);
8  if (s == WP_Buff.netname || s == RADARICON_Buff.netname)
9  {
10  Buff b = REGISTRY_GET(StatusEffect, this.wp_extra);
11  M_ARGV(2, vector) = b.m_color;
12  M_ARGV(3, string) = b.m_name;
13  M_ARGV(4, string) = b.m_icon;
14  return true;
15  }
16 }
entity() spawn
#define REGISTRY_GET(id, i)
Definition: registry.qh:43
string m_name
Definition: buffs.qh:27
Definition: buffs.qh:20
int wp_extra
Additional networked waypoint state, used for items, weapons, buffs.
#define M_ARGV(x, type)
Definition: events.qh:17
vector(float skel, float bonenum) _skel_get_boneabs_hidden
string m_icon
Definition: buffs.qh:25
vector m_color
Definition: buffs.qh:26
+ Here is the call graph for this function:

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( cl_buffs  ,
true   
)