Thread: Bomb & Bow
View Single Post
  #2  
Old 06-26-2007, 04:06 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
cant you use the default ones or do want to see the script? I'm not sure hwo they do there bow probably just shootarrow and stuff here's how I would do bombs

PHP Code:
//#CLIENTSIDE
function onWeaponFired() { 
if (
player.bombs > 0) { 
  
setani("lay", NULL); 
  
freezeplayer(0.2); 
if (
isOnMap) { 
  
temp.px = player.x - (64 * getMapX(player.level)) + 0.5 + vecx(player.dir)*2; 
  
temp.py = player.y - (64 * getMapY(player.level)) + 0.5 + vecy(player.dir)*2; 
  
putBomb(1, temp.px, temp.py); 
} 
else { 
  
putbomb(1,player.x + vecx(player.dir)*2, player.y + 0.5 + vecy(player.dir)*2); 
} 
  
player.bombs --; 
} 
} 
__________________
Deep into the Darkness peering...
Reply With Quote