; Archer
; By. 소금
; Constants -------------------------

[Constants]
global persist $Body = 0
global persist $Pants = 0

global $active
global $creditinfo = 0

[KeyBody]
condition = $active == 1
key = VK_NUMPAD5
type = cycle
$Body = 0,1


[KeyPants]
condition = $active == 1
key = VK_NUMPAD2
type = cycle
$Pants = 0,1


[Present]
post $active = 0

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


[TextureOverrideArcherSkip]
hash = 989d272f
handling = skip

[TextureOverrideArcherHairBlend]
hash = 3fd32ad3
handling = skip
vb2 = ResourceArcherHairBlend
if DRAW_TYPE == 1
	vb0 = ResourceArcherHairPosition
	draw = 5463,0
elif DRAW_TYPE == 8
	Resource\SRMI\PositionBuffer = ref ResourceArcherHairPositionCS
	Resource\SRMI\BlendBuffer = ref ResourceArcherHairBlendCS
	$\SRMI\vertex_count = 5463
endif
$active = 1

[TextureOverrideArcherHairTexcoord]
hash = efea5ea6
vb1 = ResourceArcherHairTexcoord

[TextureOverrideArcherHairDraw]
hash = 2e6a7e20
override_vertex_count = 5463
override_byte_stride = 40
uav_byte_stride = 4

[TextureOverrideArcherHeadBlend]
hash = d543ca67
handling = skip
vb2 = ResourceArcherHeadBlend
if DRAW_TYPE == 1
	vb0 = ResourceArcherHeadPosition
	draw = 3249,0
elif DRAW_TYPE == 8
	Resource\SRMI\PositionBuffer = ref ResourceArcherHeadPositionCS
	Resource\SRMI\BlendBuffer = ref ResourceArcherHeadBlendCS
	$\SRMI\vertex_count = 3249
endif

[TextureOverrideArcherHeadTexcoord]
hash = 439d8f45
vb1 = ResourceArcherHeadTexcoord

[TextureOverrideArcherHeadDraw]
hash = 7bc40221
override_vertex_count = 3249
override_byte_stride = 40
uav_byte_stride = 4

[TextureOverrideArcherBodyBlend]
hash = e090cbf1
handling = skip
vb2 = ResourceArcherBodyBlend
if DRAW_TYPE == 1
	vb0 = ResourceArcherBodyPosition
	draw = 76756,0
elif DRAW_TYPE == 8
	Resource\SRMI\PositionBuffer = ref ResourceArcherBodyPositionCS
	Resource\SRMI\BlendBuffer = ref ResourceArcherBodyBlendCS
	$\SRMI\vertex_count = 76756
endif

[TextureOverrideArcherBodyTexcoord]
hash = fdd2c686
vb1 = ResourceArcherBodyTexcoord

[TextureOverrideArcherBodyDraw]
hash = 86f86c93
override_vertex_count = 76756
override_byte_stride = 40
uav_byte_stride = 4

[TextureOverrideArcherHairIB]
hash = ff33a4f6
handling = skip

[TextureOverrideArcherHairA]
hash = ff33a4f6
match_first_index = 0
ib = ResourceArcherHairAIB
; ArcherHairA-vb0=29d954e1.txt.006 (5463)
drawindexed = 21483, 0, 0

[TextureOverrideArcherHeadIB]
hash = 2c8d3ad6
handling = skip

[TextureOverrideArcherHeadA]
hash = 2c8d3ad6
match_first_index = 0
ib = ResourceArcherHeadAIB
; ArcherHeadA-vb0=73b50159.txt.013 (3203)
drawindexed = 13950, 0, 0

[TextureOverrideArcherHeadB]
hash = 2c8d3ad6
match_first_index = 12708
ib = ResourceArcherHeadBIB
; ArcherHeadB-vb0=73b50159.txt.002 (52)
drawindexed = 144, 0, 0

[TextureOverrideArcherBodyIB]
hash = 16bd3b44
handling = skip

[TextureOverrideArcherBodyA]
hash = 16bd3b44
match_first_index = 0
ib = ResourceArcherBodyAIB
; ArcherBodyA-vb0=1e28bbed.txt.008 (35029)
drawindexed = 158613, 0, 0
; ArcherBodyA

; Body 
if $Body == 0
	drawindexed = 1932, 158613, 0
	endif

; Pants 
if $Pants == 0
	drawindexed = 94992, 160545, 0
	endif
if $Pants == 1
	drawindexed = 97554, 255537, 0
	endif




[TextureOverrideArcherBodyB]
hash = 16bd3b44
match_first_index = 51537
ib = ResourceArcherBodyBIB
; ArcherBodyB-vb0=1e28bbed.txt.003 (3033)
drawindexed = 12651, 0, 0

[TextureOverrideArcherHairADiffuse]
hash = 33f5ad9e
this = ResourceArcherHairADiffuse

[TextureOverrideArcherHairALightMap]
hash = 216cef66
this = ResourceArcherHairALightMap

[TextureOverrideArcherHeadADiffuse]
hash = 783123d8
this = ResourceArcherHeadADiffuse

[TextureOverrideArcherBodyADiffuse]
hash = 563a2a48
this = ResourceArcherBodyADiffuse

[TextureOverrideArcherBodyALightMap]
hash = 4dfc44f1
this = ResourceArcherBodyALightMap

[TextureOverrideArcherBodyBDiffuse]
hash = 563a2a48
this = ResourceArcherBodyBDiffuse

[TextureOverrideArcherBodyBLightMap]
hash = 4dfc44f1
this = ResourceArcherBodyBLightMap


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


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

[ResourceArcherHairPosition]
type = Buffer
stride = 40
filename = ArcherHairPosition.buf

[ResourceArcherHairBlend]
type = Buffer
stride = 32
filename = ArcherHairBlend.buf

[ResourceArcherHairTexcoord]
type = Buffer
stride = 8
filename = ArcherHairTexcoord.buf

[ResourceArcherHairPositionCS]
type = StructuredBuffer
stride = 40
filename = ArcherHairPosition.buf

[ResourceArcherHairBlendCS]
type = StructuredBuffer
stride = 32
filename = ArcherHairBlend.buf

[ResourceArcherHairAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = ArcherHairA.ib

[ResourceArcherHeadPosition]
type = Buffer
stride = 40
filename = ArcherHeadPosition.buf

[ResourceArcherHeadBlend]
type = Buffer
stride = 32
filename = ArcherHeadBlend.buf

[ResourceArcherHeadTexcoord]
type = Buffer
stride = 8
filename = ArcherHeadTexcoord.buf

[ResourceArcherHeadPositionCS]
type = StructuredBuffer
stride = 40
filename = ArcherHeadPosition.buf

[ResourceArcherHeadBlendCS]
type = StructuredBuffer
stride = 32
filename = ArcherHeadBlend.buf

[ResourceArcherHeadAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = ArcherHeadA.ib

[ResourceArcherHeadBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = ArcherHeadB.ib

[ResourceArcherBodyPosition]
type = Buffer
stride = 40
filename = ArcherBodyPosition.buf

[ResourceArcherBodyBlend]
type = Buffer
stride = 32
filename = ArcherBodyBlend.buf

[ResourceArcherBodyTexcoord]
type = Buffer
stride = 20
filename = ArcherBodyTexcoord.buf

[ResourceArcherBodyPositionCS]
type = StructuredBuffer
stride = 40
filename = ArcherBodyPosition.buf

[ResourceArcherBodyBlendCS]
type = StructuredBuffer
stride = 32
filename = ArcherBodyBlend.buf

[ResourceArcherBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = ArcherBodyA.ib

[ResourceArcherBodyBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = ArcherBodyB.ib

[ResourceArcherHairADiffuse]
filename = ArcherHairADiffuse.dds

[ResourceArcherHairALightMap]
filename = ArcherHairALightMap.dds

[ResourceArcherHeadADiffuse]
filename = ArcherHeadADiffuse.dds

[ResourceArcherBodyADiffuse]
filename = ArcherBodyADiffuse.dds

[ResourceArcherBodyALightMap]
filename = ArcherBodyALightMap.dds

[ResourceArcherBodyBDiffuse]
filename = ArcherBodyBDiffuse.dds

[ResourceArcherBodyBLightMap]
filename = ArcherBodyBLightMap.dds


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