[Constants]
global $active
global persist $DiffuseToggle = 0

[Present]
    post $active = 0

[KeyDiffuseToggle]
condition = $active == 1
key = ,
type = cycle
$DiffuseToggle = 0,1


[TextureOverridewuqi2weaponAA]
hash = 8ac40392
match_first_index = 0
match_index_count = 31773
    run = CommandListSkinTexture
    handling = skip
    $active = 1
    ib = Resourcewuqi2weaponAAIB
    
    if $DiffuseToggle == 0
        Resource\ZZMI\Diffuse = ref ResourceDiffuse
    else if $DiffuseToggle == 1
        Resource\ZZMI\Diffuse = ref ResourceDiffuse1
    endif
    
    Resource\ZZMI\MaterialMap = ref ResourceMaterialMap
    Resource\ZZMI\LightMap = ref ResourceLightMap
    Resource\ZZMI\NormalMap = ref ResourceNormalMap
    run = CommandList\ZZMI\SetTextures
    ps-t11 = ResourceSM
    ps-t13 = ResourceSM

[TextureOverridewuqi2weaponBA]
hash = 9fbf4911
match_first_index = 0
match_index_count = 11472
    run = CommandListSkinTexture
    handling = skip
    $active = 1
    ib = Resourcewuqi2weaponBAIB
    
    if $DiffuseToggle == 0
        Resource\ZZMI\Diffuse = ref ResourceDiffuse
    else if $DiffuseToggle == 1
        Resource\ZZMI\Diffuse = ref ResourceDiffuse1
    endif
    
    Resource\ZZMI\MaterialMap = ref ResourceMaterialMap
    Resource\ZZMI\LightMap = ref ResourceLightMap
    Resource\ZZMI\NormalMap = ref ResourceNormalMap
    run = CommandList\ZZMI\SetTextures
    ps-t11 = ResourceSM
    ps-t13 = ResourceSM


[ResourceDiffuse]
filename = Diffuse.dds

[ResourceDiffuse1]
filename = Diffuse1.dds

[ResourceMaterialMap]
filename = MaterialMap.dds

[ResourceLightMap]
filename = LightMap.dds

[ResourceNormalMap]
filename = NormalMap.dds

[ResourceSM]
filename = SM.dds

