Let's do this easy to hard.
First up the Vitalin keg:
Code: Select all
#What Kegs increase
%patch $C102 $6F58W
Next you want the shooter to act like an ice cube. This makes the shots move horizontally. (There's probably a more elegant patch, but eh.) Note that this patch is INCOMPATIBLE with speed changing patches for the shots since it rearranges their speeds. The speeds are contained here, $0040W and $FFC0W, change THEM to change the shot speeds.
Code: Select all
#Shots move diagonally upwards
%patch $10F58 $8B $1E $40 $9E $C7 $47 $16 $FFC0W $EB $16 #Left move upwards
$8B $1E $40 $9E $C7 $47 $18 $0040W $EB $14
$8B $1E $40 $9E $C7 $47 $16 $0040W $90 $90 #Right moves upwards
$8B $1E $40 $9E $C7 $47 $18 $FFC0W
#Directions shots are spawned:
%patch $10FA1 $1659W #Up (At $10F79)
$164EW #Right (At $10F6E)
$1643W #Down (At $10F63)
$1638W #Left (At $10F58)
Next we have to make Keen transform when shot. This is easier than I thought but you'll possibly need to customize his stunned action some.
Code: Select all
#Shots use transform code
%patch $10FB6 $06B90E68RL
#Custom collision: Transform
%patch $79F6 $EB $5C
%patch $79F8 $55 $8B $EC $83 $3E $BC91W $00 $75 $2A $B8 $0B94W $50 $FF
$36 $3E $9E $9A $090B1242RL $83 $C4 $04 $B8 $0017W $50 #Stun sound
$9A $196E09EFRL $83 $C4 $02 $8B $1E $3E $9E $C7 $47 $18
$FFD8W $C7 $47 $16 $0010W $5D $CB #Stunned Keen speeds
#Keen stunned action =$0B94W
%patch $30ED4 $008CW $008CW $0003W $0000W $0000W $0190W $0000W $0000W
$090B1710RL $0AAF1597RL $090B17B5RL $0888W
#Keen can die while stunned
%patch $C021 $90 $90
Now there are a few things to note here. First of all here Keen cannot be stunned in God Mode. (This can be removed.) Secondly Keen can be killed while stunned. (This too can be removed.) Thirdly the 'stun sound' here is the same as his dying sound, you'll probably want to change that. A list of Keen 5 sounds is here:
http://www.shikadi.net/keenwiki/Patch:Sounds#Keen_5
Keen's stun speed is set in the last line of the big paragraph. It's vertical $FFD8W and horizontal $0010W or up and to the right. You'll want to tweak those. I do not know how to make different shots bounce Keen differently.
Keen's stunned animation is $008CW, the same as one of his death animations, again you'll probably want to change that. I am not sure, but there may be issues with stunned Keen landing on platforms or something, if so do mention them.
Keen's stun-recovery time is $0190W, same as Keen 1 I think.
And that's that for now.