News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

ASM Help

Started by Mettyk25jigsaw, May 02, 2018, 05:09:49 AM

Previous topic - Next topic

Mettyk25jigsaw

Hi, I am wondering if anyone can help me, I am wanting to make the wave beam function like a normal beam and not go through walls which I have been able to do with someone's help...However I am now wanting the wave beam to function as a wave beam normally does in certain rooms so that it will go through walls in these rooms, so I will need to have a door asm that will activate the wave beam ability for the door loading into these rooms. And will also need to have a door asm that will deactivate it going out of these rooms. Noting that I also wish for the charged wave beam to also go through the wall.
   If anyone would kindly help me, it would be greatly appreciated...Thankyou...Comes with credit for my hack...

PHOSPHOTiDYL

I can point you in the rite direction...

Behaviour
Behaviour array is located at 8396E. In Spazer + Plasma mixing patch it's relocated to 87F80 and extended. Each word is a pointer to code in bank $90 for execute.
Effect is based on pointer:

AEF3: strike solid surfances.
B0E4: go through walls (for uncharged wave). Trails keeps for a 3 frames.
B0C3: go through walls (for uncharged wave). Trails keeps for a 4 frames.
This array is the root of all evil. Extending it was enough to make Spazer + Plasma combo works. And selecting Ice + Spazer + Plasma in original game make use value at 8398A as a pointer, which is not a pointer, jumping to 82D16 and executing code there, starting from wrong operator in the middle of subroutine.