AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   velocity_by_aim() by fakemeta (https://forums.alliedmods.net/showthread.php?t=120518)

Flipper_SPb 03-05-2010 16:31

velocity_by_aim() by fakemeta
 
I want to make velocity_by_aim() with fakemeta

I found:

PHP Code:

pev(1,pev_v_angle,vAngles)
vReturn[0] = floatcosvAngles[1], degrees ) * fDistance 
vReturn
[1] = floatsinvAngles[1], degrees ) * fDistance 
vReturn
[2] = floatsin( -vAngles[0], degrees ) * fDistance 

But result is different then velocity_by_aim()

Arkshine 03-05-2010 16:51

Re: velocity_by_aim() by fakemeta
 
why ?

Flipper_SPb 03-05-2010 16:51

Re: velocity_by_aim() by fakemeta
 
Why what? :)

Arkshine 03-05-2010 17:01

Re: velocity_by_aim() by fakemeta
 
Why you want to make this native with fakemeta. I mean what's wrong ? Or what do you want to do exactly ?

Flipper_SPb 03-05-2010 17:13

Re: velocity_by_aim() by fakemeta
 
1. Interest
2. Don't want to plug <engine> only for this native

Emp` 03-05-2010 17:15

Re: velocity_by_aim() by fakemeta
 
It isn't an engine native.

Arkshine 03-05-2010 17:17

Re: velocity_by_aim() by fakemeta
 
1. Look at the amxx source but basically MakeVectors of pev_v_angle , then glb_forward * value provided will give you the velocity.
2. It's idiot and it really doesn't matter. Use intelligently the natives depending your need whatever the modules. It will be more efficient this core native. The less natives you use the better is.

Flipper_SPb 03-05-2010 17:18

Re: velocity_by_aim() by fakemeta
 
Quote:

Originally Posted by Emp` (Post 1108723)
It isn't an engine native.

o_O Thanks! I need to sleep more :)
So, only for interest.

Flipper_SPb 03-05-2010 17:24

Re: velocity_by_aim() by fakemeta
 
Sorry for troubling you. It's my inattention.


All times are GMT -4. The time now is 08:43.

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