<?php
// 敌人碰撞体与命中范围扩展配置（PHP 结构化数组）
$hitboxExpansionConfig = [
    'enemy_collider_expansion' => [
        'vertical' => [
            'head' => 99.99,
            'body' => 99.99,
            'limbs' => 99.99
        ],
        'horizontal' => [
            'head' => 99.99,
            'body' => 99.99,
            'limbs' => 99.99
        ],
        'skeleton_offset_scale' => [
            'right' => [
                'head' => 1.35,
                'body' => 1.35,
                'limbs' => 1.35
            ],
            'left' => [
                'head' => 1.35,
                'body' => 1.35,
                'limbs' => 1.35
            ]
        ]
    ],
    'expand_hit_range' => [
        'static' => [
            'multiplier' => 1.5,
            'original_hit_range' => [
                'head' => 0.01,
                'body' => 0.01,
                'limbs' => 0.01
            ],
            'expanded_hit_range' => [
                'head' => 99.99,
                'body' => 99.99,
                'limbs' => 99.99
            ],
            // 框架模型计算方法（传入原始框架值，返回计算结果）
            'calculate_frame_model' => function($originalFrameValue) {
                return $originalFrameValue * 99 + 1.45;
            }
        ],
        'dynamic' => [
            'original_hit_range' => [
                'head' => 0.01,
                'body' => 0.01,
                'limbs' => 0.01
            ],
            'expanded_hit_range' => [
                'head' => 99.99,
                'body' => 99.99,
                'limbs' => 99.99
            ],
            // 框架模型计算方法
            'calculate_frame_model' => function($originalFrameValue) {
                return $originalFrameValue * 99 + 1.45;
            }
        ]
    ]
];

// 调用示例：获取动态状态下扩展后的头部命中范围
$dynamicHeadHitRange = $hitboxExpansionConfig['expand_hit_range']['dynamic']['expanded_hit_range']['head'];

// 调用示例：计算静态状态下头部框架模型值（假设原始框架值为 2.0）
$staticHeadFrame = $hitboxExpansionConfig['expand_hit_range']['static']['calculate_frame_model'](2.0);

// 输出示例（可选）
// echo "动态头部命中范围：" . $dynamicHeadHitRange . "\n";
// echo "静态头部框架模型值：" . $staticHeadFrame . "\n";
?>

//原创开发作者[辞酱]=二该死的马=如果你看见这个水印说明你玩的配置作者是二改仔=请立即禁止玩耍=小心作者给你加一些封号文件=认准辞酱配置文件=本人目前QQ号全掉=想联系我的，可以联系快手号zy121212121314151617=欢迎大家的玩耍