Thread: Bombs on Gmap
View Single Post
  #12  
Old 03-19-2012, 07:50 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
PHP Code:
//#CLIENTSIDE

function onWeaponFired() {
  
player.ani "Grab";
  
temp.bombposx player.vecx(player.dir);
  
temp.bombposy player.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.
__________________
Reply With Quote