; Citlali

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

[Constants]
global $active = 0
global $creditinfo = 0
global persist $bunnyParts = 0
global persist $jacket = 0
global persist $armBands = 0
global persist $collar = 0
global persist $top = 0
global persist $nipples = 0
global persist $bottom = 0
global persist $pussy = 0
global persist $clit = 0
global persist $gloves = 0
global persist $skirt = 0
global persist $tie = 0
global persist $legs = 2
global persist $shoes = 0
global persist $pubicHair = 0

global persist $outfit = 0

global persist $AbunnyParts = 0
global persist $Ajacket = 0
global persist $AarmBands = 0
global persist $Acollar = 0
global persist $Atop = 0
global persist $Anipples = 0
global persist $Abottom = 0
global persist $Apussy = 0
global persist $Aclit = 0
global persist $Agloves = 0
global persist $Askirt = 0
global persist $Atie = 0
global persist $Alegs = 2
global persist $Ashoes = 0
global persist $ApubicHair = 0

global persist $BbunnyParts = 0
global persist $Bjacket = 0
global persist $BarmBands = 0
global persist $Bcollar = 0
global persist $Btop = 0
global persist $Bnipples = 0
global persist $Bbottom = 0
global persist $Bpussy = 0
global persist $Bclit = 0
global persist $Bgloves = 0
global persist $Bskirt = 0
global persist $Btie = 0
global persist $Blegs = 2
global persist $Bshoes = 0
global persist $BpubicHair = 0

global persist $CbunnyParts = 0
global persist $Cjacket = 0
global persist $CarmBands = 0
global persist $Ccollar = 0
global persist $Ctop = 0
global persist $Cnipples = 0
global persist $Cbottom = 0
global persist $Cpussy = 0
global persist $Cclit = 0
global persist $Cgloves = 0
global persist $Cskirt = 0
global persist $Ctie = 0
global persist $Clegs = 2
global persist $Cshoes = 0
global persist $CpubicHair = 0

global persist $DbunnyParts = 0
global persist $Djacket = 0
global persist $DarmBands = 0
global persist $Dcollar = 0
global persist $Dtop = 0
global persist $Dnipples = 0
global persist $Dbottom = 0
global persist $Dpussy = 0
global persist $Dclit = 0
global persist $Dgloves = 0
global persist $Dskirt = 0
global persist $Dtie = 0
global persist $Dlegs = 2
global persist $Dshoes = 0
global persist $DpubicHair = 0

;SAVELOAD
[KeySaveA]
condition = $active == 1
key = shift VK_UP
run = CommandListSaveA

[KeyLoadA]
condition = $active == 1
key = no_modifiers VK_UP
run =  CommandListLoadA

[KeySaveB]
condition = $active == 1
key = shift VK_DOWN
run =  CommandListSaveB

[KeyLoadB]
condition = $active == 1
key = no_modifiers VK_DOWN
run =  CommandListLoadB

[KeySaveC]
condition = $active == 1
key = shift VK_LEFT
run = CommandListSaveC

[KeyLoadC]
condition = $active == 1
key = no_modifiers VK_LEFT
run =  CommandListLoadC

[KeySaveD]
condition = $active == 1
key = shift VK_RIGHT
run =  CommandListSaveD

[KeyLoadD]
condition = $active == 1
key = no_modifiers VK_RIGHT
run =  CommandListLoadD

[CommandListSaveA]
$AbunnyParts =	$bunnyParts
$Ajacket =		$jacket
$AarmBands =	$armBands
$Acollar =		$collar
$Atop =			$top
$Anipples =		$nipples
$Abottom =		$bottom
$Apussy =		$pussy
$Aclit =		$clit
$Agloves =		$gloves
$Askirt =		$skirt
$Atie =			$tie
$Alegs =		$legs
$Ashoes =		$shoes
$ApubicHair =	$pubicHair
pre Resource\ShaderFixes\help.ini\Notification = ResourceSaveAInfo
pre run = CustomShader\ShaderFixes\help.ini\FormatText
pre $\ShaderFixes\help.ini\notification_timeout = time + 1.0

[CommandListLoadA]
$bunnyParts =	$AbunnyParts
$jacket =		$Ajacket
$armBands =		$AarmBands
$collar =		$Acollar
$top =			$Atop
$nipples =		$Anipples
$bottom =		$Abottom
$pussy =		$Apussy
$clit =			$Aclit
$gloves =		$Agloves
$skirt =		$Askirt
$tie =			$Atie
$legs =			$Alegs
$shoes =		$Ashoes
$pubicHair =	$ApubicHair
pre Resource\ShaderFixes\help.ini\Notification = ResourceLoadAInfo
pre run = CustomShader\ShaderFixes\help.ini\FormatText
pre $\ShaderFixes\help.ini\notification_timeout = time + 1.0

[CommandListSaveB]
$BbunnyParts =	$bunnyParts
$Bjacket =		$jacket
$BarmBands =	$armBands
$Bcollar =		$collar
$Btop =			$top
$Bnipples =		$nipples
$Bbottom =		$bottom
$Bpussy =		$pussy
$Bclit =		$clit
$Bgloves =		$gloves
$Bskirt =		$skirt
$Btie =			$tie
$Blegs =		$legs
$Bshoes =		$shoes
$BpubicHair =	$pubicHair
pre Resource\ShaderFixes\help.ini\Notification = ResourceSaveBInfo
pre run = CustomShader\ShaderFixes\help.ini\FormatText
pre $\ShaderFixes\help.ini\notification_timeout = time + 1.0

[CommandListLoadB]
$bunnyParts =	$BbunnyParts
$jacket =		$Bjacket
$armBands =		$BarmBands
$collar =		$Bcollar
$top =			$Btop
$nipples =		$Bnipples
$bottom =		$Bbottom
$pussy =		$Bpussy
$clit =			$Bclit
$gloves =		$Bgloves
$skirt =		$Bskirt
$tie =			$Btie
$legs =			$Blegs
$shoes =		$Bshoes
$pubicHair =	$BpubicHair
pre Resource\ShaderFixes\help.ini\Notification = ResourceLoadBInfo
pre run = CustomShader\ShaderFixes\help.ini\FormatText
pre $\ShaderFixes\help.ini\notification_timeout = time + 1.0

[CommandListSaveC]
$CbunnyParts =	$bunnyParts
$Cjacket =		$jacket
$CarmBands =	$armBands
$Ccollar =		$collar
$Ctop =			$top
$Cnipples =		$nipples
$Cbottom =		$bottom
$Cpussy =		$pussy
$Cclit =		$clit
$Cgloves =		$gloves
$Cskirt =		$skirt
$Ctie =			$tie
$Clegs =		$legs
$Cshoes =		$shoes
$CpubicHair =	$pubicHair
pre Resource\ShaderFixes\help.ini\Notification = ResourceSaveCInfo
pre run = CustomShader\ShaderFixes\help.ini\FormatText
pre $\ShaderFixes\help.ini\notification_timeout = time + 1.0

[CommandListLoadC]
$bunnyParts =	$CbunnyParts
$jacket =		$Cjacket
$armBands =		$CarmBands
$collar =		$Ccollar
$top =			$Ctop
$nipples =		$Cnipples
$bottom =		$Cbottom
$pussy =		$Cpussy
$clit =			$Cclit
$gloves =		$Cgloves
$skirt =		$Cskirt
$tie =			$Ctie
$legs =			$Clegs
$shoes =		$Cshoes
$pubicHair =	$CpubicHair
pre Resource\ShaderFixes\help.ini\Notification = ResourceLoadCInfo
pre run = CustomShader\ShaderFixes\help.ini\FormatText
pre $\ShaderFixes\help.ini\notification_timeout = time + 1.0

[CommandListSaveD]
$DbunnyParts =	$bunnyParts
$Djacket =		$jacket
$DarmBands =	$armBands
$Dcollar =		$collar
$Dtop =			$top
$Dnipples =		$nipples
$Dbottom =		$bottom
$Dpussy =		$pussy
$Dclit =		$clit
$Dgloves =		$gloves
$Dskirt =		$skirt
$Dtie =			$tie
$Dlegs =		$legs
$Dshoes =		$shoes
$DpubicHair =	$pubicHair
pre Resource\ShaderFixes\help.ini\Notification = ResourceSaveDInfo
pre run = CustomShader\ShaderFixes\help.ini\FormatText
pre $\ShaderFixes\help.ini\notification_timeout = time + 1.0

[CommandListLoadD]
$bunnyParts =	$DbunnyParts
$jacket =		$Djacket
$armBands =		$DarmBands
$collar =		$Dcollar
$top =			$Dtop
$nipples =		$Dnipples
$bottom =		$Dbottom
$pussy =		$Dpussy
$clit =			$Dclit
$gloves =		$Dgloves
$skirt =		$Dskirt
$tie =			$Dtie
$legs =			$Dlegs
$shoes =		$Dshoes
$pubicHair =	$DpubicHair
pre Resource\ShaderFixes\help.ini\Notification = ResourceLoadDInfo
pre run = CustomShader\ShaderFixes\help.ini\FormatText
pre $\ShaderFixes\help.ini\notification_timeout = time + 1.0

[KeyReset]
condition = $active == 1
key = VK_Backspace
$bunnyParts	= 0
$jacket   	= 0
$armBands 	= 0
$collar   	= 0
$top      	= 0
$nipples  	= 0
$bottom   	= 0
$pussy    	= 0
$clit     	= 0
$gloves   	= 0
$skirt    	= 0
$tie      	= 0
$legs     	= 2
$shoes    	= 0
$pubicHair	= 0
$outfit		= 0

[KeyCycle]
condition = $active == 1
key = .
key = ]
back = ,
back = [
type = cycle
;1.OG Variant, 2.Skimpy OG, 3.Exposed OG
;4.Bunny, 5.Padded Bikini, 6.String Bikini, 7.Mesh Bikini
;8.Rabbit Dildo, 9.Jelly Dildos, A.Labial Gape, B.Prolapse
;Variant		= 1,2,3,    4,5,6,7,    8,9,A,B,C
$bunnyParts		= 0,0,0,    1,0,0,0,    0,0,0,0,0
$jacket   		= 0,0,0,    2,1,1,0,    3,1,2,0,0
$armBands 		= 0,0,0,    0,0,0,0,    0,0,0,0,0
$collar   		= 0,0,0,    2,1,1,1,    0,0,0,0,0
$top      		= 0,3,9,    5,6,7,8,    9,9,9,9,9
$nipples  		= 0,0,0,    0,0,0,1,    3,4,3,3,5
$bottom   		= 0,1,6,    0,3,4,5,    6,6,6,6,6
$pussy    		= 0,0,0,    0,0,0,1,    3,5,6,7,2
$clit     		= 0,0,0,    0,0,0,0,    1,2,1,1,0
$gloves   		= 0,0,0,    3,1,1,1,    0,0,0,0,0
$skirt    		= 0,1,0,    4,4,4,4,    4,4,4,1,4
$tie      		= 0,1,0,    1,1,1,1,    0,0,1,0,1
$legs     		= 2,2,2,    1,3,1,3,    1,2,1,2,2
$shoes    		= 0,0,0,    1,1,0,0,    0,0,0,0,1
$pubicHair		= 0,0,0,    0,0,0,1,    1,0,0,1,0
$outfit			= 0,1,2,	3,4,5,6,	7,8,9,10





[KeyRandomizeAll]
condition = $active == 1
key = VK_DELETE
run = CommandListRandom0

[CommandListRandom0]
$bunnyParts		= (time*40)%3//1
$jacket   		= (time*90)%3//1
$armBands 		= (time*50)%9//1
$collar   		= (time*120)%2//1
$top      		= (time*50)%9//1
$nipples  		= (time*250)%4//1
$bottom   		= (time*50)%6//1
$pussy    		= (time*140)%7//1
$clit     		= (time*30)%2//1
$gloves   		= (time*50)%4//1
$skirt    		= (time*230)%4//1
$tie      		= (time*10)%1//1
$legs     		= (time*90)%3//1
$shoes    		= (time*150)%1//1
$pubicHair		= (time*90)%1//1


[KeyRandomizeTopBottom]
condition = $active == 1
key = VK_INSERT
run = CommandListRandom1

[CommandListRandom1]
$top      		= (time*50)%9//1
$bottom   		= (time*50)%6//1



[KeyRandomizePussyNipples]
condition = $active == 1
key = VK_PGUP
key = ;
run = CommandListRandom2

[CommandListRandom2]
$pussy    		= (time*140)%7//1
$nipples  		= (time*250)%4//1
$clit     		= (time*30)%2//1

[KeyRandomizeUnderwear]
condition = $active == 1
key = VK_PGDN
key = '
run = CommandListRandom3

[CommandListRandom3]
$bunnyParts		= (time*40)%3//1
$jacket   		= (time*90)%3//1
$armBands 		= (time*50)%9//1
$collar   		= (time*120)%2//1
$gloves   		= (time*50)%4//1
$skirt    		= (time*230)%4//1
$tie      		= (time*10)%1//1
$legs     		= (time*90)%3//1
$shoes    		= (time*150)%1//1



;7
[Keycollar]
condition = $active == 1
key = no_modifiers 7
type = cycle
$collar = 0,1,2,3
$creditinfo = 0

[Keytie]
condition = $active == 1
key = alt 7
type = cycle
$tie = 0,1
$creditinfo = 0

;8
[KeyarmBands]
condition = $active == 1
key = alt 8
type = cycle
$armBands = 0,1,2
$creditinfo = 0


[Keygloves]
condition = $active == 1
key = no_modifiers 8
type = cycle
$gloves = 0,1,2,3,4
$creditinfo = 0

;6
[KeybunnyParts]
condition = $active == 1
key = alt 6
type = cycle
$bunnyParts = 0,1,2,3
$creditinfo = 0


[Keyjacket]
condition = $active == 1
key = no_modifiers 6
type = cycle
$jacket = 0,1,2,3
$creditinfo = 0

;Y
[Keytop]
condition = $active == 1
key = no_modifiers y
type = cycle
$top = 0,1,2,3,4,5,6,7,8,9
$creditinfo = 0


[Keynipples]
condition = $active == 1
key = alt y
type = cycle
$nipples = 0,1,2,3,4,5
$creditinfo = 0

;H
[Keybottom]
condition = $active == 1
key = no_modifiers h
type = cycle
$bottom = 0,1,2,3,4,5,6
$creditinfo = 0


[Keypussy]
condition = $active == 1
key = alt no_ctrl h
type = cycle
$pussy = 0,1,2,3,4,5,6,7
$creditinfo = 0



[Keyclit]
condition = $active == 1
key = ctrl no_alt h
type = cycle
$clit = 0,1,2
$creditinfo = 0


[KeypubicHair]
condition = $active == 1
key = shift h
key = ctrl alt h
type = cycle
$pubicHair = 0,1
$creditinfo = 0

;N
[Keylegs]
condition = $active == 1
key = no_modifiers n
type = cycle
$legs = 0,1,2,3
$creditinfo = 0



[Keyshoes]
condition = $active == 1
key = alt n
type = cycle
$shoes = 0,1,2
$creditinfo = 0


[Keyskirt]
condition = $active == 1
key = ctrl n
type = cycle
$skirt = 0,1,2,3,4
$creditinfo = 0

[Present]
post $active = 0
run = CommandListCreditInfo

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

[TextureOverrideCitlaliPosition]
hash = 362dc30c
vb0 = ResourceCitlaliPosition
$active = 1

[TextureOverrideCitlaliBlend]
hash = 3e939d2e
handling = skip
vb1 = ResourceCitlaliBlend
draw = 421635, 0

[TextureOverrideCitlaliTexcoord]
hash = 3421fed9
vb1 = ResourceCitlaliTexcoord

[TextureOverrideCitlaliVertexLimitRaise]
hash = eec92f64
override_vertex_count = 421635
override_byte_stride = 40

[TextureOverrideCitlaliIB]
hash = f81f893c
handling = skip

[TextureOverrideCitlaliHead]
hash = f81f893c
match_first_index = 0
ib = ResourceCitlaliHeadIB
ps-t0 = ResourceCitlaliHeadNormalMap
ps-t1 = ResourceCitlaliHeadDiffuse
ps-t2 = ResourceCitlaliHeadLightMap
run = CommandList\global\ORFix\ORFix

if $skirt == 0
; Skirt
; Citlali Skirt Tassels (986)
; Citlali Skirt Waist Shawl (5944)
; Citlali Skirt (974)
drawindexed = 3954, 0, 0
elif $skirt == 1
; Citlali Skirt Waist Shawl (5944)

elif $skirt == 2
endif


; CitlaliHair (8997)
drawindexed = 25533, 3954, 0

[TextureOverrideCitlaliBody]
hash = f81f893c
match_first_index = 27393
ib = ResourceCitlaliBodyIB
ps-t0 = ResourceCitlaliBodyNormalMap
ps-t1 = ResourceCitlaliBodyDiffuse
ps-t2 = ResourceCitlaliBodyLightMap

if $pussy == 5 && $bottom == 6
ps-t69 = ResourceCitlaliBodyMask2
run = CommandList\TexFx\Transparency.1
endif

run = CommandList\global\ORFix\ORFix

; Eyes (336)
drawindexed = 864, 15576, 0

if $collar == 0
; Citlali Neckpiece (2789)
drawindexed = 11904, 43008, 0
elif $collar == 1
; Citlali Choker (320)
drawindexed = 1416, 41592, 0
elif $collar == 2
; Bunny Collar (5367)
drawindexed = 25152, 16440, 0
elif $collar == 3
endif

if $tie == 0
; Citlali Necktie (422)
drawindexed = 1008, 54912, 0
endif

if $bunnyParts == 1
; Bunny Ears (2930)
drawindexed = 15576, 0, 0
; Bunny Tail (943)
drawindexed = 4272, 500079, 0
elif $bunnyParts == 2
; Bunny Ears (2930)
drawindexed = 15576, 0, 0
elif $bunnyParts == 3
; Bunny Tail (943)
drawindexed = 4272, 500079, 0
endif

if $jacket == 1
; Bunny Jacket.BluePurple (15851)
drawindexed = 63144, 55920, 0
elif $jacket == 2
; Bunny Jacket.Cyan (15547)
drawindexed = 63960, 119064, 0
elif $jacket == 3
; Bunny Jacket.Silver (15555)
drawindexed = 63192, 183024, 0
endif

; Neck
; Chest
; Body Main Upper Torso (7450)
drawindexed = 36738, 445413, 0

if $top == 0
	if $bottom == 0
		; Citali OG Top (6904)
		drawindexed = 31404, 270120, 0
	else
		; Citlali Top Mid (2072)
		drawindexed = 7212, 370056, 0
	endif
elif $top == 1
	; Citlali Top Mid (2072)
	drawindexed = 7212, 370056, 0
elif $top == 2
	; Citlali Top Short (6167)
	drawindexed = 25212, 377268, 0
elif $top == 3
	; Citlali Leotard (7537)
	drawindexed = 34764, 301524, 0
elif $top == 4
	; Citlali Leotard Open Wider (7089)
	drawindexed = 33768, 336288, 0
elif $top == 5
	; Bunny Suit (4488)
	drawindexed = 23904, 246216, 0
elif $top == 6
	; Padded Bikini Top (3452)
	drawindexed = 12813, 419652, 0
elif $top == 7
	; Strap Bikini.Top (2712)
	drawindexed = 12948, 432465, 0
elif $top == 8
	; Mesh Bikini.Top (3330)
	drawindexed = 17172, 402480, 0
elif $top == 9
endif

if $top >= 8 
	if $nipples == 0
		; Heart Pasties (864)
		drawindexed = 4416, 486903, 0
	elif $nipples == 1
		; Nipple X Pasties (232)
		drawindexed = 960, 499119, 0
	elif $nipples == 2
		; Body Main Nipples (943)
		drawindexed = 4752, 482151, 0
		; Nipple Barbell (268)
		drawindexed = 420, 491319, 0
	elif $nipples == 3
		; Body Main Nipples (943)
		drawindexed = 4752, 482151, 0
		; Nipple Rings (528)
		drawindexed = 1332, 497787, 0
	elif $nipples == 4
		; Body Main Nipples (943)
		drawindexed = 4752, 482151, 0
		; Nipple Chains (2142)
		drawindexed = 6048, 491739, 0
	elif $nipples == 5
		; Body Main Nipples (943)
		drawindexed = 4752, 482151, 0
	endif
endif

if $skirt == 0
	; Skirt
	; Citlali Skirt Tassels (986)
	drawindexed = 2436, 990915, 0
	; Citlali Skirt Waist Shawl (5944)
	drawindexed = 6972, 993351, 0
	; Citlali Skirt Waist Shawl.BackFlap (1196)
	drawindexed = 3468, 1000323, 0
	; Citlali Skirt Waist Shawl.RibbonVision (2258)
	drawindexed = 6498, 1003791, 0
elif $skirt == 1
	; Citlali Skirt Waist Shawl (5944)
	drawindexed = 6972, 993351, 0
	; Citlali Skirt Waist Shawl.BackFlap (1196)
	drawindexed = 3468, 1000323, 0
	; Citlali Skirt Waist Shawl.RibbonVision (2258)
	drawindexed = 6498, 1003791, 0
elif $skirt == 2
	; Citlali Skirt Waist Shawl (5944)
	drawindexed = 6972, 993351, 0
	; Citlali Skirt Waist Shawl.RibbonVision (2258)
	drawindexed = 6498, 1003791, 0
elif $skirt == 3
	; Citlali Skirt Waist Shawl.RibbonVision (2258)
	drawindexed = 6498, 1003791, 0
endif

if ($top < 3 || $top > 5)
	if $bottom == 0
		; Citlali Shorts (1673)
		drawindexed = 7488, 504351, 0
		; Body Main Pelvis Pussy Covered (7421)
		drawindexed = 35736, 589995, 0
	elif $bottom == 1
		; G-String.Low (827)
		drawindexed = 2880, 514719, 0
		; Body Main Pelvis Pussy Covered (7421)
		drawindexed = 35736, 589995, 0
	elif $bottom == 2
		; G-String.High (792)
		drawindexed = 2880, 511839, 0
		; Body Main Pelvis Pussy Covered (7421)
		drawindexed = 35736, 589995, 0
	elif $bottom == 3
		; Padded Bikini Bottoms (3004)
		drawindexed = 10140, 534507, 0
		; Body Main Pelvis Pussy Covered (7421)
		drawindexed = 35736, 589995, 0
	elif $bottom == 4
		; Strap Bikini.Bottom (2806)
		drawindexed = 9612, 544647, 0
		; Body Main Pelvis Pussy Covered (7421)
		drawindexed = 35736, 589995, 0
	elif $bottom == 5
		; Mesh Bikini.Bottom (4939)
		drawindexed = 16908, 517599, 0
		if $pubicHair == 1
			; Pubic Hair (126)
			drawindexed = 405, 1031013, 0
			; Pubic Hair.PussyFrozen (126)
			drawindexed = 405, 1031418, 0
		endif
		if $pussy >= 2 && $clit >= 1
		; Body Main Pelvis Pussy Covered.ClitPiercing (7413)
		drawindexed = 35736, 625731, 0
		else
			; Body Main Pelvis Pussy Covered (7421)
			drawindexed = 35736, 589995, 0
			if $pussy == 0
			; Heart Pussy Pasty (514)
			drawindexed = 2616, 1028397, 0
			elif $pussy == 1
			; Pussy Pasty (202)
			drawindexed = 960, 1031823, 0
			endif
		endif

	elif $bottom == 6
		if $pussy == 0
			; Heart Pussy Pasty (514)
			drawindexed = 2616, 1028397, 0
			; Body Main Pelvis Pussy Covered (7421)
			drawindexed = 35736, 589995, 0
		elif $pussy == 1
			if $pubicHair == 1
				; Pubic Hair.PussyFrozen (126)
				drawindexed = 405, 1031418, 0
			endif
			; Pussy Pasty (202)
			drawindexed = 960, 1031823, 0
			; Body Main Pelvis Pussy Covered (7421)
			drawindexed = 35736, 589995, 0
		elif $pussy == 2
			if $pubicHair == 1
				; Pubic Hair (126)
				drawindexed = 405, 1031013, 0
			endif
			if $clit == 0
				; Body Main Pelvis (7388)
				drawindexed = 35736, 554259, 0
			elif $clit >= 1
				; Body Main Pelvis.ClitRings (7388)
				drawindexed = 35736, 661467, 0
			endif
		elif $pussy == 3
			if $pubicHair == 1
				; Pubic Hair (126)
				drawindexed = 405, 1031013, 0
			endif
			if $clit == 0
			; Body Main Pelvis.RabbitDildo (7402)
			drawindexed = 35736, 919443, 0
			else
			; Body Main Pelvis.RabbitDildo.ClitRings (7402)
			drawindexed = 35736, 955179, 0
			endif
			; Rabbit Dildo (1292)
			drawindexed = 5502, 1032783, 0
		elif $pussy == 4
			if $pubicHair == 1
				; Pubic Hair (126)
				drawindexed = 405, 1031013, 0
			endif
			if $clit == 0
				; Body Main Pelvis.Double Dildo Insertion (7400)
				drawindexed = 35736, 697203, 0
			else
				; Body Main Pelvis.Double Dildo Insertion.ClitRings (7400)
				drawindexed = 35736, 732939, 0
			endif
			; Sunction Dildo Back (1159)
			drawindexed = 4986, 1038285, 0
			; Sunction Dildo Front (1163)
			drawindexed = 4986, 1043271, 0
		elif $pussy == 5
			if $pubicHair == 1
				; Pubic Hair (126)
				drawindexed = 405, 1031013, 0
			endif
			; Body Main Pelvis.Double Dildo Insertion (7400)
			drawindexed = 35736, 697203, 0
			; Double Ended Jelly Dildo (2140)
			drawindexed = 9408, 1016685, 0
			; Double Ended Jelly Dildo.Spine (775)
			drawindexed = 2304, 1026093, 0
		elif $pussy == 6
			if $pubicHair == 1
				; Pubic Hair (126)
				drawindexed = 405, 1031013, 0
			endif
			if $clit == 0
			; Body Main Pelvis.Labial Rings (8825)
			drawindexed = 39648, 768675, 0
			elif $clit >= 1
			; Body Main Pelvis.Labial.Clit.Rings (8820)
			drawindexed = 39648, 808323, 0
			endif
		elif $pussy == 7
			if $pubicHair == 1
				; Pubic Hair (126)
				drawindexed = 405, 1031013, 0
			endif
			; Body Main Pelvis.Prolapse (7397)
			drawindexed = 35736, 847971, 0
			; Body Main Pelvis.Prolapse.ClitRings (7397)
			drawindexed = 35736, 883707, 0
		endif
	endif
else
	; Body Main Pelvis Pussy Covered (7421)
	drawindexed = 35736, 589995, 0
endif

if $bottom >= 5 && $pussy >= 2
	if $clit == 1
	; Clit Barbell (132)
	drawindexed = 210, 1015821, 0
	elif $clit == 2
	; Clit Ring (268)
	drawindexed = 654, 1016031, 0
	endif
endif

if $legs == 0
	; Legs
	; Body Main Legs (6088)
	drawindexed = 27528, 1251795, 0
elif $legs == 1
	; Body Main Legs.FishnetStockings (6044)
	drawindexed = 27528, 1279323, 0
	; Body Main Legs.FishnetStockings.001 (98718)
	drawindexed = 306078, 1306851, 0
elif $legs == 2
	; Body Main Legs.Thighband (6300)
	drawindexed = 28488, 1612929, 0
	; Thighstrap (259)
	drawindexed = 648, 1641417, 0
elif $legs == 3
	; Body Main Legs.FishnetStockings (6044)
	drawindexed = 27528, 1279323, 0
	; Body Main Legs.FishnetStockings.001 (98718)
	drawindexed = 306078, 1306851, 0
	; Thighstrap (259)
	drawindexed = 648, 1641417, 0
endif

; Chest Body
; Nipples
; Pelvis
; Pelvis Body
; Pussy and Anus
; ; Buttplug (1694)
; drawindexed = 5532, 1010289, 0
; Arms
; ; Arm Cuffs (459)
; drawindexed = 1584, 1050189, 0

if $gloves == 0
	; Body Main Hand (7051)
	drawindexed = 28824, 1051773, 0
	; Citlali Long Gloves.L(OG) (5740)
	drawindexed = 24276, 1201077, 0
	; Citlali Short Gloves.R(OG) (697)
	drawindexed = 1809, 1249986, 0
	; Arm Bands.R(OG) (296)
	drawindexed = 966, 1049223, 0
elif $gloves == 1
	; Body Main Hand (7051)
	drawindexed = 28824, 1051773, 0
	; Arm Bands.R(OG) (296)
	drawindexed = 966, 1049223, 0
	; Arm Bands.L (296)
	drawindexed = 966, 1048257, 0
	; Citlali Short Gloves.L (697)
	drawindexed = 1809, 1248177, 0
	; Citlali Short Gloves.R(OG) (697)
	drawindexed = 1809, 1249986, 0
elif $gloves == 2
	; Body Main Hand (7051)
	drawindexed = 28824, 1051773, 0
	; Citlali Long Gloves.L(OG) (5740)
	drawindexed = 24276, 1201077, 0
	; Citlali Long Gloves.R (5271)
	drawindexed = 22824, 1225353, 0
elif $gloves == 3
	; Bunny Gloves (25621)
	drawindexed = 120480, 1080597, 0
elif $gloves == 4
	; Body Main Hand (7051)
	drawindexed = 28824, 1051773, 0
endif
; Hands

if $shoes == 0
	; Citlali Strap Heels (7883)
	drawindexed = 26694, 1649463, 0
elif $shoes == 1
	; Bunny Heels (1609)
	drawindexed = 7398, 1642065, 0
elif $shoes == 2
	; no shoes
endif
; Feet

[TextureOverrideCitlaliNatlanFxHeadDiffuse]
hash = 601a55c8
this = ResourceCitlaliNatlanFxHeadDiffuse


; 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 = 2
endif

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

[ResourceCitlaliPosition]
type = Buffer
stride = 40
filename = CitlaliPosition.buf

[ResourceCitlaliBlend]
type = Buffer
stride = 32
filename = CitlaliBlend.buf

[ResourceCitlaliTexcoord]
type = Buffer
stride = 20
filename = CitlaliTexcoord.buf

[ResourceCitlaliHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = CitlaliHead.ib

[ResourceCitlaliBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = CitlaliBody.ib

[ResourceCitlaliHeadNormalMap]
filename = CitlaliHeadNormalMap.dds

[ResourceCitlaliHeadDiffuse]
filename = CitlaliHeadDiffuse.dds

[ResourceCitlaliHeadLightMap]
filename = CitlaliHeadLightMap.dds

[ResourceCitlaliBodyNormalMap]
filename = CitlaliBodyNormalMap.dds

[ResourceCitlaliBodyDiffuse]
filename = CitlaliBodyDiffuse.dds

[ResourceCitlaliBodyLightMap]
filename = CitlaliBodyLightMap.dds

[ResourceCitlaliBodyMask]
filename = CitlaliBodyMask.dds

[ResourceCitlaliBodyMask2]
filename = CitlaliBodyMask2.dds
[ResourceCitlaliBodyMask3]
filename = CitlaliBodyMask3.dds

[ResourceCitlaliNatlanFxHeadDiffuse]
filename = CitlaliNatlanFxHeadDiffuse.dds

[ResourceCreditInfo]
type = Buffer
data = "Created by patreon.com/lewd_lad || lewdlad.fanbox.cc"

[ResourceSaveAInfo]
type = Buffer
data = "Citlali Outfit A Saved"

[ResourceLoadAInfo]
type = Buffer
data = "Citlali Outfit A Loaded"

[ResourceSaveBInfo]
type = Buffer
data = "Citlali Outfit B Saved"

[ResourceLoadBInfo]
type = Buffer
data = "Citlali Outfit B Loaded"

[ResourceSaveCInfo]
type = Buffer
data = "Citlali Outfit C Saved"

[ResourceLoadCInfo]
type = Buffer
data = "Citlali Outfit C Loaded"

[ResourceSaveDInfo]
type = Buffer
data = "Citlali Outfit D Saved"

[ResourceLoadDInfo]
type = Buffer
data = "Citlali Outfit D Loaded"

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

;Help Menu Stuff__________________________________________________________________________________

[Constants]
global persist $language = 0
global persist $menu = 0
global persist $BG = 0
;Horizontal Resolution of Help Image
global $XRes = 950
;Vertical Resolution of Help Image
global $YRes = 950

[ResourceMenu]
filename = Menu.dds
[ResourceMenuCN]
filename = MenuCN.dds
[ResourceMenuJP]
filename = MenuJP.dds
[ResourceMenuKR]
filename = MenuKR.dds
[ResourceA]
filename = A.dds
[ResourceB]
filename = B.dds
[ResourceC]
filename = C.dds
[ResourceD]
filename = D.dds
[ResourceE]
filename = E.dds
[ResourceF]
filename = F.dds
[ResourceG]
filename = G.dds
[ResourceH]
filename = H.dds
[ResourceI]
filename = I.dds
[ResourceJ]
filename = J.dds
[ResourceK]
filename = K.dds

[Present]
if $active == 1 && $menu == 1
  run = CommandListMenu
endif

[CustomShaderElement]
hs = null
ds = null
gs = null
cs = null
run = BuiltInCommandListUnbindAllRenderTargets
vs = draw_2d.hlsl
ps = draw_2d.hlsl
blend = ADD SRC_ALPHA INV_SRC_ALPHA
cull = none
topology = triangle_strip
o0 = set_viewport bb
Draw = 4,0

[KeyHelp]
condition = $active
key = no_shift no_ctrl /
type = cycle
$menu = 0,1

[KeyBG]
condition = $active
key = ctrl /
type = cycle
$BG = 0,1,2,3,4,5,6,7,8

[KeyLanguage]
condition = $active
key = shift /
type = cycle
$language = 0,1,2,3
$creditinfo = 0

[CommandListMenu]
;DRAW CURSOR
;x87 = 0.2
;y87 = 0.5
if res_height > 1000
x87 = ($XRes/res_height)/(res_width/res_height)
y87 = ($YRes/res_height)
z87 = 0.55
w87 = 0.5-(1024/res_height/2)
else
x87 = ($XRes/res_height*.75)/(res_width/res_height)
y87 = ($YRes/res_height*.75)
z87 = 0.55
w87 = 0.5-(1024/res_height*.75/2)
endif

if $outfit == 0
	ps-t100 = ResourceA
elif $outfit == 1
	ps-t100 = ResourceB
elif $outfit == 2
	ps-t100 = ResourceC
elif $outfit == 3
	ps-t100 = ResourceD
elif $outfit == 4
	ps-t100 = ResourceE
elif $outfit == 5
	ps-t100 = ResourceF
elif $outfit == 6
	ps-t100 = ResourceG
elif $outfit == 7
	ps-t100 = ResourceH
elif $outfit == 8
	ps-t100 = ResourceI
elif $outfit == 9
	ps-t100 = ResourceJ
elif $outfit == 10
	ps-t100 = ResourceK
endif
run = CustomShaderElement

if $language == 0
	ps-t100 = ResourceMenu
elif $language == 1
	ps-t100 = ResourceMenuCN
elif $language == 2
	ps-t100 = ResourceMenuJP
elif $language == 3
	ps-t100 = ResourceMenuKR
endif
run = CustomShaderElement