Missing "throw" (Hawkeye effect) Animations
#1
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:
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!!
Reply
#2
Take a look at C1/B9C5. There's data at $D10040 (one byte per item) that determines what the throw and jump animation will be. Add one to the item index to find the byte for your weapon (i.e. for Doom Darts, edit $D10090). The format for the byte looks like this:


Code:
djjjtttt
d: use normal "Fight" animation when thrown (ignore "t" value)
j: jump animation
  0 = unarmed
  1 = thick knife
  2 = thin knife
  3 = sword
  4 = katana
  5 = rod
  6 = spear
  7 = hawk eye/sniper
t: throw animation
  0 = thick knife
  1 = thin knife
  2 = sword
  3 = katana
  4 = rod
  5 = spear
  6 = hawk eye/sniper
  7 = ???
  8 = fire skean
  9 = water edge
  10 = bolt edge
  11 = inviz edge
  12 = shadow edge
  13 = full moon/morning star/rising sun
  14 = boomerang
  15 = ???
Reply
#3
Well, it certainly took me some time to figure it out (surprisingly), but this worked! I had trouble noticing that the 8 at "j" meant "ignore throw anim."
I also had trouble translating "djjjtttt" when a byte is just two elements xD I'm a dope.

So, yes, basically for each weapon, there's a byte composed by two numbers: the first one determines the jump animation, and the second the throw animation, each represented by the above table. Just laying this here if I get confused next time. Thank you!
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!!
Reply
#4
So to be sure I understand this, this stuff here.

[Image: ThrowJump_zpsmzhrvnd0.png]

in the highlighted bit, 2 is the Jump animation, 1 is the Throw animation, for Weapon #6?
Reply
#5
Indeed looks like that. As I said, first number 2 is the jump anim, and the second number 1 is the throw anim.
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!!
Reply
#6
Hm. Because mine isn't working. I made Item 25 a spear and changed its animation here as shown, but in-game it's a sword.

[Image: Spear_zpsezny08on.png]
Reply
#7
Don't quote me on this, but looks like the following byte is actual sword animation. Maybe you mistook the item you're editing?
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!!
Reply
#8
Nope. 6, 5 - Spear.
Reply
#9
No, the item NUMBER, as in you think you're editing item 25 but you're editing 24. Just a guess, again.
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!!
Reply
#10
Yup, everything is shifted forward one. So item 25 is actually 26. Okay then, thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  "Extracting" Battle Animations from Game QnzBrd6502 15 3,875 03-28-2025, 04:21 PM
Last Post: QnzBrd6502
  Help With Battle Animations MotherngQuee 0 787 04-05-2024, 08:56 AM
Last Post: MotherngQuee
  New Status Effect - Old Xontract 3 2,456 01-08-2024, 12:26 PM
Last Post: Warrax
  Throw Fire/Ice/Thunder Rod Glitch doofenH 0 1,349 11-20-2022, 07:45 AM
Last Post: doofenH
  Air Anchor door: Opposite effect with hidden switch? FlamePurge 2 2,107 08-28-2020, 12:42 PM
Last Post: FlamePurge
Summoner Undead status and "randomly kill" (assassin) effect Lightning 0 1,439 04-14-2019, 04:55 PM
Last Post: Lightning
  Changing Umaro's Throw to Another Profile PowerPanda 3 3,139 07-17-2018, 09:25 AM
Last Post: GrayShadows
  Changing attack to throw animation Yoshivoodoo 6 5,176 05-02-2018, 12:46 AM
Last Post: Everything
  Item + Throw. Is it possible? Denis Colli 6 6,305 03-08-2016, 09:06 PM
Last Post: Denis Colli
  Change the Health command effect Blue Mage Gab 18 15,639 12-08-2015, 08:31 AM
Last Post: Zozma

Forum Jump:


Users browsing this thread: 1 Guest(s)