X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fweapons%2Fprojectile.qh;h=27bca00c80008daa7a9c943af478aa49245a2576;hb=8f08a117d2eada0c38cb1d07a0798daf192dd666;hp=70c8ba0dfc5df0ea78f523e9d9a6229dd5eccc36;hpb=0040a3c181e225fa7e1c38b9de5314e23ac7063a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/weapons/projectile.qh b/qcsrc/client/weapons/projectile.qh index 70c8ba0df..27bca00c8 100644 --- a/qcsrc/client/weapons/projectile.qh +++ b/qcsrc/client/weapons/projectile.qh @@ -1,3 +1,31 @@ -.float traileffect; -void Projectile_ResetTrail(vector to); -void Projectile_DrawTrail(vector to); +#pragma once + +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(entity this, entity toucher); + +void Projectile_ResetTrail(entity this, vector to); + +void Projectile_DrawTrail(entity this, vector to); + +void Projectile_Draw(entity this); + +void loopsound(entity e, int ch, string samp, float vol, float attn); + +void Ent_RemoveProjectile(entity this); + +const int FL_PROJECTILE = BIT(15);