![]() |
Projectile Speed
I'm not very familiar with Graal projectiles...
How do you get them to go faster? I have the angle calculated by: NPC Code:((playerdir%4+1)/4)*(pi*2) (basically, that shoots a projectile in the players direction). Now, I'm a little confused on how to set the zangle and power. I want the projectile to go straight (so I've been trying a zangle of 0). But, when I change the power, the projectile appears at a certain point in front of the player and disappears right away. Any suggestions? |
An easier way to do the angle would be to use 'getangle(vecx(playerdir),vecy(playerdir)).
And basically, when the power of the projectile is not equal to 0, it will shoot along the zangle. So when the power is 1 and the zangle is 0, it would crash right in front of the player. You need to raise the zangle to see it fly. To make the projectile go straight, put both the zangle and power to 0, but you can't change the speed of the projectile. I wish you could though >.< |
Quote:
Quote:
Thanks a lot for the help. :cool: |
You can change the speed of a projectile... But throwing it straight up? I don't see the use;
For Ajira, you can shoot almost straight(or straight, for that matter), lower the grav, and it goes faster with the force you put it in. |
Quote:
When 'gravity' is changed, does it affect all projectiles, or just the projectiles shot after 'gravity' was changed? |
Quote:
|
Quote:
|
o my gosh
NPC Code: as y approaches infinity, the speed of projectile also approaches infinity, while going straight. meaning as long as gravity is set to 0 and zangle set to 0, varying the power will give you a different speed while shooting straight. [edit] gravity is immediately in effect once set, and will affect all projectiles clientside. [/edit] |
Quote:
I managed to get projectiles to go faster. Nevertheless, your reply helps. Again, Thanks ;D. |
| All times are GMT +2. The time now is 01:05 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.