QSwap

Created Diff never expires
11 removals
Words removed21
Total words627
Words removed (%)3.35
305 lines
64 additions
Words added203
Total words809
Words added (%)25.09
356 lines
; Merged Mod: .\0\RaidenShogun.ini, .\1\RaidenShogun.ini
; Merged Mod: .\0\RaidenShogun.ini, .\1\RaidenShogun.ini


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


[Constants]
[Constants]
global persist $swapvar = 0
global $enable_burst_swap = 1
global $active
global persist $burst_swap = 0
global $creditinfo = 0
global persist $swapvar_select = 0
global $swapvar = 0
global $active= 0
global $is_burst = 0
global $is_burst_prev = 0
global $set_burst_swap = 0
global $burst_start_time
global $press = 0
global $isFirstime = 0


[KeySwap]
;Leave as is if you want swap happen when you press correct button
condition = $active == 1
;Change accordingly if you want swap to happen later (i.e after burst animation)
global $swap_delay = 0

; Match the number with that of your burst/skill
global $burst_duration = 8.2

;swap lock lock time after pressing the button
global $burst_cooldown = 18

[KeyQ]
key = q
key = q
type = cycle
condition = $active== 1
$swapvar = 0,1
type=cycle
$creditinfo = 0
$is_burst = 1,0
$press = 1,0


[Present]
[Present]
post $active = 0
post $active= 0
post $is_burst_prev = $is_burst
post run = CommandListBurstStartTime
post run = CommandListOnBurstStart


if $is_burst_prev == 1 && $enable_burst_swap && time - $burst_start_time > $swap_delay
$swapvar = 1
else
$swapvar = 0
endif
; Shader ------------------------------
; Shader ------------------------------


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


[TextureOverrideRaidenShogunPosition]
[TextureOverrideRaidenShogunPosition]
hash = e48c61f3
hash = e48c61f3
run = CommandListRaidenShogunPosition
run = CommandListRaidenShogunPosition
$active = 1
$active= 1


[TextureOverrideRaidenShogunBlend]
[TextureOverrideRaidenShogunBlend]
hash = 1a495487
hash = 1a495487
run = CommandListRaidenShogunBlend
run = CommandListRaidenShogunBlend


[TextureOverrideRaidenShogunTexcoord]
[TextureOverrideRaidenShogunTexcoord]
hash = 0c37fc86
hash = 0c37fc86
run = CommandListRaidenShogunTexcoord
run = CommandListRaidenShogunTexcoord


[TextureOverrideRaidenShogunVertexLimitRaise]
[TextureOverrideRaidenShogunVertexLimitRaise]
hash = a05e7bec
hash = a05e7bec


[TextureOverrideRaidenShogunIB]
[TextureOverrideRaidenShogunIB]
hash = 428c56cd
hash = 428c56cd
run = CommandListRaidenShogunIB
run = CommandListRaidenShogunIB


[TextureOverrideRaidenShogunHead]
[TextureOverrideRaidenShogunHead]
hash = 428c56cd
hash = 428c56cd
match_first_index = 0
match_first_index = 0
run = CommandListRaidenShogunHead
run = CommandListRaidenShogunHead


[TextureOverrideRaidenShogunBody]
[TextureOverrideRaidenShogunBody]
hash = 428c56cd
hash = 428c56cd
match_first_index = 17769
match_first_index = 17769
run = CommandListRaidenShogunBody
run = CommandListRaidenShogunBody


[TextureOverrideRaidenShogunDress]
[TextureOverrideRaidenShogunDress]
hash = 428c56cd
hash = 428c56cd
match_first_index = 52473
match_first_index = 52473
run = CommandListRaidenShogunDress
run = CommandListRaidenShogunDress


[TextureOverrideRaidenShogunFaceHeadDiffuse]
[TextureOverrideRaidenShogunFaceHeadDiffuse]
hash = 20174ee8
hash = 20174ee8
run = CommandListRaidenShogunFaceHeadDiffuse
run = CommandListRaidenShogunFaceHeadDiffuse


[TextureOverrideRaidenShogunRemapBlend]
[TextureOverrideRaidenShogunRemapBlend]
hash = fe5c0180
hash = fe5c0180
run = CommandListRaidenShogunRemapBlend
run = CommandListRaidenShogunRemapBlend


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


[CommandListBurstStartTime]
if $press == 1 && $isFirstime == 0
$burst_start_time = time
$press = 0
$isFirstime = 1
endif

if time - $burst_start_time > $burst_cooldown
$isFirstime = 0
endif


[CommandListOnBurstStart]
if time - $burst_start_time > $burst_duration
$is_burst = 0
endif

if time - $burst_start_time < $burst_duration && $is_burst == 0
$is_burst = 1
endif
if time - $burst_start_time < $burst_cooldown && $press == 1
$press = 0
endif


[CommandListRaidenShogunPosition]
[CommandListRaidenShogunPosition]
if $swapvar == 0
if $swapvar == 0
vb0 = ResourceRaidenShogunPosition.0
vb0 = ResourceRaidenShogunPosition.0
else if $swapvar == 1
else if $swapvar == 1
vb0 = ResourceRaidenShogunPosition.1
vb0 = ResourceRaidenShogunPosition.1
endif
endif


[CommandListRaidenShogunBlend]
[CommandListRaidenShogunBlend]
if $swapvar == 0
if $swapvar == 0
vb1 = ResourceRaidenShogunBlend.0
vb1 = ResourceRaidenShogunBlend.0
handling = skip
handling = skip
draw = 14687,0
draw = 14687,0
else if $swapvar == 1
else if $swapvar == 1
vb1 = ResourceRaidenShogunBlend.1
vb1 = ResourceRaidenShogunBlend.1
handling = skip
handling = skip
draw = 18322,0
draw = 18322,0
endif
endif


[CommandListRaidenShogunTexcoord]
[CommandListRaidenShogunTexcoord]
if $swapvar == 0
if $swapvar == 0
vb1 = ResourceRaidenShogunTexcoord.0
vb1 = ResourceRaidenShogunTexcoord.0
else if $swapvar == 1
else if $swapvar == 1
vb1 = ResourceRaidenShogunTexcoord.1
vb1 = ResourceRaidenShogunTexcoord.1
endif
endif


[CommandListRaidenShogunIB]
[CommandListRaidenShogunIB]
if $swapvar == 0
if $swapvar == 0
handling = skip
handling = skip
drawindexed = auto
drawindexed = auto
else if $swapvar == 1
else if $swapvar == 1
handling = skip
handling = skip
drawindexed = auto
drawindexed = auto
endif
endif


[CommandListRaidenShogunHead]
[CommandListRaidenShogunHead]
if $swapvar == 0
if $swapvar == 0
ib = ResourceRaidenShogunHeadIB.0
ib = ResourceRaidenShogunHeadIB.0
ps-t0 = ResourceRaidenShogunHeadDiffuse.0
ps-t0 = ResourceRaidenShogunHeadDiffuse.0
ps-t1 = ResourceRaidenShogunHeadLightMap.0
ps-t1 = ResourceRaidenShogunHeadLightMap.0
ps-t2 = ResourceRaidenShogunHeadMetalMap.0
ps-t2 = ResourceRaidenShogunHeadMetalMap.0
ps-t3 = ResourceRaidenShogunHeadShadowRamp.0
ps-t3 = ResourceRaidenShogunHeadShadowRamp.0
else if $swapvar == 1
else if $swapvar == 1
ib = ResourceRaidenShogunHeadIB.1
ib = ResourceRaidenShogunHeadIB.1
ps-t0 = ResourceRaidenShogunHeadDiffuse.1
ps-t0 = ResourceRaidenShogunHeadDiffuse.1
ps-t1 = ResourceRaidenShogunHeadLightMap.1
ps-t1 = ResourceRaidenShogunHeadLightMap.1
ps-t2 = ResourceRaidenShogunHeadMetalMap.1
ps-t2 = ResourceRaidenShogunHeadMetalMap.1
ps-t3 = ResourceRaidenShogunHeadShadowRamp.1
ps-t3 = ResourceRaidenShogunHeadShadowRamp.1
endif
endif


[CommandListRaidenShogunBody]
[CommandListRaidenShogunBody]
if $swapvar == 0
if $swapvar == 0
ib = ResourceRaidenShogunBodyIB.0
ib = ResourceRaidenShogunBodyIB.0
ps-t0 = ResourceRaidenShogunBodyDiffuse.0
ps-t0 = ResourceRaidenShogunBodyDiffuse.0
ps-t1 = ResourceRaidenShogunBodyLightMap.0
ps-t1 = ResourceRaidenShogunBodyLightMap.0
ps-t2 = ResourceRaidenShogunBodyMetalMap.0
ps-t2 = ResourceRaidenShogunBodyMetalMap.0
ps-t3 = ResourceRaidenShogunBodyShadowRamp.0
ps-t3 = ResourceRaidenShogunBodyShadowRamp.0
else if $swapvar == 1
else if $swapvar == 1
ib = ResourceRaidenShogunBodyIB.1
ib = ResourceRaidenShogunBodyIB.1
ps-t0 = ResourceRaidenShogunBodyDiffuse.1
ps-t0 = ResourceRaidenShogunBodyDiffuse.1
ps-t1 = ResourceRaidenShogunBodyLightMap.1
ps-t1 = ResourceRaidenShogunBodyLightMap.1
ps-t2 = ResourceRaidenShogunBodyMetalMap.1
ps-t2 = ResourceRaidenShogunBodyMetalMap.1
ps-t3 = ResourceRaidenShogunBodyShadowRamp.1
ps-t3 = ResourceRaidenShogunBodyShadowRamp.1
endif
endif


[CommandListRaidenShogunDress]
[CommandListRaidenShogunDress]
if $swapvar == 0
if $swapvar == 0
ib = ResourceRaidenShogunDressIB.0
ib = ResourceRaidenShogunDressIB.0
ps-t0 = ResourceRaidenShogunDressDiffuse.0
ps-t0 = ResourceRaidenShogunDressDiffuse.0
ps-t1 = ResourceRaidenShogunDressLightMap.0
ps-t1 = ResourceRaidenShogunDressLightMap.0
ps-t2 = ResourceRaidenShogunDressMetalMap.0
ps-t2 = ResourceRaidenShogunDressMetalMap.0
ps-t3 = ResourceRaidenShogunDressShadowRamp.0
ps-t3 = ResourceRaidenShogunDressShadowRamp.0
else if $swapvar == 1
else if $swapvar == 1
ib = ResourceRaidenShogunDressIB.1
ib = ResourceRaidenShogunDressIB.1
ps-t0 = ResourceRaidenShogunDressDiffuse.1
ps-t0 = ResourceRaidenShogunDressDiffuse.1
ps-t1 = ResourceRaidenShogunDressLightMap.1
ps-t1 = ResourceRaidenShogunDressLightMap.1
ps-t2 = ResourceRaidenShogunDressMetalMap.1
ps-t2 = ResourceRaidenShogunDressMetalMap.1
ps-t3 = ResourceRaidenShogunDressShadowRamp.1
ps-t3 = ResourceRaidenShogunDressShadowRamp.1
endif
endif


[CommandListRaidenShogunFaceHeadDiffuse]
[CommandListRaidenShogunFaceHeadDiffuse]
if $swapvar == 0
if $swapvar == 0
ps-t0 = ResourceRaidenShogunFaceHeadDiffuse.0
ps-t0 = ResourceRaidenShogunFaceHeadDiffuse.0
endif
endif


[CommandListRaidenShogunRemapBlend]
[CommandListRaidenShogunRemapBlend]
if $swapvar == 1
if $swapvar == 1
vb1 = ResourceRaidenShogunRemapBlend.1
vb1 = ResourceRaidenShogunRemapBlend.1
handling = skip
handling = skip
draw = 18322,0
draw = 18322,0
endif
endif


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


[ResourceRaidenShogunPosition.0]
[ResourceRaidenShogunPosition.0]
type = Buffer
type = Buffer
stride = 40
stride = 40
filename = .\0\RaidenShogunPosition.buf
filename = .\0\RaidenShogunPosition.buf


[ResourceRaidenShogunBlend.0]
[ResourceRaidenShogunBlend.0]
type = Buffer
type = Buffer
stride = 32
stride = 32
filename = .\0\RaidenShogunBlend.buf
filename = .\0\RaidenShogunBlend.buf


[ResourceRaidenShogunTexcoord.0]
[ResourceRaidenShogunTexcoord.0]
type = Buffer
type = Buffer
stride = 20
stride = 20
filename = .\0\RaidenShogunTexcoord.buf
filename = .\0\RaidenShogunTexcoord.buf


[ResourceRaidenShogunHeadIB.0]
[ResourceRaidenShogunHeadIB.0]
type = Buffer
type = Buffer
format = DXGI_FORMAT_R16_UINT
format = DXGI_FORMAT_R16_UINT
filename = .\0\RaidenShogunHead.ib
filename = .\0\RaidenShogunHead.ib


[ResourceRaidenShogunBodyIB.0]
[ResourceRaidenShogunBodyIB.0]
type = Buffer
type = Buffer
format = DXGI_FORMAT_R16_UINT
format = DXGI_FORMAT_R16_UINT
filename = .\0\RaidenShogunBody.ib
filename = .\0\RaidenShogunBody.ib


[ResourceRaidenShogunDressIB.0]
[ResourceRaidenShogunDressIB.0]
type = Buffer
type = Buffer
format = DXGI_FORMAT_R16_UINT
format = DXGI_FORMAT_R16_UINT
filename = .\0\RaidenShogunDress.ib
filename = .\0\RaidenShogunDress.ib


[ResourceRaidenShogunHeadDiffuse.0]
[ResourceRaidenShogunHeadDiffuse.0]
filename = .\0\RaidenShogunHeadDiffuse.dds
filename = .\0\RaidenShogunHeadDiffuse.dds


[ResourceRaidenShogunHeadLightMap.0]
[ResourceRaidenShogunHeadLightMap.0]
filename = .\0\RaidenShogunHeadLightMap.dds
filename = .\0\RaidenShogunHeadLightMap.dds


[ResourceRaidenShogunHeadMetalMap.0]
[ResourceRaidenShogunHeadMetalMap.0]
filename = .\0\RaidenShogunHeadMetalMap.dds
filename = .\0\RaidenShogunHeadMetalMap.dds


[ResourceRaidenShogunHeadShadowRamp.0]
[ResourceRaidenShogunHeadShadowRamp.0]
filename = .\0\RaidenShogunHeadShadowRamp.jpg
filename = .\0\RaidenShogunHeadShadowRamp.jpg


[ResourceRaidenShogunBodyDiffuse.0]
[ResourceRaidenShogunBodyDiffuse.0]
filename = .\0\RaidenShogunBodyDiffuse.dds
filename = .\0\RaidenShogunBodyDiffuse.dds


[ResourceRaidenShogunBodyLightMap.0]
[ResourceRaidenShogunBodyLightMap.0]
filename = .\0\RaidenShogunBodyLightMap.dds
filename = .\0\RaidenShogunBodyLightMap.dds


[ResourceRaidenShogunBodyMetalMap.0]
[ResourceRaidenShogunBodyMetalMap.0]
filename = .\0\RaidenShogunBodyMetalMap.dds
filename = .\0\RaidenShogunBodyMetalMap.dds


[ResourceRaidenShogunBodyShadowRamp.0]
[ResourceRaidenShogunBodyShadowRamp.0]
filename = .\0\RaidenShogunBodyShadowRamp.jpg
filename = .\0\RaidenShogunBodyShadowRamp.jpg


[ResourceRaidenShogunDressDiffuse.0]
[ResourceRaidenShogunDressDiffuse.0]
filename = .\0\RaidenShogunDressDiffuse.dds
filename = .\0\RaidenShogunDressDiffuse.dds


[ResourceRaidenShogunDressLightMap.0]
[ResourceRaidenShogunDressLightMap.0]
filename = .\0\RaidenShogunDressLightMap.dds
filename = .\0\RaidenShogunDressLightMap.dds


[ResourceRaidenShogunDressMetalMap.0]
[ResourceRaidenShogunDressMetalMap.0]
filename = .\0\RaidenShogunDressMetalMap.dds
filename = .\0\RaidenShogunDressMetalMap.dds


[ResourceRaidenShogunDressShadowRamp.0]
[ResourceRaidenShogunDressShadowRamp.0]
filename = .\0\RaidenShogunDressShadowRamp.jpg
filename = .\0\RaidenShogunDressShadowRamp.jpg


[ResourceRaidenShogunFaceHeadDiffuse.0]
[ResourceRaidenShogunFaceHeadDiffuse.0]
filename = .\0\RaidenShogunFaceHeadDiffuse.dds
filename = .\0\RaidenShogunFaceHeadDiffuse.dds


[ResourceRaidenShogunRemapBlend.1]
[ResourceRaidenShogunRemapBlend.1]
type = Buffer
type = Buffer
stride = 32
stride = 32
filename = .\1\RaidenShogunRemapBlend.buf
filename = .\1\RaidenShogunRemapBlend.buf


[ResourceRaidenShogunPosition.1]
[ResourceRaidenShogunPosition.1]
type = Buffer
type = Buffer
stride = 40
stride = 40
filename = .\1\RaidenShogunPosition.buf
filename = .\1\RaidenShogunPosition.buf


[ResourceRaidenShogunBlend.1]
[ResourceRaidenShogunBlend.1]
type = Buffer
type = Buffer
stride = 32
stride = 32
filename = .\1\RaidenShogunBlend.buf
filename = .\1\RaidenShogunBlend.buf


[ResourceRaidenShogunTexcoord.1]
[ResourceRaidenShogunTexcoord.1]
type = Buffer
type = Buffer
stride = 20
stride = 20
filename = .\1\RaidenShogunTexcoord.buf
filename = .\1\RaidenShogunTexcoord.buf


[ResourceRaidenShogunHeadIB.1]
[ResourceRaidenShogunHeadIB.1]
type = Buffer
type = Buffer
format = DXGI_FORMAT_R16_UINT
format = DXGI_FORMAT_R16_UINT
filename = .\1\RaidenShogunHead.ib
filename = .\1\RaidenShogunHead.ib


[ResourceRaidenShogunBodyIB.1]
[ResourceRaidenShogunBodyIB.1]
type = Buffer
type = Buffer
format = DXGI_FORMAT_R16_UINT
format = DXGI_FORMAT_R16_UINT
filename = .\1\RaidenShogunBody.ib
filename = .\1\RaidenShogunBody.ib


[ResourceRaidenShogunDressIB.1]
[ResourceRaidenShogunDressIB.1]
type = Buffer
type = Buffer
format = DXGI_FORMAT_R16_UINT
format = DXGI_FORMAT_R16_UINT
filename = .\1\RaidenShogunDress.ib
filename = .\1\RaidenShogunDress.ib


[ResourceRaidenShogunHeadDiffuse.1]
[ResourceRaidenShogunHeadDiffuse.1]
filename = .\1\RaidenShogunHeadDiffuse.dds
filename = .\1\RaidenShogunHeadDiffuse.dds


[ResourceRaidenShogunHeadLightMap.1]
[ResourceRaidenShogunHeadLightMap.1]
filename = .\1\RaidenShogunHeadLightMap.dds
filename = .\1\RaidenShogunHeadLightMap.dds


[ResourceRaidenShogunHeadMetalMap.1]
[ResourceRaidenShogunHeadMetalMap.1]
filename = .\1\RaidenShogunHeadMetalMap.dds
filename = .\1\RaidenShogunHeadMetalMap.dds


[ResourceRaidenShogunHeadShadowRamp.1]
[ResourceRaidenShogunHeadShadowRamp.1]
filename = .\1\RaidenShogunHeadShadowRamp.jpg
filename = .\1\RaidenShogunHeadShadowRamp.jpg


[ResourceRaidenShogunBodyDiffuse.1]
[ResourceRaidenShogunBodyDiffuse.1]
filename = .\1\RaidenShogunBodyDiffuse.dds
filename = .\1\RaidenShogunBodyDiffuse.dds


[ResourceRaidenShogunBodyLightMap.1]
[ResourceRaidenShogunBodyLightMap.1]
filename = .\1\RaidenShogunBodyLightMap.dds
filename = .\1\RaidenShogunBodyLightMap.dds


[ResourceRaidenShogunBodyMetalMap.1]
[ResourceRaidenShogunBodyMetalMap.1]
filename = .\1\RaidenShogunBodyMetalMap.dds
filename = .\1\RaidenShogunBodyMetalMap.dds


[ResourceRaidenShogunBodyShadowRamp.1]
[ResourceRaidenShogunBodyShadowRamp.1]
filename = .\1\RaidenShogunBodyShadowRamp.jpg
filename = .\1\RaidenShogunBodyShadowRamp.jpg


[ResourceRaidenShogunDressDiffuse.1]
[ResourceRaidenShogunDressDiffuse.1]
filename = .\1\RaidenShogunDressDiffuse.dds
filename = .\1\RaidenShogunDressDiffuse.dds


[ResourceRaidenShogunDressLightMap.1]
[ResourceRaidenShogunDressLightMap.1]
filename = .\1\RaidenShogunDressLightMap.dds
filename = .\1\RaidenShogunDressLightMap.dds


[ResourceRaidenShogunDressMetalMap.1]
[ResourceRaidenShogunDressMetalMap.1]
filename = .\1\RaidenShogunDressMetalMap.dds
filename = .\1\RaidenShogunDressMetalMap.dds


[ResourceRaidenShogunDressShadowRamp.1]
[ResourceRaidenShogunDressShadowRamp.1]
filename = .\1\RaidenShogunDressShadowRamp.jpg
filename = .\1\RaidenShogunDressShadowRamp.jpg






; .ini generated by GIMI (Genshin-Impact-Model-Importer) mod merger script
; .ini generated by GIMI (Genshin-Impact-Model-Importer) mod merger script
; If you have any issues or find any bugs, please open a ticket at https://github.com/SilentNightSound/GI-Model-Importer/issues or contact SilentNightSound#7430 on discord
; If you have any issues or find any bugs, please open a ticket at https://github.com/SilentNightSound/GI-Model-Importer/issues or contact SilentNightSound#7430 on discord