Xonotic
spawnshield.qc
Go to the documentation of this file.
1 #include "burning.qh"
2 
3 #ifdef SVQC
4 METHOD(SpawnShield, m_remove, void(StatusEffects this, entity actor, int removal_type))
5 {
6  actor.effects &= ~(EF_ADDITIVE | EF_FULLBRIGHT);
7  SUPER(SpawnShield).m_remove(this, actor, removal_type);
8 }
9 METHOD(SpawnShield, m_tick, void(StatusEffects this, entity actor))
10 {
11  if(time >= game_starttime)
12  actor.effects |= (EF_ADDITIVE | EF_FULLBRIGHT);
13  SUPER(SpawnShield).m_tick(this, actor);
14 }
15 #endif
entity() spawn
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
const float EF_ADDITIVE
Definition: csprogsdefs.qc:300
#define SUPER(cname)
Definition: oo.qh:219
const float EF_FULLBRIGHT
Definition: csprogsdefs.qc:303
float time
Definition: csprogsdefs.qc:16