# 武器配置字典
weapon_configs = {
    "M416": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "M338": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "HoneyBadger": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "PP19Bizon": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "Thompson": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "M762": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "AKM": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "AUG": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "Groza": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "Vector": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "M16A4": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "MK14": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "MG3": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "G36C": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
    "UMP45": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    },
        "UZI": {
        "BulletTracking": 1,
        "TrackingStrength": 9999.0,
        "TrackMovingEnemy": 1,
        "BulletLockTarget": 1,
        "BulletLockSpeed": 9999.0,
        "TrackingTarget": "Enemy",
        "TrackThroughSmoke": 1,
        "PriorityHitPart": "Head",
        "CurvedTrajectory": 1,
        "MaxTrackingAngle": 360,
        "MaxTrackingDistance": 150,
        "MinTrackingDistance": 1,
        "TrackInVehicle": 1,
        "TrackAllStatus": 1,
        "AllStatusStrength": 999.0,
        "HipFireAccuracy": 9999.0,
        "CloseRangeHeadshot": 9999.0,
        "LongRangeHeadshot": 9999.0
    }
}

# 使用示例
def get_weapon_config(weapon_name):
    """获取指定武器的配置"""
    return weapon_configs.get(weapon_name, {})

def set_weapon_config(weapon_name, config_dict):
    """设置武器配置"""
    weapon_configs[weapon_name] = config_dict

def print_weapon_config(weapon_name):
    """打印武器配置"""
    config = get_weapon_config(weapon_name)
    if config:
        print(f"{weapon_name}配置:")
        for key, value in config.items():
            print(f"  {key}: {value}")
    else:
        print(f"未找到{weapon_name}的配置")

# 示例使用
if __name__ == "__main__":
    print_weapon_config("M416")
    print("\n" + "="*50 + "\n")
    print_weapon_config("AKM")