"Rocket Flying" mutator: also affect the Mine Layer
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 9 Nov 2010 09:14:43 +0000 (10:14 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 9 Nov 2010 09:14:43 +0000 (10:14 +0100)
qcsrc/server/miscfunctions.qc
qcsrc/server/mutators/mutator_rocketflying.qc

index 08550a15cb393afd259eaeee903e46ba3a555383..b074164a5f5dbd90d0750b56e1e78a214cc37ecf 100644 (file)
@@ -1184,7 +1184,7 @@ void readlevelcvars(void)
                MUTATOR_ADD(mutator_nix);
        if(cvar("g_dodging"))
                MUTATOR_ADD(mutator_dodging);
-       if(cvar("g_rocket_flying") || (cvar("g_balance_rocketlauncher_detonatedelay") == 0 && stof(cvar_defstring("g_balance_rocketlauncher_detonatedelay")) != 0))
+       if(cvar("g_rocket_flying"))
                MUTATOR_ADD(mutator_rocketflying);
 
     g_bugrigs = cvar("g_bugrigs");
index d1957b01f76aaa5fd074d8544fa252b198b37a2b..03a5bde619683445ac5929017ca51ade53936b71 100644 (file)
@@ -1,6 +1,6 @@
 MUTATOR_HOOKFUNCTION(rocketflying_EditProjectile)
 {
-       if(other.classname == "rocket")
+       if(other.classname == "rocket" || other.classname == "mine")
        {
                // kill detonate delay of rockets
                other.spawnshieldtime = time;