]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix loadable secondary lifetime
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 11 Apr 2011 10:56:02 +0000 (13:56 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 11 Apr 2011 10:56:02 +0000 (13:56 +0300)
qcsrc/server/w_hagar.qc

index 4643fa6803df2aa87565256fed2fbda7e6591103..760e6cf353895eda9388e9080e09895ca8001c6e 100644 (file)
@@ -170,7 +170,7 @@ void W_Hagar_Attack2_Load (void)
                missile.touch = W_Hagar_Touch;
                missile.use = W_Hagar_Explode;
                missile.think = adaptor_think2use_hittype_splash;
-               //missile.nextthink = time + autocvar_g_balance_hagar_secondary_lifetime;
+               missile.nextthink = time + autocvar_g_balance_hagar_secondary_lifetime_min + random() * autocvar_g_balance_hagar_secondary_lifetime_rand;
                PROJECTILE_MAKETRIGGER(missile);
                missile.projectiledeathtype = WEP_HAGAR;
                setorigin (missile, w_shotorg);