; Pyrois

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

[Constants]
global $active = 0
global $creditinfo = 0
global persist $neck = 0
global persist $tits = 0
global persist $arm = 0
global persist $pauldrons = 0
global persist $crotch = 0

[Keyneck]
condition = $active == 1
key = 6
type = cycle
$neck = 0,1
$creditinfo = 0

[Keytits]
condition = $active == 1
key = 7
type = cycle
$tits = 0,1,2,3,4
$creditinfo = 0

[Keyarm]
condition = $active == 1
key = 8
type = cycle
$arm = 0,1,2
$creditinfo = 0

[Keypauldrons]
condition = $active == 1
key = 9
type = cycle
$pauldrons = 0,1
$creditinfo = 0

[Keycrotch]
condition = $active == 1
key = 0
type = cycle
$crotch = 0,1,2,3
$creditinfo = 0

[Present]
post $active = 0
run = CommandListCreditInfo

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

[TextureOverridePyroisBody1Blend]
hash = 789800b3
handling = skip
vb2 = ResourcePyroisBody1Blend
if DRAW_TYPE == 1
	vb0 = ResourcePyroisBody1Position
	draw = 26386, 0

	$active = 1
endif

[TextureOverridePyroisBody1Texcoord]
hash = 337fe1ee
vb1 = ResourcePyroisBody1Texcoord

[TextureOverridePyroisBody1VertexLimitRaise]
hash = 5bbaca72
override_vertex_count = 26386
override_byte_stride = 40

[TextureOverridePyroisBody2Blend]
hash = b502aa23
handling = skip
vb2 = ResourcePyroisBody2Blend
if DRAW_TYPE == 1
	vb0 = ResourcePyroisBody2Position
	draw = 8570, 0

	$active = 1
endif

[TextureOverridePyroisBody2Texcoord]
hash = 764bcab3
vb1 = ResourcePyroisBody2Texcoord

[TextureOverridePyroisBody2VertexLimitRaise]
hash = 6204c171
override_vertex_count = 8570
override_byte_stride = 40

[TextureOverridePyroisArmBlend]
hash = a946c036
handling = skip
vb2 = ResourcePyroisArmBlend
if DRAW_TYPE == 1
	vb0 = ResourcePyroisArmPosition
	draw = 1173, 0

	$active = 1
endif

[TextureOverridePyroisArmTexcoord]
hash = 1abe00b9
vb1 = ResourcePyroisArmTexcoord

[TextureOverridePyroisArmVertexLimitRaise]
hash = 8e155d0d
override_vertex_count = 1173
override_byte_stride = 40

[TextureOverridePyroisBody1IB]
hash = d347d859
handling = skip

[TextureOverridePyroisBody1A]
hash = d347d859
match_first_index = 0
ib = ResourcePyroisBody1AIB
Resource\ZZMI\Alpha1 = ref ResourcePyroisBody1AAlpha1
Resource\ZZMI\Alpha2 = ref ResourcePyroisBody1AAlpha2
Resource\ZZMI\Diffuse = ref ResourcePyroisBody1ADiffuse
Resource\ZZMI\NormalMap = ref ResourcePyroisBody1ANormalMap
Resource\ZZMI\LightMap = ref ResourcePyroisBody1ALightMap
Resource\ZZMI\MaterialMap = ref ResourcePyroisBody1AMaterialMap
Resource\ZZMI\Alpha1 = ref ResourcePyroisBody1AAlpha1
run = CommandList\ZZMI\SetTextures
; Pyrois Body (8912)
drawindexed = 35607, 19296, 0

if $tits == 0
; Pyrois Breast Cups (2035)
drawindexed = 15948, 56055, 0
elif $tits == 1
; Pyrois Breast Cups.Exposed (4004)
drawindexed = 15948, 72003, 0
; Pyrois Body.Nipples (209)
drawindexed = 1068, 54987, 0
; Pyrois Nipple Stars (1292)
drawindexed = 6960, 99597, 0
elif $tits == 2
; Pyrois Star Nipple Pasty (484)
drawindexed = 2496, 108357, 0
elif $tits == 3
; Pyrois Body.Nipples (209)
drawindexed = 1068, 54987, 0
elif $tits == 4
; Pyrois Body.Nipples (209)
drawindexed = 1068, 54987, 0
; Pyrois Nipple Stars (1292)
drawindexed = 6960, 99597, 0
endif

; Pyrois Head (1215)
drawindexed = 4740, 93645, 0

if $neck == 0
; Pyrois Star Choker (588)
drawindexed = 1800, 106557, 0
endif

run = CommandListBody2
; Pyrois Knee Armor (314)
drawindexed = 1212, 98385, 0
run = CommandListBody1

if $crotch == 0
run = CommandListBody2
; Pyrois Crotch Plate (785)
drawindexed = 2847, 87951, 0
run = CommandListBody1
elif $crotch == 1
run = CommandListBody2
; Pyrois Crotch Plate.Sparse (793)
drawindexed = 2847, 90798, 0
run = CommandListBody1
; ; Pyrois Body.Cleft (25)
; drawindexed = 84, 54903, 0
run = CommandListBlussy
; Pyrois Blussy (3451)
drawindexed = 19296, 0, 0
run = CommandListBody1
elif $crotch == 2
run = CommandListBody2
; Pyrois Star Pussy Pasty (252)
drawindexed = 876, 110853, 0
run = CommandListBody1
run = CommandListBlussy
; Pyrois Blussy (3451)
drawindexed = 19296, 0, 0
run = CommandListBody1
elif $crotch == 3
run = CommandListBlussy
; Pyrois Blussy (3451)
drawindexed = 19296, 0, 0
run = CommandListBody1
endif

[TextureOverridePyroisBody2IB]
hash = d98c8923
handling = skip

[TextureOverridePyroisBody2A]
hash = d98c8923
match_first_index = 0
ib = ResourcePyroisBody2AIB
Resource\ZZMI\Alpha1 = ref ResourcePyroisBody2AAlpha1
Resource\ZZMI\Diffuse = ref ResourcePyroisBody2ADiffuse
Resource\ZZMI\NormalMap = ref ResourcePyroisBody2ANormalMap
Resource\ZZMI\LightMap = ref ResourcePyroisBody2ALightMap
Resource\ZZMI\MaterialMap = ref ResourcePyroisBody2AMaterialMap
run = CommandList\ZZMI\SetTextures
; Pyrois Arm Armor (1984)
drawindexed = 7947, 0, 0

if $arm == 0
; Pyrois Blue Arm Armor (1114)
drawindexed = 3840, 7947, 0
elif $arm == 1
; Pyrois Blue Arm Stars (543)
drawindexed = 2112, 11787, 0
elif $arm == 2
endif

; Pyrois Hair.Female (2961)
drawindexed = 11340, 13899, 0

if $pauldrons == 0
; Pyrois Pauldrons (1824)
drawindexed = 7164, 25239, 0
endif

[TextureOverridePyroisArmIB]
hash = 0a7c1023
handling = skip

[TextureOverridePyroisArmA]
hash = 0a7c1023
match_first_index = 0
ib = ResourcePyroisArmAIB
Resource\ZZMI\Alpha1 = ref ResourcePyroisArmAAlpha1
Resource\ZZMI\Alpha2 = ref ResourcePyroisArmAAlpha2
Resource\ZZMI\Diffuse = ref ResourcePyroisArmADiffuse
Resource\ZZMI\NormalMap = ref ResourcePyroisArmANormalMap
Resource\ZZMI\LightMap = ref ResourcePyroisArmALightMap
Resource\ZZMI\MaterialMap = ref ResourcePyroisArmAMaterialMap
Resource\ZZMI\Alpha1 = ref ResourcePyroisArmAAlpha1
run = CommandList\ZZMI\SetTextures
; Pyrois Blue Arm (1109)
drawindexed = 5256, 0, 0
; Pyrois Blue Chest Orb (64)
drawindexed = 258, 5256, 0


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

[CommandListCreditInfo]
if $creditinfo == 0 && $active > 0
	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

[CommandListBody1]
Resource\ZZMI\Alpha1 = ref ResourcePyroisBody1AAlpha1
Resource\ZZMI\Alpha2 = ref ResourcePyroisBody1AAlpha2
Resource\ZZMI\Diffuse = ref ResourcePyroisBody1ADiffuse
Resource\ZZMI\NormalMap = ref ResourcePyroisBody1ANormalMap
Resource\ZZMI\LightMap = ref ResourcePyroisBody1ALightMap
Resource\ZZMI\MaterialMap = ref ResourcePyroisBody1AMaterialMap
Resource\ZZMI\Alpha1 = ref ResourcePyroisBody1AAlpha1
run = CommandList\ZZMI\SetTextures

[CommandListBlussy]
Resource\ZZMI\Alpha1 = ref ResourcePyroisBlussyAlpha1
Resource\ZZMI\Alpha2 = ref ResourcePyroisBlussyAlpha2
Resource\ZZMI\Diffuse = ref ResourcePyroisBlussyDiffuse
Resource\ZZMI\NormalMap = ref ResourcePyroisBlussyNormalMap
Resource\ZZMI\LightMap = ref ResourcePyroisBlussyLightMap
Resource\ZZMI\MaterialMap = ref ResourcePyroisBlussyMaterialMap
Resource\ZZMI\Alpha1 = ref ResourcePyroisBlussyAlpha1
run = CommandList\ZZMI\SetTextures

[CommandListBody2]
Resource\ZZMI\Alpha1 = ref ResourcePyroisBody2AAlpha1
Resource\ZZMI\Diffuse = ref ResourcePyroisBody2ADiffuse
Resource\ZZMI\NormalMap = ref ResourcePyroisBody2ANormalMap
Resource\ZZMI\LightMap = ref ResourcePyroisBody2ALightMap
Resource\ZZMI\MaterialMap = ref ResourcePyroisBody2AMaterialMap
run = CommandList\ZZMI\SetTextures

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

[ResourcePyroisBody1Position]
type = Buffer
stride = 40
filename = PyroisBody1Position.buf

[ResourcePyroisBody1Blend]
type = Buffer
stride = 32
filename = PyroisBody1Blend.buf

[ResourcePyroisBody1Texcoord]
type = Buffer
stride = 20
filename = PyroisBody1Texcoord.buf

[ResourcePyroisBody1AIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = PyroisBody1A.ib

[ResourcePyroisBody2Position]
type = Buffer
stride = 40
filename = PyroisBody2Position.buf

[ResourcePyroisBody2Blend]
type = Buffer
stride = 32
filename = PyroisBody2Blend.buf

[ResourcePyroisBody2Texcoord]
type = Buffer
stride = 20
filename = PyroisBody2Texcoord.buf

[ResourcePyroisBody2AIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = PyroisBody2A.ib

[ResourcePyroisArmPosition]
type = Buffer
stride = 40
filename = PyroisArmPosition.buf

[ResourcePyroisArmBlend]
type = Buffer
stride = 32
filename = PyroisArmBlend.buf

[ResourcePyroisArmTexcoord]
type = Buffer
stride = 20
filename = PyroisArmTexcoord.buf

[ResourcePyroisArmAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = PyroisArmA.ib

[ResourcePyroisBody1AAlpha1]
filename = PyroisBody1AAlpha1.dds

[ResourcePyroisBody1AAlpha2]
filename = PyroisBody1AAlpha2.dds

[ResourcePyroisBody1ADiffuse]
filename = PyroisBody1ADiffuse.dds

[ResourcePyroisBody1ANormalMap]
filename = PyroisBody1ANormalMap.dds

[ResourcePyroisBody1ALightMap]
filename = PyroisBody1ALightMap.dds

[ResourcePyroisBody1AMaterialMap]
filename = PyroisBody1AMaterialMap.dds

[ResourcePyroisBody1AAlpha1]
filename = PyroisBody1AAlpha1.dds

[ResourcePyroisBody2AAlpha1]
filename = PyroisBody2AAlpha1.dds

[ResourcePyroisBody2ADiffuse]
filename = PyroisBody2ADiffuse.dds

[ResourcePyroisBody2ANormalMap]
filename = PyroisBody2ANormalMap.dds

[ResourcePyroisBody2ALightMap]
filename = PyroisBody2ALightMap.dds

[ResourcePyroisBody2AMaterialMap]
filename = PyroisBody2AMaterialMap.dds

[ResourcePyroisArmAAlpha1]
filename = PyroisArmAAlpha1.dds

[ResourcePyroisArmAAlpha2]
filename = PyroisArmAAlpha2.dds

[ResourcePyroisArmADiffuse]
filename = PyroisArmADiffuse.dds

[ResourcePyroisArmANormalMap]
filename = PyroisBody1ANormalMap.dds

[ResourcePyroisArmALightMap]
filename = PyroisArmALightMap.dds

[ResourcePyroisArmAMaterialMap]
filename = PyroisArmAMaterialMap.dds

[ResourcePyroisArmAAlpha1]
filename = PyroisArmAAlpha1.dds


[ResourcePyroisBlussyAlpha1]
filename = PyroisBlussyAlpha1.dds
[ResourcePyroisBlussyAlpha2]
filename = PyroisBlussyAlpha2.dds
[ResourcePyroisBlussyDiffuse]
filename = PyroisBlussyDiffuse.dds
[ResourcePyroisBlussyNormalMap]
filename = PyroisBlussyNormalMap.dds
[ResourcePyroisBlussyLightMap]
filename = PyroisBlussyLightMap.dds
[ResourcePyroisBlussyMaterialMap]
filename = PyroisBlussyMaterialMap.dds


[ResourceCreditInfo]
type = Buffer
data = "Created by www.patreon.com/lewd_lad"

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



;NEW AND UNUSED

