AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Adding to Velocity (https://forums.alliedmods.net/showthread.php?t=263481)

Depresie 05-26-2015 13:17

[REQ] Adding to Velocity
 
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]

JusTGo 05-26-2015 15:35

Re: [REQ] Adding Velocity Code
 
i saw the word dragon this may help https://forums.alliedmods.net/showthread.php?p=2061747

Depresie 05-26-2015 15:57

Re: [REQ] Adding Velocity Code
 
Quote:

Originally Posted by JusTGo (Post 2301331)
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

Depresie 05-27-2015 10:09

Re: [REQ] Adding to Velocity
 
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

Mordekay 05-27-2015 10:48

Re: [REQ] Adding to Velocity
 
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.

Depresie 05-27-2015 11:02

Re: [REQ] Adding to Velocity
 
Quote:

Originally Posted by Mordekay (Post 2301711)
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...

bakir123 05-28-2015 10:27

Re: [REQ] Adding to Velocity
 
i need too, anyone please?


All times are GMT -4. The time now is 20:07.

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