Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
stunned.qh
Go to the documentation of this file.
1
#pragma once
2
3
#include <
common/mutators/mutator/status_effects/all.qh
>
4
5
#ifdef SVQC
6
//void Shock_ApplyDamage(entity e);
7
#endif
8
#ifdef GAMEQC
9
SOUND
(Stunned_Remove,
"onslaught/ons_spark1"
);
10
#endif
11
CLASS
(
Stunned
,
StatusEffect
)
12
ATTRIB
(
Stunned
,
netname
,
string
,
"stunned"
);
13
#if 0
14
// NOTE: status effect name and icon disabled as they are not displayed
15
// re-enable if status effects are given a visual element
16
ATTRIB
(
Stunned
,
m_name
,
string
, _(
"Stunned"
));
17
ATTRIB
(
Stunned
, m_icon,
string
,
"buff_disability"
);
18
#endif
19
ATTRIB
(
Stunned
,
m_color
,
vector
,
'0.67 0.84 1'
);
20
ATTRIB
(
Stunned
,
m_hidden
,
bool
,
true
);
21
ATTRIB
(
Stunned
,
m_lifetime
,
float
, 10);
22
#ifdef GAMEQC
23
ATTRIB
(
Stunned
,
m_sound_rm
,
Sound
, SND_Stunned_Remove);
24
#endif
25
ENDCLASS
(
Stunned
)
26
REGISTER_STATUSEFFECT
(
Stunned
,
NEW
(
Stunned
));
Sound
Definition
sound.qh:119
StatusEffect
Definition
all.qh:33
StatusEffect::ATTRIB
ATTRIB(StatusEffect, m_name, string)
Stunned
Definition
stunned.qh:11
Stunned::netname
string netname
Definition
stunned.qh:12
Stunned::m_sound_rm
Sound m_sound_rm
Definition
stunned.qh:23
Stunned::m_lifetime
float m_lifetime
Definition
stunned.qh:21
Stunned::m_hidden
bool m_hidden
Definition
stunned.qh:20
Stunned::m_color
vector m_color
Definition
stunned.qh:19
m_name
string m_name
Definition
scores.qh:142
all.qh
REGISTER_STATUSEFFECT
#define REGISTER_STATUSEFFECT(id, inst)
Definition
all.qh:12
NEW
#define NEW(cname,...)
Definition
oo.qh:117
CLASS
#define CLASS(...)
Definition
oo.qh:145
ENDCLASS
#define ENDCLASS(cname)
Definition
oo.qh:281
ATTRIB
#define ATTRIB(...)
Definition
oo.qh:148
vector
vector
Definition
self.qh:92
SOUND
#define SOUND(name, path)
Definition
all.qh:30
common
mutators
mutator
status_effects
status_effect
stunned.qh
Generated on
for Xonotic QuakeC by
1.14.0