]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Client projectiles
authorMario <zacjardine@y7mail.com>
Sat, 24 Jan 2015 04:01:19 +0000 (15:01 +1100)
committerMario <zacjardine@y7mail.com>
Sat, 24 Jan 2015 04:01:19 +0000 (15:01 +1100)
qcsrc/client/weapons/projectile.qc
qcsrc/client/weapons/projectile.qh

index e019b6755514c10957a91c9d43042827e137de72..fa0828442aaef92ef43001211037fb0157973fef 100644 (file)
@@ -11,11 +11,11 @@ void SUB_Stop()
 }
 
 .float alphamod;
-.float count; // set if clientside projectile
-.float cnt; // sound index
+.int count; // set if clientside projectile
+.int cnt; // sound index
 .float gravity;
-.float snd_looping;
-.float silent;
+.int snd_looping;
+.bool silent;
 
 void Projectile_ResetTrail(vector to)
 {
@@ -49,8 +49,8 @@ void Projectile_Draw()
 {
        vector rot;
        vector trailorigin;
-       float f;
-       float drawn;
+       int f;
+       bool drawn;
        float t;
        float a;
 
@@ -159,7 +159,7 @@ void Projectile_Draw()
        self.drawmask = MASK_NORMAL;
 }
 
-void loopsound(entity e, float ch, string samp, float vol, float attn)
+void loopsound(entity e, int ch, string samp, float vol, float attn)
 {
        if(self.silent)
                return;
@@ -179,7 +179,7 @@ void Ent_RemoveProjectile()
 
 void Ent_Projectile()
 {
-       float f;
+       int f;
 
        // projectile properties:
        //   kind (interpolated, or clientside)
@@ -444,7 +444,7 @@ void Ent_Projectile()
 
                if(Nade_IDFromProjectile(self.cnt) != 0)
                {
-                       float nade_type = Nade_IDFromProjectile(self.cnt);
+                       int nade_type = Nade_IDFromProjectile(self.cnt);
                        self.mins = '-16 -16 -16';
                        self.maxs = '16 16 16';
                        self.colormod = Nade_Color(nade_type);
index 70c8ba0dfc5df0ea78f523e9d9a6229dd5eccc36..bd3e8f63be5f6802e5a143a462ede87571d08762 100644 (file)
@@ -1,3 +1,3 @@
-.float traileffect;
+.int traileffect;
 void Projectile_ResetTrail(vector to);
 void Projectile_DrawTrail(vector to);