Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.rq@088b2 = 4eb90002c0f06600</action>
<action>maincpu.rq@2c0f0 = 103c00014a2c00d7</action>
<action>maincpu.rq@2c0f8 = 6a064eb900008f84</action>
<action>maincpu.rq@2c100 = 4a004e75ffffffff</action>
<!--
2c0f0 | 103c 0001 : move.b #$1,D0
2c0f4 | 4a2c 00d7 : tst.b ($d7,A4)
2c0f8 | 6a06 : bpl $2c100
2c0fa | 4eb9 0000 8f84 : jsr $8f84.l
2c100 | 4a00 : tst.b D0
2c102 | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.rq@088b2 = 4eba06d04a006600</action>
<action>maincpu.rq@2c0f0 = ffffffffffffffff</action>
<action>maincpu.rq@2c0f8 = ffffffffffffffff</action>
<action>maincpu.rq@2c100 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="on">
<action>maincpu.rq@0c43e = 4eb90002c1104e71</action>
<action>maincpu.rq@0dfd6 = 4eb90002c1104e71</action>
<action>maincpu.rq@2c110 = 102c00e7322dc002</action>
<action>maincpu.rq@2c118 = 02410002660a122c</action>
<action>maincpu.rq@2c120 = 00c0020100108001</action>
<action>maincpu.rq@2c128 = 080000044e75ffff</action>
<!--
2c110 | 102c 00e7 : move.b ($e7,A4),D0
2c114 | 322d c002 : move.w (-$3ffe,A5),D1
2c118 | 0241 0002 : andi.w #$2,D1
2c11c | 660a : bne $2c128
2c11e | 122c 00c0 : move.b ($c0,A4),D1
2c122 | 0201 0010 : andi.b #$10,D1
2c126 | 8001 : or.b D1,D0
2c128 | 0800 0004 : btst #$4,D0
2c12c | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.rq@0c43e = 102c00e708000004</action>
<action>maincpu.rq@0dfd6 = 102c00e708000004</action>
<action>maincpu.rq@2c110 = ffffffffffffffff</action>
<action>maincpu.rq@2c118 = ffffffffffffffff</action>
<action>maincpu.rq@2c120 = ffffffffffffffff</action>
<action>maincpu.rq@2c128 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="attack speed up">
<script state="on">
<action>maincpu.rb@c425 = 00</action> <!-- back attack -->
<action>maincpu.rb@c495 = 02</action> <!-- weapon attack -->
<action>maincpu.rb@c593 = 00</action> <!-- chop attack -->
<action>maincpu.rb@c5dd = 00</action> <!-- normal attack -->
<action>maincpu.rb@dfbd = 00</action> <!-- back attack (rope) -->
<action>maincpu.rb@dff1 = 02</action> <!-- normal attack (rope) -->
</script>
<script state="off">
<action>maincpu.rb@c425 = 02</action>
<action>maincpu.rb@c495 = 04</action>
<action>maincpu.rb@c593 = 06</action>
<action>maincpu.rb@c5dd = 03</action>
<action>maincpu.rb@dfbd = 04</action>
<action>maincpu.rb@dff1 = 04</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter>
<item value="0x00008000">01 (slow)</item>
<item value="0x00018000">02 </item>
<item value="0x00028000">03 </item>
<item value="0x00038000">04 </item>
<item value="0x00048000">05 (fast)</item>
</parameter>
<script state="on">
<action>maincpu.rd@0dd8c = 0002c130</action>
<action>maincpu.rq@2c130 = 4eb85f32243c0000</action>
<action>maincpu.rq@2c138 = 00004a8067066a02</action>
<action>maincpu.rq@2c140 = 44822002243c0000</action>
<action>maincpu.rq@2c148 = 00004a8167066a02</action>
<action>maincpu.rq@2c150 = 448222024e75ffff</action>
<!--
2c130 | 4eb8 5f32 : jsr $5f32.w
2c134 | 243c xxxx xxxx : move.l #$xxxx,D2
2c13a | 4a80 : tst.l D0
2c13c | 6706 : beq $2c144
2c13e | 6a02 : bpl $2c142
2c140 | 4482 : neg.l D2
2c142 | 2002 : move.l D2,D0
2c144 | 243c xxxx xxxx : move.l #$xxxx,D2
2c14a | 4a81 : tst.l D1
2c14c | 6706 : beq $2c154
2c14e | 6a02 : bpl $2c152
2c150 | 4482 : neg.l D2
2c152 | 2202 : move.l D2,D1
2c154 | 4e75 : rts
-->
</script>
<script state="change">
<action>maincpu.rd@2c136 = param</action>
<action>maincpu.rd@2c146 = param</action>
</script>
<script state="off">
<action>maincpu.rd@0dd8c = 00005f32</action>
<action>maincpu.rq@2c130 = ffffffffffffffff</action>
<action>maincpu.rq@2c138 = ffffffffffffffff</action>
<action>maincpu.rq@2c140 = ffffffffffffffff</action>
<action>maincpu.rq@2c148 = ffffffffffffffff</action>
<action>maincpu.rq@2c150 = ffffffffffffffff</action>
</script>
</cheat>
The following code is test. Normal punch enables "one hit kill" but other attack (eg, jump kick) don't enable.
Code: Select all
<cheat desc="one hit kill (test)">
<comment>normal punch only</comment>
<script state="on">
<action>maincpu.rq@08784 = 4eb90002c160116c</action>
<action>maincpu.rq@2c160 = 117cffff00c94228</action>
<action>maincpu.rq@2c168 = 00d34e75ffffffff</action>
<!--
2c160 | 117c ffff 00c9 : move.b #$ff,($c9,A0)
2c166 | 4228 00d3 : clr.b ($d3,A0)
2c16a | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.rq@08784 = 117cffff00c9116c</action>
<action>maincpu.rq@2c160 = ffffffffffffffff</action>
<action>maincpu.rq@2c168 = ffffffffffffffff</action>
</script>
</cheat>