Raised This Month: $ Target: $400
 0% 

[REQ] Adding to Velocity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 05-26-2015 , 13:17   [REQ] Adding to Velocity
Reply With Quote #1

Can someone create something like this? im trying now for 4 days i can't get it right..

If player pressed "Move Forward" button, get_user_velocity + defined value, direction forward
If player pressed "Move Right" button, get_user_velocity + defined value, direction right
If player pressed "Jump" button, get_user_velocity + defined value, direction up

Also, if the player is having 50 velocity to forward, 30 right, 25 up
If player pressed "Move Forward" button, it wont affect the other directions' velocity, so it will result in
Quote:
Vel[x] = 50 + Value
Vel[y] = 30
Vel[z] = 25
something like
Quote:
if (button & in_forward)
velocity[x] = get_user_velocity[x] + defined value
velocity[y] = get_user_velocity[y]
velocity[z] = get_user_velocity[z]

Last edited by Depresie; 05-28-2015 at 10:22.
Depresie is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 05-26-2015 , 15:35   Re: [REQ] Adding Velocity Code
Reply With Quote #2

i saw the word dragon this may help https://forums.alliedmods.net/showthread.php?p=2061747
JusTGo is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 05-26-2015 , 15:57   Re: [REQ] Adding Velocity Code
Reply With Quote #3

Quote:
Originally Posted by JusTGo View Post
i saw the word dragon this may help https://forums.alliedmods.net/showthread.php?p=2061747
from what i seen it is exactly like velocity by aim, that's not what im looking for

Last edited by Depresie; 05-26-2015 at 15:58.
Depresie is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 05-27-2015 , 10:09   Re: [REQ] Adding to Velocity
Reply With Quote #4

sorry for bumping, but i have to get this done today, since i will not have free time until next week.. anyone?
edited main post
Depresie is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 05-27-2015 , 10:48   Re: [REQ] Adding to Velocity
Reply With Quote #5

Until next week is fine as bumping is only allowed after 14 days.
And no one here really cares why you think that rules are for everyone exept you.
__________________

Mordekay is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 05-27-2015 , 11:02   Re: [REQ] Adding to Velocity
Reply With Quote #6

Quote:
Originally Posted by Mordekay View Post
Until next week is fine as bumping is only allowed after 14 days.
And no one here really cares why you think that rules are for everyone exept you.
okay, i'm sorry...
Depresie is offline
bakir123
Senior Member
Join Date: Jan 2015
Location: Palestine, Hebron
Old 05-28-2015 , 10:27   Re: [REQ] Adding to Velocity
Reply With Quote #7

i need too, anyone please?
bakir123 is offline
Send a message via Skype™ to bakir123
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 20:07.


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