Raised This Month: $ Target: $400
 0% 

[solved]how to get Z coord move speed of a player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 08-02-2009 , 08:48   [solved]how to get Z coord move speed of a player?
Reply With Quote #1

hi, i want to get player scramble speed when he is on a ladder for x,y speed i use pev_velocity, what can i use for z speed?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-02-2009 , 09:14   Re: how to get Z coord move speed of a player?
Reply With Quote #2

velocity[ 2 ] ?
__________________
xPaw is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-02-2009 , 09:15   Re: how to get Z coord move speed of a player?
Reply With Quote #3

Just tested and it works even when on a ladder
PHP Code:
new FloatfVelocity];
pevid pev_velocity fVelocity );

client_printid print_chat "Y-speed = %f" fVelocity] ); 
__________________
Bugsy is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 08-02-2009 , 09:40   Re: how to get Z coord move speed of a player?
Reply With Quote #4

thx, i used only vector length so didn't think it had 3 params)
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
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 18:25.


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