Cheats

Completed patches for Keen4.
Post Reply
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Cheats

Post by levellass »

Here are all the patches have made for my mod viz-a-viz cheats; some may take a bit of fiddling, but basically they're either disablings, window modifications or cheat modifications.

First the well known text patches:

Code: Select all

#Cheat code text (2EE70 + value = location)
%patch $2F4DD "Debug keys active" $00
%patch $2F314 "WORKING" $00 # Used by cheat F10+Y
%patch $2F362 " Border color (015):" $00 # Used by cheat F10+B
%patch $2F378 "God mode OFF" $00 
              "God mode ON" $00
%patch $2F391 "Free items!" $00 # Used by cheat F10+I
%patch $2F39D "Jump cheat ON" $00 
              "Jump cheat OFF" $00
%patch $2F3BA "No clipping ON" $00
              "No clipping OFF" $00
%patch $2F3D9 "Slow motion ON" $00
              "Slow motion OFF" $00
%patch $2F3F8 " Add how many extra VBLs(08):" $00
%patch $2F418 " Warp to which level(118):" $00
%patch $2F435 "Cheat Option!" $0A $0A
              "You just got all" $0A
              "the keys, 99 shots," $0A
              "and an extra keen!" $00
%patch $2F483 "C:>" $00 # text displayed in "boss cheat" screen
Now the good stuff; disable most of the cheats, render your players helpless!

Code: Select all

#Disable all F10 cheats!
%patch $749E $5F $5E $8B $E5 $5D $CB
Now the individual cheats:

Code: Select all

#A2Enter
%patch $82D9 $5F $5E $5D $C3 #Disable
%patch $82EE $02 $00         #Window height
%patch $82F2 $14 $00         #Window width
%patch $8303 $6D $06         #Text called from (2EE70 + value = location)

#F10+Y
%patch $7248 $5F $5E $8B $E5 $5D $CB #Disable
%patch $724E $03 $00                 #Window height
%patch $7252 $18 $00                 #Window width
%patch $725D $A4 $04                 #Text called from

#Border color
%patch $73C8 $5F $5E $8B $E5 $5D $CB #Disable
%patch $73CE $03 $00                 #Window height
%patch $73D2 $18 $00                 #Window width
%patch $73E3 $F2 $04                 #Text called from

#Godmode
%patch $74CC $5F $5E $8B $E5 $5D $CB #Disable
%patch $74D2 $02 $00                 #Window height
%patch $74D6 $0C $00                 #Window width
%patch $74F7 $15 $05                 #Text called from (ON)
%patch $74E9 $08 $05                 #Text called from (OFF)

#Free items
%patch $7521 $5F $5E $8B $E5 $5D $CB #Disable
%patch $7527 $03 $00                 #Window height
%patch $752B $0C $00                 #Window width
%patch $7537 $21 $05                 #Text called from
%patch $754E $63 $00                 #Set gems to 99 (Give 99 of all)
%patch $755A $63 $00                 #Shots set to
%patch $7560 $01 $00                 #Wetsuit set to
%patch $756D $B8 $0B                 #Points given
%patch $754C $5A $7A $0x $00         #Cheat sets council members saved to this
%patch $754C $56 $7A $0x $00         #Sets 'Next' score to x*$10000 to when used
%patch $754C $62 $7A $01 $00         #Give 3 gems
%patch $754C $64 $7A $01 $00         #Give 2 gems
%patch $754C $66 $7A $01 $00         #Give 1 gem

#Jump cheat
%patch $7583 $6B     #Disable
%patch $7593 $03 $00 #Window height
%patch $7597 $12 $00 #Window width
%patch $75AA $2D $05 #Text called from (ON)
%patch $75B8 $3B $05 #Text called from (OFF)

#No clipping
%patch $75F1 $5F $5E $8B $E5 $5D $CB #Disable
%patch $75F7 $03 $00                 #Window height
%patch $75FB $12 $00                 #Window width
%patch $7611 $4A $05                 #Text called from (ON)
%patch $7628 $59 $05                 #Text called from (OFF)
%patch $760C $00 $00                 #Only allow clipping ON (Keen can't turn no clipping off!)
%patch $7622 $00 $00                 #Allow window, but clipping doesn't change.

#Slow motion
%patch $7671 $75                     #Disable
%patch $7681 $03 $00                 #Window height
%patch $7685 $12 $00                 #Window width
%patch $7698 $69 $05                 #Text called from (ON)
%patch $76A6 $78 $05                 #Text called from (OFF)
%patch $767B $5F $5E $8B $E5 $5D $CB #Can only turn slow motion ON

#Add VBLs (These slow the game, 8 is half speed, 4  is 75% speed, etc)
%patch $76E2 $5F $5E $8B $E5 $5D $CB #Disable
%patch $76E8 $03 $00                 #Window height
%patch $76EC $1E $00                 #Window width
%patch $76FD $88 $05                 #Text called from

#Level warp
%patch $7775 $5F $5E $8B $E5 $5D $CB #Disable
%patch $777B $03 $00                 #Window height
%patch $777F $1A $00                 #Window width
%patch $7790 $A8 $05                 #Text called from

#Exit level (F10 + E)
%patch $7467 $5F $5E $8B $E5 $5D $CB #Disable
And finally the remaining cheats:

Code: Select all

#Cheat option (BAT)
%patch $7840 $30     #Disable
%patch $785A $07 $00 #Window height
%patch $785E $14 $00 #Window width
%patch $786F $C5 $05 #Text called from
%patch $788D $63 $00 #Shots given
%patch $7894 $01 $00 #Keys given (1 of each)

%patch $12A4A $01 $00 #Wetsuit sets 'Wetsuit value to' (Gives 1)
%patch $5CCF  $05 $00 #Shots Keen starts with

#PAUSED window (When loading a saved game or F10 + P)
%patch $78F0 $5F $5E $8B $E5 $5D $CB #Disable
%patch $78F6 $03 $00                 #Window height
%patch $78FA $08 $00                 #Window width
%patch $7906 $0C $06                 #Text called from

#Boss cheat
%patch $796A $13 $06 #Text called from
Post Reply