Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 02-27-2004, 03:46 PM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
(Note: I don't have Graal installed here, so I cannot check the definition of power within the shoot command. As a result i'm giving pointers to 2 solutions, so pick whichever one is relevant for the shoot command (ie: whether power is launch velocity or distance to travel))

Solution One - Velocity Based
If power is related to the speed at which the projectile is launched, then the distance travelled if i remember correctly would be proportional to power^2. As I dont know how close the Graal physics are to real life, I can't verify that, nor am I able to give you any constants, as I do not know what constants graal uses internally. You can rearrange to find power from distance fairly easily.

Solution Two - Distance Based
If the power is related to how far you want it to travel, then you can use a rearrangement of the pythagorous theorem to calculate the distance.

If you still need help after this, send a Forum PM, or drop me an e-mail.
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:01 PM.


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