; Burnice

; Constants -------------------------

[Constants]
global $active
global persist $main = 0
global persist $skirt = 0
global persist $hair = 0
global persist $tank = 0
global $creditinfo = 0

[KeySwap0]
condition = $active == 1
key = ctrl no_shift no_alt VK_RIGHT
back = ctrl no_shift no_alt VK_LEFT
type = cycle
$main = 0,1,2,3,4,5

[KeySwap1]
condition = $active == 1
Key = ctrl no_shift no_alt VK_UP
type = cycle
$hair = 0,1

[KeySwap2]
condition = $active == 1
Key = ctrl no_shift no_alt VK_DOWN
type = cycle
$skirt = 0,1,2,3

[KeySwap3]
condition = $active == 1
Key = ctrl shift no_alt VK_UP
type = cycle
$tank = 0,1

[Present]
post $active = 0
run = CommandListCreditInfo

; Overrides -------------------------

[TextureOverrideBurniceHairPosition]
hash = 511006ba
handling = skip
vb0 = ResourceBurniceHairPosition
vb2 = ResourceBurniceHairBlend
draw = 9121,0
$active = 1

[TextureOverrideBurniceHairTexcoord]
hash = c882e6eb
vb1 = ResourceBurniceHairTexcoord

[TextureOverrideBurniceHairVertexLimitRaise]
hash = c22b4efe
; override_vertex_count = 6465
; override_byte_stride = 96

[TextureOverrideBurniceBodyPosition]
hash = 208d5e15
handling = skip
vb0 = ResourceBurniceBodyPosition
vb2 = ResourceBurniceBodyBlend
draw = 58252,0
$active = 1

[TextureOverrideBurniceBodyTexcoord]
hash = 35826de5
vb1 = ResourceBurniceBodyTexcoord

[TextureOverrideBurniceBodyVertexLimitRaise]
hash = be10c4bb
; override_vertex_count = 58252
; override_byte_stride = 92

[TextureOverrideBurniceWeaponPosition]
hash = 36821275
handling = skip
vb0 = ResourceBurniceWeaponPosition
vb2 = ResourceBurniceWeaponBlend
draw = 8602,0
$active = 1

[TextureOverrideBurniceWeaponTexcoord]
hash = 2981a076
vb1 = ResourceBurniceWeaponTexcoord

[TextureOverrideBurniceWeaponVertexLimitRaise]
hash = c7e24774
; override_vertex_count = 8602
; override_byte_stride = 92

[TextureOverrideBurniceHairIB]
hash = f779fb81
handling = skip

[TextureOverrideBurniceHairA]
hash = f779fb81
match_first_index = 0
run = CommandListSkinTexture
ib = ResourceBurniceHairAIB
; BurniceHairA
	; BurniceHairA (28)
	drawindexed = 60, 60, 0

[TextureOverrideBurniceHairADiffuse]
hash = 609b50a9
this = ResourceBurniceHairADiffuse

[TextureOverrideBurnice.HairA.Diffuse.1024]
hash = 4568c6b3
this = ResourceBurniceHairADiffuse

[TextureOverrideBurniceHairANormalMap]
hash = 438cf629
this = ResourceBurniceHairANormalMap

[TextureOverrideBurnice.HairA.NormalMap.1024]
hash = 0050e0d2
this = ResourceBurniceHairANormalMap

[TextureOverrideBurniceHairALightMap]
hash = bf0042b9
this = ResourceBurniceHairALightMap

[TextureOverrideBurnice.HairA.LightMap.1024]
hash = 08770e8c
this = ResourceBurniceHairALightMap

[TextureOverrideBurniceHairAMaterialMap]
hash = 5f2840f1
this = ResourceBurniceHairAMaterialMap

[TextureOverrideBurnice.HairA.MaterialMap.1024]
hash = 3ae3ea20
this = ResourceBurniceHairAMaterialMap

[TextureOverrideBurniceHairB]
hash = f779fb81
match_first_index = 60
run = CommandListSkinTexture
ib = ResourceBurniceHairBIB
; BurniceHairB
	; BurniceHairB (1300)
	drawindexed = 5067, 5067, 0

[TextureOverrideBurniceHairC]
hash = f779fb81
match_first_index = 5127
run = CommandListSkinTexture
ib = ResourceBurniceHairCIB
; BurniceHairC
	; BurniceHairC (1876)
	drawindexed = 7002, 7002, 0

	; Pigtails (2276)
	if $hair == 0
		drawindexed = 7620, 14004, 0
	else if $hair == 1
	endif

	; SkirtC (437)
	if $skirt == 0
		drawindexed = 1761, 21624, 0
	else if $skirt == 1
		drawindexed = 1761, 21624, 0
	else if $skirt == 2
	else if $skirt == 3
	endif

[TextureOverrideBurniceBodyIB]
hash = af63e974
handling = skip

[TextureOverrideBurniceBodyA]
hash = af63e974
match_first_index = 0
run = CommandListSkinTexture
ib = ResourceBurniceBodyAIB
; BurniceBodyA
	; Arms (492)
	if $main == 0
	else if $main == 1
		drawindexed = 2496, 38448, 0
	else if $main == 2
		drawindexed = 2496, 38448, 0
	else if $main == 3
	else if $main == 4
		drawindexed = 2496, 38448, 0
	else if $main == 5
		drawindexed = 2496, 38448, 0
	endif


	; Arms2 (774)
	if $main == 0
	else if $main == 1
	else if $main == 2
		drawindexed = 4176, 40944, 0
	else if $main == 3
	else if $main == 4
	else if $main == 5
		drawindexed = 4176, 40944, 0
	endif


	; BodyLower (3784)
	if $skirt == 0
	else if $skirt == 1
		drawindexed = 20400, 45120, 0
	else if $skirt == 2
	else if $skirt == 3
		drawindexed = 20400, 45120, 0
	endif

	; BodyLowerTH (3784)
	if $skirt == 0
		drawindexed = 20400, 65520, 0
	else if $skirt == 1
	else if $skirt == 2
		drawindexed = 20400, 65520, 0
	else if $skirt == 3
	endif

	; BodyUpper (4489)
	if $main == 0
		drawindexed = 24240, 110160, 0
	else if $main == 1
		drawindexed = 24240, 110160, 0
	else if $main == 2
		drawindexed = 24240, 110160, 0
	else if $main == 3
	else if $main == 4
	else if $main == 5
	endif

	; BodyUpperBooba (4486)
	if $main == 0
	else if $main == 1
	else if $main == 2
	else if $main == 3
		drawindexed = 24240, 85920, 0
	else if $main == 4
		drawindexed = 24240, 85920, 0
	else if $main == 5
		drawindexed = 24240, 85920, 0
	endif


	; Boots (6758)
	if $skirt == 0
		drawindexed = 31080, 134400, 0
	else if $skirt == 1
	else if $skirt == 2
		drawindexed = 31080, 134400, 0
	else if $skirt == 3
	endif

	; BurniceBodyA (7584)
	drawindexed = 38448, 165480, 0

	; Gloves (2502)
	if $main == 0
		drawindexed = 13200, 203928, 0
	else if $main == 1
		drawindexed = 13200, 203928, 0
	else if $main == 2
	else if $main == 3
		drawindexed = 13200, 203928, 0
	else if $main == 4
		drawindexed = 13200, 203928, 0
	else if $main == 5
	endif

	; Jacket (3441)
	if $main == 0
		drawindexed = 13206, 217128, 0
	else if $main == 1
	else if $main == 2
	else if $main == 3
		drawindexed = 13206, 217128, 0
	else if $main == 4
	else if $main == 5
	endif

	; Legs (2509)
	if $skirt == 0
	else if $skirt == 1
		drawindexed = 12792, 230334, 0
	else if $skirt == 2
	else if $skirt == 3
		drawindexed = 12792, 230334, 0
	endif

	; Leotard (5020)
	if $main == 0
		drawindexed = 27552, 243126, 0
	else if $main == 1
		drawindexed = 27552, 243126, 0
	else if $main == 2
		drawindexed = 27552, 243126, 0
	else if $main == 3
	else if $main == 4
	else if $main == 5
	endif

	; SkirtA (671)
	if $skirt == 0
		drawindexed = 1665, 270678, 0
	else if $skirt == 1
		drawindexed = 1665, 270678, 0
	else if $skirt == 2
	else if $skirt == 3
	endif

	; Top (2187)
	if $main == 0
	else if $main == 1
	else if $main == 2
	else if $main == 3
		drawindexed = 9861, 272343, 0
	else if $main == 4
		drawindexed = 9861, 272343, 0
	else if $main == 5
	endif

	; TopBOOBA (2187)
	if $main == 0
		drawindexed = 9861, 282204, 0
	else if $main == 1
		drawindexed = 9861, 282204, 0
	else if $main == 2
	else if $main == 3
	else if $main == 4
	else if $main == 5
	endif

[TextureOverrideBurniceBodyADiffuse]
hash = 50bf6521
this = ResourceBurniceBodyADiffuse

[TextureOverrideBurnice.BodyA.Diffuse.1024]
hash = f0e67001
this = ResourceBurniceBodyADiffuse

[TextureOverrideBurniceBodyANormalMap]
hash = 0f2c69e2
this = ResourceBurniceBodyANormalMap

[TextureOverrideBurnice.BodyA.NormalMap.1024]
hash = 0c4f338a
this = ResourceBurniceBodyANormalMap

[TextureOverrideBurniceBodyALightMap]
hash = f4e05ee7
this = ResourceBurniceBodyALightMap

[TextureOverrideBurnice.BodyA.LightMap.1024]
hash = 0a3ba8ac
this = ResourceBurniceBodyALightMap

[TextureOverrideBurniceBodyAMaterialMap]
hash = c321481d
this = ResourceBurniceBodyAMaterialMap

[TextureOverrideBurnice.BodyA.MaterialMap.1024]
hash = e37e7622
this = ResourceBurniceBodyAMaterialMap

[TextureOverrideBurniceWeaponIB]
hash = 6b08674c
handling = skip

[TextureOverrideBurniceWeaponA]
hash = 6b08674c
match_first_index = 0
run = CommandListSkinTexture
ib = ResourceBurniceWeaponAIB
; BurniceWeaponA (2924)
drawindexed = 8418, 0, 0
; BurniceWeaponA
	; BurniceWeaponA (2924)
	drawindexed = 8418, 8418, 0
	; GasTanks (2754)
	if $tank == 0
		drawindexed = 8016, 16836, 0
	else if $tank == 1
	endif

[ShaderOverrideWeaponA]
hash = a7846d40dd58b8f3
if $tank == 0
else if $tank == 1
	handling = skip
endif

[ShaderOverrideWeaponA2]
hash = 92f0094df159ca0c
if $tank == 0
else if $tank == 1
	handling = skip
endif

[ShaderOverrideWeaponA3]
hash = 6d6980c213cc4754
if $tank == 0
else if $tank == 1
	handling = skip
endif

[TextureOverrideBurniceWeaponADiffuse]
hash = 5f6615b0
this = ResourceBurniceWeaponADiffuse

[TextureOverrideBurniceWeaponANormalMap]
hash = ebac056e
this = ResourceBurniceWeaponANormalMap

[TextureOverrideBurniceWeaponALightMap]
hash = 5ef426d0
this = ResourceBurniceWeaponALightMap

[TextureOverrideBurniceWeaponAMaterialMap]
hash = 9b7dfc16
this = ResourceBurniceWeaponAMaterialMap

[TextureOverrideBurniceFaceHeadIB]
hash = b3f6fcb3
run = CommandListSkinTexture

[TextureOverrideBurniceFaceHeadDiffuse]
hash = e338bb82
this = ResourceBurniceFaceHeadDiffuse

[TextureOverrideBurnice.HeadA.Diffuse.1024]
hash = c9c87bb1
this = ResourceBurniceFaceHeadDiffuse


; CommandList -----------------------

[CommandListCreditInfo]
if $creditinfo == 0 && $active == 1
    pre Resource\ShaderFixes\help.ini\Notification = ResourceCreditInfo
    pre run = CustomShader\ShaderFixes\help.ini\FormatText
    pre $\ShaderFixes\help.ini\notification_timeout = time + 5.0
    $creditinfo = 1
endif

; Resources -------------------------

[ResourceBurniceHairPosition]
type = Buffer
stride = 40
filename = BurniceHairPosition.buf

[ResourceBurniceHairBlend]
type = Buffer
stride = 32
filename = BurniceHairBlend.buf

[ResourceBurniceHairTexcoord]
type = Buffer
stride = 24
filename = BurniceHairTexcoord.buf

[ResourceBurniceBodyPosition]
type = Buffer
stride = 40
filename = BurniceBodyPosition.buf

[ResourceBurniceBodyBlend]
type = Buffer
stride = 32
filename = BurniceBodyBlend.buf

[ResourceBurniceBodyTexcoord]
type = Buffer
stride = 20
filename = BurniceBodyTexcoord.buf

[ResourceBurniceWeaponPosition]
type = Buffer
stride = 40
filename = BurniceWeaponPosition.buf

[ResourceBurniceWeaponBlend]
type = Buffer
stride = 32
filename = BurniceWeaponBlend.buf

[ResourceBurniceWeaponTexcoord]
type = Buffer
stride = 20
filename = BurniceWeaponTexcoord.buf

[ResourceBurniceHairAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BurniceHairA.ib

[ResourceBurniceHairBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BurniceHairB.ib

[ResourceBurniceHairCIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BurniceHairC.ib

[ResourceBurniceBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BurniceBodyA.ib

[ResourceBurniceWeaponAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = BurniceWeaponA.ib

[ResourceBurniceHairADiffuse]
filename = BurniceHairADiffuse.dds

[ResourceBurniceHairANormalMap]
filename = BurniceHairANormalMap.dds

[ResourceBurniceHairALightMap]
filename = BurniceHairALightMap.dds

[ResourceBurniceHairAMaterialMap]
filename = BurniceHairAMaterialMap.dds

[ResourceBurniceBodyADiffuse]
filename = BurniceBodyADiffuse.dds

[ResourceBurniceBodyANormalMap]
filename = BurniceBodyANormalMap.dds

[ResourceBurniceBodyALightMap]
filename = BurniceBodyALightMap.dds

[ResourceBurniceBodyAMaterialMap]
filename = BurniceBodyAMaterialMap.dds

[ResourceBurniceWeaponADiffuse]
filename = BurniceWeaponADiffuse.dds

[ResourceBurniceWeaponANormalMap]
filename = BurniceWeaponANormalMap.jpg

[ResourceBurniceWeaponALightMap]
filename = BurniceWeaponALightMap.dds

[ResourceBurniceWeaponAMaterialMap]
filename = BurniceWeaponAMaterialMap.dds

[ResourceBurniceFaceHeadDiffuse]
filename = BurniceFaceHeadDiffuse.dds

[ResourceCreditInfo]
type = Buffer
data = "Created by Hazeker"

; .ini generated by XXMI (XX-Model-Importer)
; If you have any issues or find any bugs, please open a ticket at https://github.com/leotorrez/XXMI-Tools/issues