Keen 1 Ammo Request

Request patches for Keens 1-3.
Post Reply
User avatar
Paramultart
Posts: 86
Joined: Sun Jul 11, 2010 2:19 pm
Contact:

Keen 1 Ammo Request

Post by Paramultart »

Hey there.
My request is pretty simple... I want ammo to be unlimited, have a constant stream, and an arc (gravity).
Think of it as... a squirt gun of sorts.
This is for a mod that is (mostly) already done but just needs some kinks worked out. You will be credited, obviously.

Thank you!
User avatar
Fleexy
Site Admin
Posts: 490
Joined: Fri Dec 12, 2008 1:33 am
Location: Bloogton Tower

Post by Fleexy »

Code: Select all

%patch $3E24 $90 $90
%patch $3E3B $90 $90 $90 $90
%patch $3E5B $90 $90 $90
%patch $3E2D $AAC8W $90 $90
%patch $7CD8 $55 $8B $EC $56 $E8 $E2DEW  $8B $F0 $C7 $04 $000FW  $8B $46 $06
             $8B $56 $04 $89 $54 $04 $89 $44 $06 $8B $46 $0A $8B $56 $08 $81
             $C2 $00 $09 $15 $0000W  $89 $54 $08 $89 $44 $0A $C7 $44 $32 $7E29W
                 $C7 $44 $22 $FFFEW
Tweak that $FFFE to change how fast it goes down.
User avatar
Paramultart
Posts: 86
Joined: Sun Jul 11, 2010 2:19 pm
Contact:

Post by Paramultart »

W's in hex? :/
Nospike
Posts: 160
Joined: Fri Apr 23, 2010 1:54 pm
Location: Some cool place, idk

Post by Nospike »

The Ws are okay, leave them there. They mark the value as a word type.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

And if CK1Patch gets mad at you, you're using the old person's version.
User avatar
Paramultart
Posts: 86
Joined: Sun Jul 11, 2010 2:19 pm
Contact:

Post by Paramultart »

That must be it...
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

It's literally impossible to patch Keen Galaxy without W and RL patches, so an improved version of CKPatch needed to be made.
User avatar
Paramultart
Posts: 86
Joined: Sun Jul 11, 2010 2:19 pm
Contact:

Post by Paramultart »

Well, the game loads, but turns black when the level starts up.
I was hoping Fleexy wouldn't write the patch because crediting him in an 18+ mod seems grossly inappropriate. I appreciate your effort though, Fleex.
User avatar
troublesomekeen
Posts: 223
Joined: Fri Feb 03, 2012 7:56 pm
Location: Shadowlands
Contact:

Post by troublesomekeen »

Paramultart wrote:Well, the game loads, but turns black when the level starts up.
Same thing happens for me, too. And I'll be darned if I don't have the latest CKPatch.
Paramultart wrote:My request is pretty simple... I want ammo to be unlimited, have a constant stream, and an arc (gravity).
Think of it as... a squirt gun of sorts.

I was hoping Fleexy wouldn't write the patch because crediting him in an 18+ mod seems grossly inappropriate. I appreciate your effort though, Fleex.
Didn't see that coming.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

This patch is close, but no cigar. It contains a number of simple mistakes that bust it.

This gives a constant, infinite stream of ammo that obeys the law of gravity. It's quite amusing to watch.

The upwards speed here is $FF80W, tweak this to change the path.

Code: Select all

#Constant, infinite stream of ammo
%patch $3E24 $90 $90
%patch $3E3B $90 $90 $90 $90
%patch $3E5B $90 $90 $90
%patch $3E3B $90 $90 $90 $90
%patch $46F3 $3360W

#Keen's shot obeys gravity
%patch $4808 $55 $8B $EC $56 $E8 $E45EW  $8B $F0 $0B $C0 $74 $2B $B8 $0025W 
             $50 $E8 $76D7W  $44 $44 $C7 $06 $20 $82 $000DW  $C7 $06 $52 $82
             $47E8W  $E8 $78A1W  $3D $0080W  $7E $08 $C7 $06 $48 $82 $006EW
             $EB $06 $C7 $06 $48 $82 $006FW  $E8 $E3E7W $5E $5D  $C3

#Shot speed
%patch $46EE $FF80W #Up
%patch $4704 $0190W #Right speed
%patch $4779 $FE70W #Left speed
User avatar
Paramultart
Posts: 86
Joined: Sun Jul 11, 2010 2:19 pm
Contact:

Post by Paramultart »

levellass wrote:This patch is close, but no cigar. It contains a number of simple mistakes that bust it.

This gives a constant, infinite stream of ammo that obeys the law of gravity. It's quite amusing to watch.

The upwards speed here is $FF80W, tweak this to change the path.

Code: Select all

#Constant, infinite stream of ammo
%patch $3E24 $90 $90
%patch $3E3B $90 $90 $90 $90
%patch $3E5B $90 $90 $90
%patch $3E3B $90 $90 $90 $90
%patch $46F3 $3360W

#Keen's shot obeys gravity
%patch $4808 $55 $8B $EC $56 $E8 $E45EW  $8B $F0 $0B $C0 $74 $2B $B8 $0025W 
             $50 $E8 $76D7W  $44 $44 $C7 $06 $20 $82 $000DW  $C7 $06 $52 $82
             $47E8W  $E8 $78A1W  $3D $0080W  $7E $08 $C7 $06 $48 $82 $006EW
             $EB $06 $C7 $06 $48 $82 $006FW  $E8 $E3E7W $5E $5D  $C3

#Shot speed
%patch $46EE $FF80W #Up
%patch $4704 $0190W #Right speed
%patch $4779 $FE70W #Left speed
Oh wow, this turned out great.
An unexpected but welcome side effect is that the robot bullets have gravity as well. This leads to some very interesting game-play dynamics, like monsters shooting down at you from atop platforms.
Thank you!
Cobalt
Posts: 20
Joined: Wed Apr 03, 2013 2:15 pm

Post by Cobalt »

I'm gonna use this patch to make sonic pee on robots.
Post Reply