Xonotic
effect.qh
Go to the documentation of this file.
1
#pragma once
2
3
#define particleeffectnum(e) \
4
_particleeffectnum(e.eent_eff_name)
5
6
#if defined(SVQC)
7
#define pointparticles(effect, org, vel, howmany) \
8
Send_Effect(effect, org, vel, howmany)
9
#define trailparticles(e, effect, org, vel) \
10
((!e) ? Send_Effect(effect, org, vel, 0) \
11
: __trailparticles(e, particleeffectnum(effect), org, vel))
12
#elif defined(CSQC)
13
#define pointparticles(effect, org, vel, howmany) \
14
__pointparticles(particleeffectnum(effect), org, vel, howmany)
15
#define trailparticles(e, effect, org, vel) \
16
__trailparticles(e, particleeffectnum(effect), org, vel)
17
#endif
18
19
.int
m_id
;
20
.string
eent_eff_name
;
21
.int
eent_eff_trail
;
22
23
.vector
eent_net_location
;
24
.vector
eent_net_velocity
;
25
.int
eent_net_count
;
26
27
entity
Create_Effect_Entity
(
string
eff_name,
bool
eff_trail)
28
{
29
entity
this
=
new_pure
(effect_entity);
30
this.
eent_eff_name
= eff_name;
31
this.
eent_eff_trail
= eff_trail;
32
return
this
;
33
}
eent_net_location
vector eent_net_location
Definition:
effect.qh:23
Create_Effect_Entity
entity Create_Effect_Entity(string eff_name, bool eff_trail)
Definition:
effect.qh:27
entity
entity() spawn
m_id
int m_id
Definition:
effect.qh:19
eent_net_velocity
vector eent_net_velocity
Definition:
effect.qh:24
eent_eff_trail
int eent_eff_trail
Definition:
effect.qh:21
eent_net_count
int eent_net_count
Definition:
effect.qh:25
eent_eff_name
string eent_eff_name
Definition:
effect.qh:20
new_pure
#define new_pure(class)
purely logical entities (.origin doesn't work)
Definition:
oo.qh:62
common
effects
effect.qh
Generated on Thu Mar 17 2022 17:26:27 for Xonotic by
1.8.13