03-26-2016, 07:07 PM
(This post was last modified: 03-26-2016, 08:51 PM by Kugawattan.)
Hi everybody.
I'm having some weapons have the "throw" effect of the Sniper/Hawkeye weapons, with modified code to do x1.5 damage to every enemy 50% of the time.
And while I am getting the damage, I'm not getting the animation. I'm not getting ANY animation, in fact. It looks like a regular attacks like the others.
The item I'm changing is 79, previously a Card weapon, Doom Darts. The new weapon doesn't have any usME flag other than "2 hands" and "SwdTech". Obviously, in extra effects, there's the "Randomly throw weapon."
Any ideas? I'm specifically looking for the knife throw animation.
Thanks in advance!
Also, just in case:
What I have is EA'd C2/3905, C2/3908 and, in C2/3910, C2/3912 and C2/3914, the BC bytes.
I'm having some weapons have the "throw" effect of the Sniper/Hawkeye weapons, with modified code to do x1.5 damage to every enemy 50% of the time.
And while I am getting the damage, I'm not getting the animation. I'm not getting ANY animation, in fact. It looks like a regular attacks like the others.
The item I'm changing is 79, previously a Card weapon, Doom Darts. The new weapon doesn't have any usME flag other than "2 hands" and "SwdTech". Obviously, in extra effects, there's the "Randomly throw weapon."
Any ideas? I'm specifically looking for the knife throw animation.
Thanks in advance!
Also, just in case:
Code:
Sniper/Hawk Eye effect
C2/38FE: 20 53 4B JSR $4B53 (random: 0 or 1 in Carry flag)
C2/3901: 90 FA BCC $38FD (50% chance exit)
C2/3903: E6 BC INC $BC (Add 1 to damage incrementor)
C2/3905: B9 F9 3E LDA $3EF9,Y
C2/3908: 10 F3 BPL $38FD (Exit if not target not Floating)
C2/390A: A5 B5 LDA $B5
C2/390C: C9 00 CMP #$00
C2/390E: D0 ED BNE $38FD (Exit if command not Fight?)
C2/3910: E6 BC INC $BC
C2/3912: E6 BC INC $BC
C2/3914: E6 BC INC $BC (Add another 3 to damage incrementor)
C2/3916: A9 08 LDA #$08
C2/3918: 85 B5 STA $B5 (Store Throw for *purposes of animation*)
C2/391A: A5 B7 LDA $B7 (get graphic index)
C2/391C: 3A DEC
C2/391D: 85 B6 STA $B6 (undo earlier adjustment, save as Throw parameter)
C2/391F: 4C BB 35 JMP $35BB (Update a previous entry in ($76) animation buffer
with data in $B4 - $B7)
What I have is EA'd C2/3905, C2/3908 and, in C2/3910, C2/3912 and C2/3914, the BC bytes.
Step forward, spriters! We are also responsible to make hacks look new and fresh, we are no less important than code or ASM hackers! CHARGE!!