]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot skill level 2 for reloading in-hand weapon. Makes more sense
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 12 Feb 2011 00:27:39 +0000 (02:27 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 12 Feb 2011 00:27:39 +0000 (02:27 +0200)
qcsrc/server/bot/havocbot/havocbot.qc

index 7c7392085070df2a9f7a20cecf0592619c4b8aca..f7853a5757089710519b31e26da1d1c2890d6c3b 100644 (file)
@@ -153,7 +153,7 @@ void havocbot_ai()
                entity e;
 
                // we are currently holding a weapon that's not fully loaded, reload it
-               if(skill > 2.5) // bots can only reload held weapons on purpose past this skill
+               if(skill >= 2) // bots can only reload held weapons on purpose past this skill
                if(self.clip_load < self.clip_size && self.weapon)
                        self.impulse = 20; // "press" the reload button, not sure if this is done right