News:

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

Main Menu

[SM] Separating Charge/Hyper Beam vulnerability

Started by Cloud20, April 30, 2013, 01:26:51 PM

Previous topic - Next topic

Cloud20

Hi people

I have a problem for the new beam/patch I'm working on

I want to separate the vulnerability of white gates (opening originally with machine gun)

Now I need :
- The charge beam shouldn't open enemy/white gate
- The Hyper Beam must open the white gate

The problem is that in vulnerability pointer, charge and hyper are included in the same byte.

Someone can help me ?

Black Falcon

This has been solved on IRC already, but I'll repost the code here for those who were wondering:

Change the shot AI of enemy DFB5 ("B-shutter" enemy) to F498.
Then at A2F498 (pc 117498) write the following:

AE340EAD760AD00DDAADA6180AAA2206AE90FA8004223DA6A022B6F0A26B

What this does:
If hyperbeam is disabled, ANY fired projectiles (also wave and missiles) will be destroyed upon contact as if they'd hit a wall.
If it is enabled, the normal vulnerability table is used.

Smiley

AE 34 0E AD 76 0A D0 0D DA AD A6 18 0A AA 22 06 AE 90 FA 80 04 22 3D A6 A0 22 B6 F0 A2 6B

Just made it a bit easier to see

Cloud20

#3
Thanks a looooooooooooooooot guys  :yay: