Patch:Neural stunner

From KeenWiki
Jump to navigation Jump to search

This page covers Keen's gun in Keen Galaxy, the game tile and item. For Keen Vorticons see Patch:Raygun as well as Patch:Flower Power. Related patches that can affect the ammo counter are Patch:Level exit, Patch:Keen dying (Galaxy) and Patch:Game start

Many of the patches here, especially the giving of ammunition rely on game stat values. Patches relating to Keen's neural stunner shot can be found at Patch:Keen's shot (Galaxy), while patches relating to the player themselves shooting can be found at Patch:Keen shooting (Galaxy).


Amount of shots given

This changes the amount of shots a raygun gives Keen on easy, medium and hard. This is controlled by a list which is called several times potentially allowing the creation of several kinds of ammunition. Note that the list has an entry for a difficulty level of 0, not usually seen ingame.

Keen 4

#Call ammo list
%patch $CD69 {$13D4W} #Ammo sprites got
%patch $CFDE {$13D4W} #Ammo tiles got

#Ammo stunners give Keen
%patch $30244 [$0000W] #'Zero difficulty'
              [$0008W] #Easy
              [$0005W] #Medium
              [$0005W] #Hard

Keen 5

#Call ammo list
%patch $C114 {$12B2W} #Ammo sprites got
%patch $C2F1 {$12B2W} #Ammo tiles got

#Ammo stunners give Keen
%patch $315F2 [$0000W] #'Zero difficulty'
              [$0008W] #Easy
              [$0005W] #Medium
              [$0005W] #Hard

Keen 6

#Call ammo list
%patch $BF04 {$124CW} #Ammo sprites got
%patch $C0D8 {$124CW} #Ammo tiles got

#Ammo stunners give Keen
%patch $31F7C [$0000W] #'Zero difficulty'
              [$0008W]  #Easy
              [$0005W]  #Medium
              [$0005W]  #Hard


Stunner sprites give different ammo to tiles

Since the stunner sprites and tiles both call the same ammo list under two different conditions, it's possible to have two different ammo lists. This allows stunner sprites to be more than copies of the tiles but to be much more different in appearance and function. These patches work by partially overwriting the 'keyholder points to a bad spot!' game error, a harmless change but one that should be kept in mind.

Stunner sprites can give different ammo to tiles

#Stunner sprites can give different ammo to tiles -Keen 4
%patch $CD69  {$143CW} #Ammo sprites got
%patch $302AC [$0000W] #'Zero difficulty'
              [$0008W] #Easy
              [$0005W] #Medium
              [$0005W] #Hard

#Stunner sprites can give different ammo to tiles -Keen 5
%patch $C114  {$1326W} #Ammo sprites got
%patch $31666 [$0000W] #'Zero difficulty'
              [$0008W] #Easy
              [$0005W] #Medium
              [$0005W] #Hard

#Stunner sprites can give different ammo to tiles -Keen 5
%patch $BF04  {$12B4W} #Ammo sprites got
%patch $31FE4 [$0000W] #'Zero difficulty'
              [$0008W] #Easy
              [$0005W] #Medium
              [$0005W] #Hard


IF ammo appearance condition

This patch controls the condition under which the 'IF ammo' appears. By default it appears if Keen has less than 5 shots.

IF ammo appearance condition

#Keen 4 IF ammo appearance condition
%patch $ECA6 [$05] {$7C}

#Keen 5 IF ammo appearance condition
%patch $F203 [$05] {$7C}

#Keen 6 IF ammo appearance condition
%patch $E728 [$05] {$7C}


Cheats

This is the number of shots given with the B A T Cheat and F10 I Cheat.

Keen 4

#Shots given by cheats:
%patch $755A [$0063W] #F10 + I (99)
%patch $788D [$0063W] #B + A + T (99)


Misc

When Keen acquires a certain number of shots his shot counter displays a string of text instead of the actual number of shots he has. By default at 99 or more shots the string '99' is shown. There are two counters, one for the scorebox and one for the status window. These have seperate texts, except in Keen 5 where they share the same text.

Max shot text

#Scorebox
%patch $DBBB  [$1846W] #Text called from
%patch $306B6 "99" $00

#Status window
%patch $DCAE  [$1849W] #Text called from
%patch $306B9 "99" $00


#Keen 5 :
#Scorebox and status window
%patch $CF7F  [$162EW] #Text called from
%patch $3196E "99" $00


#Keen 6 :
#Scorebox
%patch $CD32  [$164CW] #Text called from
%patch $3237C "99" $00

#Status window
%patch $CE25  [$164FW] #Text called from
%patch $3237F "99" $00