Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Projectile range (https://forums.graalonline.com/forums/showthread.php?t=81299)

Crow 08-17-2008 11:32 PM

Projectile range
 
Stefan asked me to post it here, so he won't forget it I guess ;)

A new parameter for the shoot() function would be awesome, something that defines the range of the projectile. In tiles, maybe, or something else. This would be super useful :D

Tigairius 08-17-2008 11:33 PM

Agreed!

DustyPorViva 08-17-2008 11:41 PM

I'm not following?

Either way, I can think of a million parameters that would be great for projectiles. Speed, whether it stops when it hits a wall, and some other stuff I can't remember. Not quite a million, but I'm only a few short.

napo_p2p 08-17-2008 11:53 PM

Quote:

Originally Posted by DustyPorViva (Post 1415301)
I'm not following?

Either way, I can think of a million parameters that would be great for projectiles. Speed, whether it stops when it hits a wall, and some other stuff I can't remember. Not quite a million, but I'm only a few short.

Gravity parameter (independent from server gravity).

knightfire35 08-18-2008 03:55 PM

Quote:

Originally Posted by Tigairius (Post 1415290)
Agreed!

Double Agreed :D

Inverness 08-18-2008 06:03 PM

Perhaps have a different way of creating projectiles if people think shoot() is getting too large?

proj = player.level.projectile;
proj.ani = "iceprojectile";
proj.aniparams = {0, 0, 1, 0.5};
proj.dir = 3;
proj.x = player.x + 1;
proj.y = player.y + 1;
proj.z = 0;
proj.variable = value; //etc...
proj.shoot();

Sort of like how the particle emitter is working.

Tigairius 08-18-2008 06:23 PM

would also be nice if there was an array of projectiles in the level.
PHP Code:

for (temp.iprojectiles) {
  if (
i.x in |this.1this.1|) {
    
blah;
  }



DustyPorViva 08-18-2008 06:25 PM

level.projectiles

:)

Tigairius 08-18-2008 06:34 PM

Quote:

Originally Posted by DustyPorViva (Post 1415543)
level.projectiles

:)

You're suggesting that or you're saying it exists? :confused:

DustyPorViva 08-18-2008 06:35 PM

Already exists. It's read-only though, or at least most of it is. It's not an array either, it's an object... eh, but it's there. I don't remember details of it though, but it's something to mess with.

I like Inver's idea of being able to make projectiles out of objects.

Tigairius 08-18-2008 06:52 PM

Quote:

Originally Posted by DustyPorViva (Post 1415546)
I like Inver's idea of being able to make projectiles out of objects.

I do too!


All times are GMT +2. The time now is 03:48 PM.

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