]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/weapons/projectile.qh
#pragma once
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / weapons / projectile.qh
index 3a4cdcb0432614006f9bd74de807dd06fdf13c21..66e1be4707629bffeee90a18f694373958a4a2b1 100644 (file)
@@ -1,35 +1,31 @@
-#ifndef PROJECTILE_H
-#define PROJECTILE_H
+#pragma once
 
-.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 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);