Raised This Month: $ Target: $400
 0% 

velocity_by_aim() by fakemeta


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-05-2010 , 16:31   velocity_by_aim() by fakemeta
Reply With Quote #1

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()
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-05-2010 , 16:51   Re: velocity_by_aim() by fakemeta
Reply With Quote #2

why ?
__________________
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-05-2010 , 16:51   Re: velocity_by_aim() by fakemeta
Reply With Quote #3

Why what?
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-05-2010 , 17:01   Re: velocity_by_aim() by fakemeta
Reply With Quote #4

Why you want to make this native with fakemeta. I mean what's wrong ? Or what do you want to do exactly ?
__________________
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-05-2010 , 17:13   Re: velocity_by_aim() by fakemeta
Reply With Quote #5

1. Interest
2. Don't want to plug <engine> only for this native
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-05-2010 , 17:15   Re: velocity_by_aim() by fakemeta
Reply With Quote #6

It isn't an engine native.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-05-2010 , 17:17   Re: velocity_by_aim() by fakemeta
Reply With Quote #7

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.
__________________
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-05-2010 , 17:18   Re: velocity_by_aim() by fakemeta
Reply With Quote #8

Quote:
Originally Posted by Emp` View Post
It isn't an engine native.
o_O Thanks! I need to sleep more
So, only for interest.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-05-2010 , 17:24   Re: velocity_by_aim() by fakemeta
Reply With Quote #9

Sorry for troubling you. It's my inattention.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Reply



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 -4. The time now is 08:43.


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