AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   VelocityByAim - Velocity Problem (https://forums.alliedmods.net/showthread.php?t=11863)

KCE 03-30-2005 01:49

VelocityByAim - Velocity Problem
 
If I set the speed (arg 2) in the VelocityByAim function, to a high value, say 5000, it makes the object fly weird (in my case, the rocket I'm applying this function to). Instead of flying straight, it flys toward the top right of my screen. Anyone know how to fix this?

Twilight Suzuka 03-30-2005 09:59

use velocity_by_aim.

Dont specify high speeds.

PM 03-30-2005 12:42

Or use xs_anglevectors from xs.inc :)

Twilight Suzuka 03-30-2005 13:17

Always looking for a way to pimp XS, arn't you PM?

Do XS stocks function faster or slower then natives?

PM 03-30-2005 13:47

Quote:

Originally Posted by Twilight Suzuka
Always looking for a way to pimp XS, arn't you PM?

Do XS stocks function faster or slower then natives?

The more complex ones are slower.
Simple ones should be faster with the JIT...

But this one is more useful than velocity_by_aim because you can pass in any angles (not only velocities).

And it's easier to use a stock than writing your own func ;)


All times are GMT -4. The time now is 10:00.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.