Users browsing this thread: 6 Guest(s)
Edit Chainsaw codes

#23
Posts: 315
Threads: 20
Thanks Received: 0
Thanks Given: 2
Joined: Dec 2017
Reputation: 2
Status
None
(04-09-2021, 05:59 PM)assassin Wrote: because X-Kill/Scimitar writes an additional entry to the animation buffers, it will be tricky.  with this being done at the END of that function, a caller can't readily skip it.  instead, you'll probably have to undo it.

i'm thinking you'll need to:
1) null out the buffer data that makes the game think there's another animation to depict.  i'm not sure what's required, but suspect that:
a. for the 4-byte $76 buffer, one step is to "null" (set to Mimic, 12h) the equivalent of $B5.  another is to FFh-null $B7.  do with "LDA #$12 / STA $B5 / LDA #$FF / STA $B7 / JSR $35BB" or "LDA #$12 / STA $2D77 / LDA #$FF / STA $2D79".
b. for the 16-byte $78 buffer, make use of a preexisting function to clear it: "JSR $6400 / JSR $63DB".
2) subtract 4 from $3A72, the ($76) buffer pointer, so as to "free" the no longer used entry.
3) subtract 16 from $3A32, the ($78) buffer pointer, so as to "free" the no longer used entry.

EDIT: err, i think you'll need to do Step 3 before 1b so it edits the proper buffer entry.  that is:
Step 1a
Step 2
Step 3
Step 1b
Step 3 again

now, it's possible that some steps, in particular, #2 and the repeat of #3, are unnecessary albeit logical.  you might be able to get away with just the $B5-related revision, and maybe zeroing $A2 - $A5 then doing a $63DB call.

oh, AAAND you likely also want to revert the marking of Hide done at C2/38E4 - C2/38EB.

...... motherfucker, the list just keeps piling up!!  depending on how much undoing is actually required, an epiphany i just had could apply:

copy+paste the portions of C2/388D that you actually want to keep. Tongue

that is, C2/3891 thru 3897, C2/389F thru 38AA, and C2/38CA thru 38D3 (with me being unsure on inclusion of "STZ $341D'').

Maybe I am not understanding your post correctly, but I don't see this patch modifying those locations (like C2/3891 through 3897, etc.)  If it isn't too much to ask, can you possibly update the original code by Warrax? To reiterate, I am just looking to have the Chainsaw perform the instant death move the way it used to with the default death animation, but retaining the other parts of the patch. That is, not performing an instant death move to monsters immune to death.

original code posted by warrax:


Code:
C2/2B24: 35 2B (New Drill pointer, this line must be changed)

C2/2B30: A99E LDA #$9E
C2/2B32: 8DA911 STA $11A9 (Use effect 4F)
C2/2B35: A920 LDA #$20
C2/2B37: 0CA211 TSB $11A2 (Set ignore defense)
C2/2B3A: 60 RTS
C2/2B3B: 208D38 JSR $388D (Use “Slice” subroutine)
C2/2B3E: A5B5 LDA $B5
C2/2B40: C902 CMP #$02
C2/2B42: D005 BNE $2B49 (Check for command == “Magic”)
C2/2B44: A908 LDA #$08
C2/2B46: 8D742D STA $2D74 (Set animation to “kill mode”)
C2/2B49: 60 RTS

C2/2B4A: EAEAEA
C2/2B4D: EAEAEA
C2/2B50: EAEAEA
  Find
Quote  



Messages In This Thread
Edit Chainsaw codes - by doofenH - 02-26-2020, 08:32 AM
RE: Edit Chainsaw codes - by PowerPanda - 02-26-2020, 04:47 PM
RE: Edit Chainsaw codes - by Warrax - 02-27-2020, 03:38 PM
RE: Edit Chainsaw codes - by doofenH - 04-16-2020, 12:47 PM
RE: Edit Chainsaw codes - by seibaby - 04-16-2020, 01:33 PM
RE: Edit Chainsaw codes - by doofenH - 04-16-2020, 09:40 PM
RE: Edit Chainsaw codes - by Warrax - 04-17-2020, 11:05 PM
RE: Edit Chainsaw codes - by doofenH - 04-19-2020, 06:36 AM
RE: Edit Chainsaw codes - by Warrax - 05-02-2020, 03:53 PM
RE: Edit Chainsaw codes - by SSJ Rick - 04-17-2020, 11:05 AM
RE: Edit Chainsaw codes - by Lightning - 03-07-2021, 08:32 PM
RE: Edit Chainsaw codes - by assassin - 03-07-2021, 11:35 PM
RE: Edit Chainsaw codes - by Lightning - 03-08-2021, 12:20 AM
RE: Edit Chainsaw codes - by assassin - 03-08-2021, 12:43 AM
RE: Edit Chainsaw codes - by Lightning - 03-08-2021, 01:50 AM
RE: Edit Chainsaw codes - by assassin - 03-08-2021, 02:06 AM
RE: Edit Chainsaw codes - by Lightning - 03-08-2021, 02:39 AM
RE: Edit Chainsaw codes - by Lightning - 04-09-2021, 04:49 PM
RE: Edit Chainsaw codes - by assassin - 03-08-2021, 08:04 AM
RE: Edit Chainsaw codes - by Lightning - 03-08-2021, 04:23 PM
RE: Edit Chainsaw codes - by Warrax - 03-09-2021, 05:40 PM
RE: Edit Chainsaw codes - by assassin - 04-09-2021, 05:59 PM
RE: Edit Chainsaw codes - by Lightning - 04-09-2021, 08:25 PM
RE: Edit Chainsaw codes - by assassin - 04-09-2021, 10:08 PM
RE: Edit Chainsaw codes - by Lightning - 04-10-2021, 12:21 AM
RE: Edit Chainsaw codes - by assassin - 04-10-2021, 08:47 AM
RE: Edit Chainsaw codes - by Drakkhen - 04-10-2021, 11:15 AM
RE: Edit Chainsaw codes - by Lightning - 04-11-2021, 07:54 PM

Forum Jump:

Users browsing this thread: 6 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite