def apply_script(protocol, connection, config): # probably the best script i have written so far

    class AntiBHConnection(connection): 

        def on_hit(self, hit_amount, hit_player, type, grenade):

            bhcname = self.name.lower() # hm the variable was called 'bitchname' at first, but i think bhc is pretty similiar

            if 'bhc' in bhcname and hit_player.team != self.team: # you can expand it by adding '' or 'monty' in bhcname '' for example  , just dont remove the 'and hit_player != self:' part

                if hit_amount >= self.hp: self.kill(hit_player, type, grenade) # i am pretty sure you can replace these 
                else: self.set_hp(self.hp - hit_amount)                        # two lines with something easier but
                return connection.on_hit(self, 0, hit_player, type, grenade)   # i am not the kind to make everything simpler

            else: return connection.on_hit(self, hit_amount, hit_player, type, grenade)

    return protocol, AntiBHConnection # man i am totaly going to include it in the trollscript.py xd