Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Shoot Formula (https://forums.graalonline.com/forums/showthread.php?t=39033)

Graal2001_NAT 10-08-2002 08:35 AM

Shoot Formula
 
Quote:

the horizontal movement speed keeps the same (moves
horzspeed=cos(zangle)*speed tiles all 0.05 seconds), the vertical speed is
initialized as vertspeed=sin(zangle)*speed and is decreased by 0.1 all 0.05 seconds;
then the new position (calculated all 0.05 seconds) is
newx = x + cos(angle)*horzspeed, newy = y - sin(angle)*horzspeed,
newz = z + vertspeed
is speed the power in shoot x,y,z,angle,zangle,power,gani,params or is it something else?
I think I remember trying to replace speed with power and it didn't work and I don't really want to try it again when it is the wrong answer...
so before I try again I want to find out for sure if speed is the power or if it is a different variable

Dach 10-08-2002 09:00 AM

Yes, speed is the power, dunno why he changed the name like that though.

Com013 10-09-2002 01:54 AM

Yes, it works with power being the same as speed. I used it for the (unpublished) Gaia Shot on Classic...I needed to translate the x/y coordinates in the level to the angles used in shoot. The zangle was the problem, but I solved it. It is accurate, which proves that power is indeed the same as speed.


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

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