]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
tuba has a very small refire rate, so fix some false positives of the fire auditing
authorRudolf Polzer <divverent@xonotic.org>
Thu, 22 Sep 2011 04:39:49 +0000 (06:39 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 22 Sep 2011 04:39:49 +0000 (06:39 +0200)
qcsrc/server/bot/scripting.qc

index 005d9ed881d46ead5e157421f22fed67fe83e746..63151cac1b8e845e4be1e26663984dc24661775a 100644 (file)
@@ -1095,6 +1095,7 @@ float bot_cmd_sound()
        return CMD_STATUS_FINISHED;
 }
 
+.entity tuba_note;
 float bot_cmd_debug_assert_canfire()
 {
        float f;
@@ -1116,6 +1117,14 @@ float bot_cmd_debug_assert_canfire()
                        print("Bot wants to fire, inhibited by ATTACK_FINISHED\n");
                }
        }
+       else if(self.tuba_note)
+       {
+               if(f)
+               {
+                       self.colormod = '8 0 0';
+                       print("Bot wants to fire, bot still has an active tuba note\n");
+               }
+       }
        else
        {
                if(!f)