Yorp tweaks (Korath replacement)

Request patches for Keens 4-6.
Post Reply
User avatar
Nisaba
Posts: 287
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Yorp tweaks (Korath replacement)

Post by Nisaba » Tue Mar 28, 2017 9:46 am

hey there everybody,
I'd like to tweak DrColossus' Marooned on Mars mod a tiny little bit. But therefore I need some patching help. I'm looking for a patch that makes the Yorp (Korath) randomly jump around like seen in Keen 1. here is an example output:
Image

and this is the existing Yorpish code:

Code: Select all

###############
# Korath Yorp #
###############
%patch $31AA4 $0133W # Korath Cache end four extra sprites

# 3 new Standing animations. From Spirougrip
%patch $334A6 $298CW # normal standing goes to spirogrip spin5
%patch $32CCC $0130W $0130W  $0000W       $0000W $0001W        $001EW       $0000W   $0000W
              $00000000L     $037D0520RL  $090B17DCRL          $29AAW

%patch $32CEA $012EW $012EW  $0000W       $0000W $0001W        $001EW       $0000W   $0000W
              $00000000L     $037D0520RL  $090B17DCRL          $29C8W

%patch $32D08 $0131W $0131W  $0000W       $0000W $0001W        $001EW       $0000W   $0000W
              $00000000L     $037D0520RL  $090B17DCRL          $30D2W

#Korath uses new collision
%patch $33426 $037D0520RL
%patch $33444 $037D0520RL
%patch $33462 $037D0520RL
%patch $33480 $037D0520RL
%patch $3349E $037D0520RL

#Disable EGAGRAPH check in Keen 5 (Frees 389 bytes at $3CF0)
%patch $3CDF $90 $90

#New collision, stunnable, shootable, pushes Keen =$037D0520RL
%patch $3CF0 $55 $8B $EC $56 $57 $8B $7E $06 $8B $76 $08 $83 $3C $02 $75 $49 #React to Keen
             $81 $7C $1C $0FEAW  $72 $29 $81 $7C $1C $11ACW  $77 $22 $B8     #Check Keen in air
         $2662W  $50 $57 $9A $090B1242RL     $83 $C4 $04 $B8 $0024W  $50 $9A
             $196E09EFRL     $83 $C4 $02 $C7 $45 $3E $0000W  $5F $5E $5D $CB
             $8B $5C $1C $8B $47 $14 $0B $47 $16 $74 $0E $57 $56 $9A
     $090B0CD2RL     $83 $C4 $04 $5F $5E $5D $CB $83 $3C $03 $75 $0E $B8     #Push Keen, react to Keen's shot
         $3168W  $50 $56 $57 $9A $090B16CDRL     $83 $C4 $06 $5F $5E $5D $CB #Be stunned

#Stunned collision -can't be restunned or push Keen, just shot =$037D0590RL
%patch $3D60 $55 $8B $EC $56 $57 $8B $7E $06 $8B $76 $08 $EB $DC

#Stunned Yorp behavior, count up to unstunning =$037D059DRL
%patch $3D6D $55 $8B $EC $56 $8B $76 $06 $FF $44 $3E $8B $44 $3E $3D $0010W
             $72 $05 $C7 $44 $1C $29E6W  $5E $5D $CB

#Last stunned yorp
%patch $32D26 $0133W $0133W $0002W      $0000W $0000W $000EW   $0000W $0000W
              $090B1710RL    $037D0590RL $11C40BAARL   $298CW

%patch $127EA $55 $8B $EC $56 $8B $76 $06 $83 $7C $38 $00 $75 $06 $83 $7C $3C
             $00 $74 $05 $C7 $44 $16 $0000W  $83 $7C $3A $00 $74 $05 $C7 $44
             $18 $0000W  $83 $7C $36 $00 $74 $28 $C7 $44 $18 $0000W  $8B $5C
             $1C $83 $7F $1C $00 $74 $0E $FF $77 $1C $56 $9A $090B1242RL   
             $83 $C4 $04 $EB $0C $56 $9A $06B91E47RL     $83 $C4 $02 $5E $5D
             $CB
                 $FF $74 $20 $33 $C0 $50 $FF $74 $1E $FF $74 $0C $FF $74 $0A
             $8B $C6 $05 $46 $00 $50 $9A $174E163ERL     $83 $C4 $0C $5E $5D
             $CB


#Stunned Yorp loop
%patch $329A2 $0132W $0132W $0000W      $0000W $0000W $000EW   $0000W $0000W
              $037D059DRL   $037D0590RL $0F920119RL   $2680W
%patch $329C0 $0133W $0133W $0000W      $0000W $0000W $000EW   $0000W $0000W
              $037D059DRL   $037D0590RL $0F920119RL   $2662W
thanks in advance!

Post Reply