PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
player.ani = "Grab";
temp.bombposx = player.x + 1 + vecx(player.dir);
temp.bombposy = player.y + 1 + vecy(player.dir);
putbomb(1,temp.bombposx,temp.bombposy);
}
This works for me on GMAPs and normal levels. The triggeraction doesn't place the bomb perfectly, but I'm sure you can tweak about with it. I'm sure you can add bomb checks and such in by yourself too.