Raised This Month: $170 Target: $400

[ H3LP ] Velocity by angles

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Veteran Member
Join Date: May 2015
Location: Brazil 🇧🇷
Old 06-21-2018 , 09:51   [ H3LP ] Velocity by angles
Reply With Quote #1

Hello, I'm trying to set velocity by the key the player is pressing. I tried this, it's working but not properly. When I set velocity to sides (left and right) the player moves normally however with a small speed applied down. Basically it's walking diagonally.

velocityByAngles(Float:vAngles[3], iAngleVector, Float:flSpeed, Float:vVelocity[3]) {     static Float:vVector[3];     angle_vector(vAngles, iAngleVector, vVector);     vVelocity[0] = flSpeed * vVector[0];     vVelocity[1] = flSpeed * vVector[1];     vVelocity[2] = flSpeed * vVector[2]; }
Working with $$$ paid plugins. Contact below (ONLY FOR NEGOTIATIONS)
  • Skype: crazy.770
  • Steam: crazy770
  • Discord: CrazY.#5317
Check my Aliens vs. Predator: currently offline

I hate motherfuckers slowhacks!!!

Last edited by CrazY.; 06-21-2018 at 10:25.
CrazY. is offline

Thread Tools
Display Modes

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 04:59.

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