Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
spawnshield.qc
Go to the documentation of this file.
1#include "burning.qh"
2
3#ifdef SVQC
4METHOD(SpawnShield, m_remove, void(StatusEffect this, entity actor, int removal_type))
5{
6 actor.effects &= ~(EF_ADDITIVE | EF_FULLBRIGHT);
7 SUPER(SpawnShield).m_remove(this, actor, removal_type);
8}
9METHOD(SpawnShield, m_tick, void(StatusEffect 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
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float game_starttime
Definition stats.qh:82
const float EF_ADDITIVE
const float EF_FULLBRIGHT
float time
#define SUPER(cname)
Definition oo.qh:231
#define METHOD(cname, name, prototype)
Definition oo.qh:269