X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fweapons%2Fprojectile.qh;h=66e1be4707629bffeee90a18f694373958a4a2b1;hb=6e0735e995e35d56e60f8b816285077b7db0b155;hp=67e08c224bfd6f2a5f35dd8f3354c36e7d79be07;hpb=9eb82dd6fc682e3ddecd471835f9047816236342;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/weapons/projectile.qh b/qcsrc/client/weapons/projectile.qh index 67e08c224..66e1be470 100644 --- a/qcsrc/client/weapons/projectile.qh +++ b/qcsrc/client/weapons/projectile.qh @@ -1,36 +1,31 @@ -#ifndef PROJECTILE_H -#define PROJECTILE_H +#pragma once entityclass(Projectile); -class(Projectile) .int traileffect; +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).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; +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 SUB_Stop(entity this); -void Projectile_ResetTrail(vector to); +void Projectile_ResetTrail(entity this, vector to); -void Projectile_DrawTrail(vector to); +void Projectile_DrawTrail(entity this, vector to); -void Projectile_Draw(); +void Projectile_Draw(entity this); void loopsound(entity e, int ch, string samp, float vol, float attn); -void Ent_RemoveProjectile(); +void Ent_RemoveProjectile(entity this); -void Ent_Projectile(); - -void Projectile_Precache(); - -#endif +const int FL_PROJECTILE = BIT(15);