]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
even more verbose on bot script timing errors
authorRudolf Polzer <divverent@alientrap.org>
Thu, 19 Jan 2012 19:00:15 +0000 (20:00 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 19 Jan 2012 19:00:15 +0000 (20:00 +0100)
qcsrc/server/bot/scripting.qc

index b0bda40e6487a3203e90d1b3ba2aa4e42c668cdb..63a6cb336d4054c90d3aa0283be057005139bed0 100644 (file)
@@ -1114,7 +1114,7 @@ float bot_cmd_debug_assert_canfire()
                if(f)
                {
                        self.colormod = '8 0 8';
-                       print("Bot ", self.netname, " using ", self.weaponname, " wants to fire, inhibited by ATTACK_FINISHED\n");
+                       print("Bot ", self.netname, " using ", self.weaponname, " wants to fire, inhibited by ATTACK_FINISHED (", ftos(ATTACK_FINISHED(self) - time), " seconds left)\n");
                }
        }
        else if(self.tuba_note)
@@ -1130,7 +1130,7 @@ float bot_cmd_debug_assert_canfire()
                if(!f)
                {
                        self.colormod = '8 8 0';
-                       print("Bot ", self.netname, " using ", self.weaponname, " thinks it has fired, but apparently did not\n");
+                       print("Bot ", self.netname, " using ", self.weaponname, " thinks it has fired, but apparently did not; ATTACK_FINISHED says ", ftos(ATTACK_FINISHED(self) - time), " seconds left\n");
                }
        }