Xonotic
projectile.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common/sounds/sound.qh>
4 
6 
7 entityclass(Projectile);
8 classfield(Projectile).int traileffect;
9 
10 classfield(Projectile).vector iorigin1, iorigin2;
11 classfield(Projectile).float spawntime;
12 classfield(Projectile).vector trail_oldorigin;
13 classfield(Projectile).float trail_oldtime;
14 classfield(Projectile).float fade_time, fade_rate;
15 
16 classfield(Projectile).float alphamod;
17 classfield(Projectile).int count; // set if clientside projectile
18 classfield(Projectile).int cnt; // sound index
19 classfield(Projectile).float gravity;
20 classfield(Projectile).int snd_looping;
21 classfield(Projectile).bool silent;
22 
23 void SUB_Stop(entity this, entity toucher);
24 
26 
28 
29 void Projectile_Draw(entity this);
30 
31 void loopsound(entity e, int ch, Sound samp, float vol, float attn);
32 
33 void Ent_RemoveProjectile(entity this);
void Ent_RemoveProjectile(entity this)
Definition: projectile.qc:177
bool autocvar_cl_projectiles_sloppy
Definition: projectile.qh:5
iorigin2
Definition: projectile.qh:10
void SUB_Stop(entity this, entity toucher)
Definition: projectile.qc:17
fade_rate
Definition: projectile.qh:14
entity() spawn
void Projectile_DrawTrail(entity this, vector to)
Definition: projectile.qc:29
entity to
Definition: self.qh:96
void Projectile_ResetTrail(entity this, vector to)
Definition: projectile.qc:23
float cnt
Definition: powerups.qc:24
classfield(Projectile).int traileffect
void Projectile_Draw(entity this)
Definition: projectile.qc:49
Definition: sound.qh:119
vector iorigin1
Definition: interpolate.qc:25
vector(float skel, float bonenum) _skel_get_boneabs_hidden
float gravity
Definition: items.qh:16
float count
Definition: powerups.qc:22
float fade_time
Definition: common.qh:22
void loopsound(entity e, int ch, Sound samp, float vol, float attn)
Definition: projectile.qc:167
float spawntime
Definition: items.qh:15
entityclass(Projectile)
int snd_looping