Raised This Month: $ Target: $400
 0% 

+jump


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SubFive
Senior Member
Join Date: Dec 2005
Location: USA
Old 12-10-2005 , 22:00   +jump
Reply With Quote #1

I would have used this from the doc:
Code:
public MovePlayer(id) {     new origin[3]     get_user_origin(id, origin, 0)  // Gets the current location the player is at     origin[2] = origin[2] + 10    // Adds + 10 to the player's height     set_user_origin(id, origin)   // Moves the player to the location stored in origin }
But that could be abused so people went through the ceilings when the ceilings are low. I searched and looked through bunny hop scripts, #define IN_JUMP, #define FL_ONGROUND, #define FL_WATERJUMP, and couldn't piece it together to make it work.

What I'm trying to do is that when the function is executed, it makes the player jump, so this way he can't go through the ceiling.
SubFive is offline
watch
Senior Member
Join Date: Sep 2005
Old 12-10-2005 , 22:13  
Reply With Quote #2

what about just running a command on the client i.e.

Code:
client_cmd(id,"+jump")

you might also have to do -jump, so try this is the above isnt working right
Code:
client_cmd(id,"+jump;-jump")
watch is offline
SubFive
Senior Member
Join Date: Dec 2005
Location: USA
Old 12-10-2005 , 22:34  
Reply With Quote #3

Quote:
Originally Posted by watch
what about just running a command on the client i.e.

Code:
client_cmd(id,"+jump")

you might also have to do -jump, so try this is the above isnt working right
Code:
client_cmd(id,"+jump;-jump")


I made it a lot more complicated than it needed to be. Thanks!
SubFive is offline
SubFive
Senior Member
Join Date: Dec 2005
Location: USA
Old 12-10-2005 , 22:36  
Reply With Quote #4

One last thing, is there anyway to tell at what part a person is of a jump. I'd like to execute a function but only if hes at the peak of the jump, right before he starts decending, and not anytime before hand.
SubFive is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 12-10-2005 , 23:13  
Reply With Quote #5

Nope. You can make a command so the user needs to have good timing....I'm guessing a double jump type of thing?
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
SubFive
Senior Member
Join Date: Dec 2005
Location: USA
Old 12-10-2005 , 23:18  
Reply With Quote #6

Trying to lower the users gravity, but I only want it to be lowered if its at about the middle of the jump (peak), or anytime afterwards. If hes not even in the air, the function will exec a +jump.
SubFive is offline
SubFive
Senior Member
Join Date: Dec 2005
Location: USA
Old 12-10-2005 , 23:43  
Reply With Quote #7

So theres no way to detect if someone used +jump, and then wait a few seconds and exec a function?
SubFive is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 12-11-2005 , 01:23  
Reply With Quote #8

Oh, there are plenty ways to do this.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-11-2005 , 01:24  
Reply With Quote #9

Check if a player is not on the ground and if his fall velocity is close to 0.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
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 15:45.


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