Raised This Month: $ Target: $400
 0% 

Forward, help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 08-05-2011 , 14:03   Forward, help
Reply With Quote #1

How can i push play forward using velocity? And how can i push them back?

Last edited by usaexelent; 08-05-2011 at 14:40.
usaexelent is offline
Send a message via Skype™ to usaexelent
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-05-2011 , 14:14   Re: Forward
Reply With Quote #2

1) velocity_by_aim with positive value
2) velocity_by_aim with negative value
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 08-05-2011 , 14:19   Re: Forward
Reply With Quote #3

Thanks a lot I didn't know what those were for
usaexelent is offline
Send a message via Skype™ to usaexelent
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 08-05-2011 , 14:36   Re: Forward
Reply With Quote #4

How can I make that if the player is looking at the sky he wouldn't go up?
usaexelent is offline
Send a message via Skype™ to usaexelent
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-05-2011 , 14:40   Re: Forward
Reply With Quote #5

Set the z velocity to 0 so player doesn't move up.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 08-05-2011 , 14:59   Re: Forward, help
Reply With Quote #6

and what if the player whants to jump?
usaexelent is offline
Send a message via Skype™ to usaexelent
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-05-2011 , 15:06   Re: Forward, help
Reply With Quote #7

Store his Z velocity
do velocity_by_aim
set z vector to the previous z value
set new velocity
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 08-05-2011 , 15:15   Re: Forward, help
Reply With Quote #8

And how do I do that if player is looking in the sky he would move forward.Not to sky but forward (Not forward were he is looking)
usaexelent is offline
Send a message via Skype™ to usaexelent
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 03:25.


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