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
entity() spawn
METHOD
#define METHOD(cname, name, prototype)
Definition:
oo.qh:257
EF_ADDITIVE
const float EF_ADDITIVE
Definition:
csprogsdefs.qc:300
SUPER
#define SUPER(cname)
Definition:
oo.qh:219
EF_FULLBRIGHT
const float EF_FULLBRIGHT
Definition:
csprogsdefs.qc:303
StatusEffects
Definition:
all.qh:30
burning.qh
SpawnShield
Definition:
spawnshield.qh:5
time
float time
Definition:
csprogsdefs.qc:16
common
mutators
mutator
status_effects
status_effect
spawnshield.qc
Generated on Thu Mar 17 2022 17:26:28 for Xonotic by
1.8.13