]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Animate spider's miniguns again
authorJakob MG <jakob_mg@hotmail.com>
Tue, 28 Jun 2011 20:54:11 +0000 (22:54 +0200)
committerJakob MG <jakob_mg@hotmail.com>
Tue, 28 Jun 2011 20:54:11 +0000 (22:54 +0200)
qcsrc/server/vehicles/spiderbot.qc

index 96ea14067ce66886c12a1aba8d8d8cba3dfd6a97..e925023028e3c83329d5068b7b1c66232627aecf 100644 (file)
@@ -351,12 +351,20 @@ float spiderbot_frame()
             spider.vehicle_ammo1 -= autocvar_g_vehicle_spiderbot_minigun_ammo_cost;
             spider.tur_head.attack_finished_single = time + autocvar_g_vehicle_spiderbot_minigun_refire;
             player.vehicle_ammo1 = (spider.vehicle_ammo1 / autocvar_g_vehicle_spiderbot_minigun_ammo_max) * 100;
+            spider.gun1.angles_z += 45;
+            spider.gun2.angles_z -= 45;
+            if(spider.gun1.angles_z >= 360)
+            {
+                spider.gun1.angles_z = 0;
+                spider.gun2.angles_z = 0;
+            }
         }
     }
     else
         vehicles_regen(cnt, vehicle_ammo1, autocvar_g_vehicle_spiderbot_minigun_ammo_max,
                                            autocvar_g_vehicle_spiderbot_minigun_ammo_regen_pause,
                                            autocvar_g_vehicle_spiderbot_minigun_ammo_regen, frametime);
+        
 
     spiderbot_rocket_do();