Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   PutBomb on Gmap issue??? (https://forums.graalonline.com/forums/showthread.php?t=67692)

Angel_Light 07-29-2006 04:00 AM

PutBomb on Gmap issue???
 
I made a custom bomb becuase The Owner wanted one but I got it to work but it doesnt work on the gmap. Heres the script
PHP Code:

//#CLIENTSIDE
function onWeaponFired() {
if (
player.bombs 0) {
  
player.bombs player.bombs 1;
if (
player.dir==0) {
putbomb(1,player.x+0.5,player.y-0.5);
}
else if (
player.dir==1) {
putbomb(1,player.x-1,player.y+0.8);
}
else if (
player.dir==2) {
putbomb(1,player.x+0.5,player.y+1.5);
}
else if (
player.dir==3) {
putbomb(1,player.x+2,player.y+0.8);
}
}


Is this another one of those gmap bugs? Anyway to fix it?

excaliber7388 07-29-2006 04:59 AM

I would use vecx and vecy for putting bombs, less scrip and easier.
As for the gmap bug, yeah it sucks. I forget what I used, but it lags too much. I'll post it later, but it won't help you too much. You will be able to place bombs, yes, but it takes a second x_X

Rapidwolve 07-29-2006 08:49 AM

You just realized bombs dont work on gmaps now? O_o

Angel_Light 07-29-2006 09:29 AM

Quote:

Originally Posted by Rapidwolve
You just realized bombs dont work on gmaps now? O_o

Graals (chest) bombs work fine on gmap but myt customs bombs do not.

napo_p2p 07-29-2006 10:11 AM

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 --;
  }



Angel_Light 07-29-2006 09:18 PM

Thanks Napo ^o^

calani 07-30-2006 07:24 PM

ew normal bombs

make graphic explosions and a custom hp system
*nods*


All times are GMT +2. The time now is 06:08 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.