For bombs:
PHP Code:
function onWeaponfired() {
freezeplayer(.1);
setani("lay",null);
temp.layx = player.x - int(player.x/64)*64 + .5 + vecx(player.dir)*2;
temp.layy = player.y - int(player.y/64)*64 + 1 + vecy(player.dir)*2;
putbomb(1,this.layx,this.layy);
}
For gralats, Stefan enabled functions for detecting when things like gralats and hearts and such are dropped, so that you can replace them easily with your own NPCs(like the scripted gralats do).