Thread: Bomb and Arrow
View Single Post
  #2  
Old 11-10-2009, 10:40 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by sssssssssss View Post
Just wondering if its normal for the bomb to not show up on a gmap at all. I also have a scripted bomb, but it wont show up on the gmap either.
arrows just repeat in the level when shot, which is kinda weird.

PHP Code:
//#CLIENTSIDE
function onWeaponFired() { 
if (
player.bombs 0) { 
  
setani("lay"NULL); 
  
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 --; 


if anyone would have a community bomb and arrow script that could fix this problem.
When you're on a map, it should just be player.x%64 and player.y%64, you don't need to multiply it by the gmap position, because it's already doing that by default, you have to localize it to the level.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote