]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
flip bot_primary_fireballmooth boolean so bots are able to fire fireball alt fire...
authorDr. Jaska <drjaska83@gmail.com>
Thu, 29 Dec 2022 16:49:15 +0000 (16:49 +0000)
committerterencehill <piuntn@gmail.com>
Thu, 29 Dec 2022 16:49:15 +0000 (16:49 +0000)
.gitlab-ci.yml
qcsrc/common/weapons/weapon/fireball.qc

index 62a9fa393ee55019a7f3601fbe9a473ea6fe8b31..351047359f57c0c8b70c878410e684cb525f1ae3 100644 (file)
@@ -69,7 +69,7 @@ test_sv_game:
     - wget -nv -O data/maps/stormkeep.waypoints https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/stormkeep.waypoints\r
     - wget -nv -O data/maps/stormkeep.waypoints.cache https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/stormkeep.waypoints.cache\r
 \r
-    - EXPECT=4c834aa9b5950ffe25deec1880f21641\r
+    - EXPECT=ed5f16b28f1662f147d51b44cbc4edf2\r
     - HASH=$(${ENGINE} +timestamps 1 +exec serverbench.cfg\r
       | tee /dev/stderr\r
       | sed -e 's,^\[[^]]*\] ,,'\r
index 391aa7294c2a24b6170acc68ba312f2e2680cf43..363b1d694141a6e571b16060722c77fbdc5c1811 100644 (file)
@@ -345,7 +345,7 @@ METHOD(Fireball, wr_aim, void(entity thiswep, entity actor, .entity weaponentity
         if(bot_aim(actor, weaponentity, WEP_CVAR_PRI(fireball, speed), 0, WEP_CVAR_PRI(fireball, lifetime), false, false))
         {
             PHYS_INPUT_BUTTON_ATCK(actor) = true;
-            if(random() < 0.02) actor.bot_primary_fireballmooth = 0;
+            if(random() < 0.02) actor.bot_primary_fireballmooth = 1;
         }
     }
     else
@@ -353,7 +353,7 @@ METHOD(Fireball, wr_aim, void(entity thiswep, entity actor, .entity weaponentity
         if(bot_aim(actor, weaponentity, WEP_CVAR_SEC(fireball, speed), WEP_CVAR_SEC(fireball, speed_up), WEP_CVAR_SEC(fireball, lifetime), true, false))
         {
             PHYS_INPUT_BUTTON_ATCK2(actor) = true;
-            if(random() < 0.01) actor.bot_primary_fireballmooth = 1;
+            if(random() < 0.01) actor.bot_primary_fireballmooth = 0;
         }
     }
 }