]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/weapons/projectile.qh
67e08c224bfd6f2a5f35dd8f3354c36e7d79be07
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / weapons / projectile.qh
1 #ifndef PROJECTILE_H
2 #define PROJECTILE_H
3
4 entityclass(Projectile);
5 class(Projectile) .int traileffect;
6
7 class(Projectile) .vector iorigin1, iorigin2;
8 class(Projectile) .float spawntime;
9 class(Projectile) .vector trail_oldorigin;
10 class(Projectile) .float trail_oldtime;
11 class(Projectile) .float fade_time, fade_rate;
12
13 class(Projectile) .float alphamod;
14 class(Projectile) .int count; // set if clientside projectile
15 class(Projectile) .int cnt; // sound index
16 class(Projectile) .float gravity;
17 class(Projectile) .int snd_looping;
18 class(Projectile) .bool silent;
19
20 void SUB_Stop();
21
22 void Projectile_ResetTrail(vector to);
23
24 void Projectile_DrawTrail(vector to);
25
26 void Projectile_Draw();
27
28 void loopsound(entity e, int ch, string samp, float vol, float attn);
29
30 void Ent_RemoveProjectile();
31
32 void Ent_Projectile();
33
34 void Projectile_Precache();
35
36 #endif