AI-Aimbot icon indicating copy to clipboard operation
AI-Aimbot copied to clipboard

3rd person shooters,

Open 1-Negative-1 opened this issue 1 year ago • 0 comments

could we get it implemented that a character in a 3rd person game is discounted from the algorithm? another program I used to use had this line to prevent such a thing. "if len(results.xyxy[0]) != 0: #player detected least_crosshair_dist = closest_detection = player_in_frame = False for *box, conf, cls in results.xyxy[0]: #iterate over each player detected x1y1 = [int(x.item()) for x in box[:2]] x2y2 = [int(x.item()) for x in box[2:]] x1, y1, x2, y2, conf = *x1y1, *x2y2, conf.item() height = y2 - y1 relative_head_X, relative_head_Y = int((x1 + x2)/2), int((y1 + y2)/2 - height/2.7) #offset to roughly approximate the head using a ratio of the height own_player = x1 < 15 or (x1 < self.box_constant/5 and y2 > self.box_constant/1.2) #helps ensure that your own player is not regarded as a valid detection"

Just an idea ty

1-Negative-1 avatar Sep 29 '22 23:09 1-Negative-1