]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/weapons/projectile.qh
Merge branch 'master' into Mario/target_teleporter_v2
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / weapons / projectile.qh
1 #pragma once
2
3 #include <common/sounds/sound.qh>
4
5 entityclass(Projectile);
6 class(Projectile).int traileffect;
7
8 class(Projectile).vector iorigin1, iorigin2;
9 class(Projectile).float spawntime;
10 class(Projectile).vector trail_oldorigin;
11 class(Projectile).float trail_oldtime;
12 class(Projectile).float fade_time, fade_rate;
13
14 class(Projectile).float alphamod;
15 class(Projectile).int count; // set if clientside projectile
16 class(Projectile).int cnt;   // sound index
17 class(Projectile).float gravity;
18 class(Projectile).int snd_looping;
19 class(Projectile).bool silent;
20
21 void SUB_Stop(entity this, entity toucher);
22
23 void Projectile_ResetTrail(entity this, vector to);
24
25 void Projectile_DrawTrail(entity this, vector to);
26
27 void Projectile_Draw(entity this);
28
29 void loopsound(entity e, int ch, Sound samp, float vol, float attn);
30
31 void Ent_RemoveProjectile(entity this);
32
33 const int FL_PROJECTILE = BIT(15);