Raised This Month: $ Target: $400
 0% 

[solved]: adding vectors to each other and multipling vectors by integer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 08-14-2011 , 05:57   [solved]: adding vectors to each other and multipling vectors by integer
Reply With Quote #1

hi, i need to get 30 units forward of player aiming origin,

trying to convert
PHP Code:
AMX_NATIVE_CALL get_user_aiming 
to AMXX but this part got me confused:
PHP Code:
Vector v_dest v_src v_forward static_cast<float>(params[4]); 
so it would be
PHP Code:
new Float:v_dest[3] = v_src v_forward 30// Float[3] = float[3] + float[3] * integer 
but that doesn't work in AMXX, what should i write in amxx to get simular calculations?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 08-14-2011 at 06:00.
Owyn is offline
Send a message via ICQ to Owyn
 



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 03:22.


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