![]() |
gmap + explosions = no work
Anyone know why putexplosion does not work on my gmap?
It works on indoor levels on my server but not on the map. I found this eight month old thread where it was still a problem, http://forums.graalonline.com/forums...explosion+gmap surely two thirds of a year has been enough time to address it ... so, what is the fix to make explosions work in an npc on a gmap? |
Are you using a flat or 3d gmap?
|
it's a flat map ... why do you ask?
|
It Works! warpto 30 30
then try, the gmap adds levels, it works on the very top left level, but no others , the x and y of mouse is no longer the size of the level but the size of the gmap mousex x-position of the mouse in the "LEVEL mousey y-position of the mouse in the "LEVEL as stated in the commands text document in C: \ Graal2001 other commands may fix this, there is a worldx and worldy script although i havent used them before, not sure how exactly they work: worldx(x,y) worldy(x,y) convert screen positions (e.g. mousescreenx) to level coordinates; you must specifiy both x and y so that the functions works correctly on Graal2002 terrain I will get back to you after i have tested it |
putexplosion is deprecated. >=p
|
PHP Code:
walking right until the next level keep firing that weapon, as you see the mousex and mousey of the gmap is working, how ever the explosion loads the mousex and mousey of the level, not the gmap itself x_x Also, No matter if the gmap was a flat, or GK type gmap it doesnt matter, the Gk like map edits the z quality, it would just make the explosion go slighty ubove or below the actual mouse y |
alot of those built in things are not supported by gmaps, and I don't believe there are any plans of adding such support
|
so you mean I gotta make a function that does:
call the image that has explosions changeimgpart to the part of the explosion that I want play the explosion sound hurt players/baddies/npcs within the radius casue thats a lot of stuff to do man ... |
PHP Code:
|
Best is to use putnpc2 and to display a gani (setcharani), there should be several explosion ganis around
|
Thank you for the gani tip, Stefan,
but taking ganis and graphics from other servers is ususally discouraged. Is there some public gani repository that I can get a gani explosion from? if so, where is it? And this still leaves me with a complicated script because what I want to do is increase the radius of the explosion as it moves away from the player, so 4 or 5 ganis would be needed ... putexplosion works fine offline ... and online if not on the map ... I guess I can use the old setmap and setminimap commands for my world, instead of a gmap, if thats what it takes to make my npcs work? |
2 Attachment(s)
These are simple ganis for bomb and explosions. If you want to have explosions of different size then you can probably do a little gani script.
|
| All times are GMT +2. The time now is 02:16 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.