X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fweapons%2Fprojectile.qh;h=847f3db49d3f298945d16e3ba29250630bceef9b;hb=349aeb508e5a3d577df60bef8a552da2db7d928d;hp=3a4cdcb0432614006f9bd74de807dd06fdf13c21;hpb=253cc10990569fd90917dba809ce03c90fc89336;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/weapons/projectile.qh b/qcsrc/client/weapons/projectile.qh index 3a4cdcb04..847f3db49 100644 --- a/qcsrc/client/weapons/projectile.qh +++ b/qcsrc/client/weapons/projectile.qh @@ -1,28 +1,29 @@ -#ifndef PROJECTILE_H -#define PROJECTILE_H +#ifndef CLIENT_WEAPONS_PROJECTILE_H +#define CLIENT_WEAPONS_PROJECTILE_H -.int traileffect; +entityclass(Projectile); +class(Projectile).int traileffect; -.vector iorigin1, iorigin2; -.float spawntime; -.vector trail_oldorigin; -.float trail_oldtime; -.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; -.float alphamod; -.int count; // set if clientside projectile -.int cnt; // sound index -.float gravity; -.int snd_looping; -.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 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);