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;
22 
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 }
vector eent_net_location
Definition: effect.qh:23
entity Create_Effect_Entity(string eff_name, bool eff_trail)
Definition: effect.qh:27
entity() spawn
int m_id
Definition: effect.qh:19
vector eent_net_velocity
Definition: effect.qh:24
int eent_eff_trail
Definition: effect.qh:21
int eent_net_count
Definition: effect.qh:25
string eent_eff_name
Definition: effect.qh:20
#define new_pure(class)
purely logical entities (.origin doesn't work)
Definition: oo.qh:62