the idea is to wait for the bomb to explode, and just drop another explosion in the exact same place. so ya, both explosions happen at the same time. one is meant to hurt enemys, one is meant to hurt link.
here's the code. Set the constants. call BombBlastFlake(); in your global loop before Waitdraw();
totally untested.
superbombs could be added easily if you're faking those too.
const int LW_MISC_MARKED = 0; // index to the misc array for an lweapon. value 0-15. choose something unused by other scripts.
const int BOMB_DAMAGE_TO_LINK = 0; // the damage that Link's own bomb should hurt him.
void BombBlastFake()
{
lweapon w;
eweapon ew;
for (int i = Screen->NumLWeapons(); i > 0; i--)
{
w = Screen->LoadLWeapon(i);
if (w->ID == LW_BOMBBLAST && w->Misc[LW_MISC_MARKED] != 1)
{
w->Misc[LW_MISC_MARKED] = 1;
ew->X = w->X;
ew->Y = w->Y;
ew->Damage = BOMB_DAMAGE_TO_LINK;
}
}
}
Edited by justin, 04 April 2016 - 09:23 PM.