View Single Post
  #4  
Old 08-17-2009, 02:44 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Well it has to be clientside, with this:
//#CLIENTSIDE
at the top, and then player.bombs--; should suffice to deplete bombs. Also...
The first if checks if the player's bombs are at 0, if they are, it returns and therefor stops the rest of the function from being executed.
PHP Code:
//#CLIENTSIDE
function onWeaponfired() {
  if (
player.bombs <= 0) return;
  
player.bombs--;
  
freezeplayer(.1);
  
setani("lay",null);
  
temp.layx player.int(player.x/64)*64 .5 vecx(player.dir)*2;
  
temp.layy player.int(player.y/64)*64 vecy(player.dir)*2;
  
putbomb(1,layx,layy);


Last edited by DustyPorViva; 08-17-2009 at 03:06 AM..
Reply With Quote