"""
noaim script by tobi9sc
"""

def apply_script(protocol,connection,config):
   class noaimConnection(connection):
      def on_secondary_fire_set(self, secondary):
         if self.hp>=10:
            self.hit(5)
            self.send_chat("Avoid using ironsight!")
         return connection.on_secondary_fire_set(self, secondary)

   return protocol, noaimConnection