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
4
METHOD
(
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
}
9
METHOD
(
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
burning.qh
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
SpawnShield
Definition
spawnshield.qh:5
StatusEffect
Definition
all.qh:33
game_starttime
float game_starttime
Definition
stats.qh:82
EF_ADDITIVE
const float EF_ADDITIVE
Definition
csprogsdefs.qc:304
EF_FULLBRIGHT
const float EF_FULLBRIGHT
Definition
csprogsdefs.qc:307
time
float time
Definition
csprogsdefs.qc:16
SUPER
#define SUPER(cname)
Definition
oo.qh:231
METHOD
#define METHOD(cname, name, prototype)
Definition
oo.qh:269
common
mutators
mutator
status_effects
status_effect
spawnshield.qc
Generated on
for Xonotic QuakeC by
1.14.0