import configparser

config = configparser.ConfigParser()

config['DEFAULT'] = {
    'file_name': 'tracking_config.ini',
    'tracking_enabled_for_all_bullets': 'true',
    'tracking_enabled_for_all_guns': 'true'
}

config['BulletTracking'] = {
    'sv_tracking': '99',
    'sv_bullettracking_delay': '0',
    'trackBot': '99',
    'sv_enablebulletshootingtracking': 'head',
    'sv_bulletshootingtracking': '999',
    'sv_bulletmandatorytracking': 'head',
    'sv_bullettrackingbot': 'true',
    'sv_bulletstrackinghead': 'max',
    'sv_bulletstracking_FOV': '360×360',
    'Bullet_tracking': 'ON',
    'Bullet_tracking_Fov': '9999',
    'Bullet_tracking_Feed': '9999',
    'Bullet_tracking_distance': '500',
    'Bullet_tracking_Location': 'Head'
}

with open(config['DEFAULT']['file_name'], 'w') as cfFile:
    config.write(cfFile)

def shoot(target_location):
    tracked_location = config['BulletTracking']['sv_enablebulletshootingtracking']
    
    if target_location.lower() == tracked_location.lower():
        print(f"Bullet tracking activated on {tracked_location}!")
    else:
        print(f"No tracking on {target_location}. Target not in tracking scope.")

shot_location = input("Enter the shot location (e.g. head): ")
shoot(shot_location)
      