View Single Post
  #13  
Old 10-11-2006, 05:09 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Prozac View Post
slighlty more helpful than one line is a working script here, that every server should come with anyways:

PHP Code:
//#CLIENTSIDE
function onWeaponFired() { 
  if (
player.bombs 0) { 
  
setani("lay"""); 
  
freezeplayer(0.2); 
  if (
isOnMap) { 
  
temp.px player.- (64 getMapX(player.level)) + 0.5 vecx(player.dir)*2
  
temp.py player.- (64 getMapY(player.level)) + 0.5 vecy(player.dir)*2
  
putBomb(1temp.pxtemp.py); 
  } 
  else { 
  
putbomb(1,player.vecx(player.dir)*2player.0.5 vecy(player.dir)*2); 
   } 
  
player.bombs --; 
  }  

Don't think you need the whole isOnMap check. I thought getMapX/Y returned 0 if they weren't on a gmap.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote