X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fweapons%2Fprojectile.qh;h=67e08c224bfd6f2a5f35dd8f3354c36e7d79be07;hb=6cc2d1aa115907d16ae84fb07c3fe6c3329cd9b5;hp=70c8ba0dfc5df0ea78f523e9d9a6229dd5eccc36;hpb=2fb9674d8313959ff2dcf50ac8a293569464db01;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/weapons/projectile.qh b/qcsrc/client/weapons/projectile.qh index 70c8ba0dfc..67e08c224b 100644 --- a/qcsrc/client/weapons/projectile.qh +++ b/qcsrc/client/weapons/projectile.qh @@ -1,3 +1,36 @@ -.float traileffect; +#ifndef PROJECTILE_H +#define PROJECTILE_H + +entityclass(Projectile); +class(Projectile) .int traileffect; + +class(Projectile) .vector iorigin1, iorigin2; +class(Projectile) .float spawntime; +class(Projectile) .vector trail_oldorigin; +class(Projectile) .float trail_oldtime; +class(Projectile) .float fade_time, fade_rate; + +class(Projectile) .float alphamod; +class(Projectile) .int count; // set if clientside projectile +class(Projectile) .int cnt; // sound index +class(Projectile) .float gravity; +class(Projectile) .int snd_looping; +class(Projectile) .bool silent; + +void SUB_Stop(); + void Projectile_ResetTrail(vector to); + void Projectile_DrawTrail(vector to); + +void Projectile_Draw(); + +void loopsound(entity e, int ch, string samp, float vol, float attn); + +void Ent_RemoveProjectile(); + +void Ent_Projectile(); + +void Projectile_Precache(); + +#endif