How to let the !player jump

Any aspects of level design for the Source engine.

How to let the !player jump

Postby peegee on Sun Jul 07, 2013 6:16 pm

Is there a command or workaround or entity which forces the player to jump?
:player_start:

Like pressing the spacebar?
Or is there a way to move the player a little bit up?

During a map transition the player descends about 2 units into an object and stucks.
Jumping solves that problem.
I want prevent a text message like
"Sorry , we have a bug here, please jump with the spacebar"
:game_text:
Thank you for any help
"All things are difficult before they are easy." Thomas Fuller
User avatar
peegee
Regular
Regular
 
Joined: Fri Aug 28, 2009 10:54 am

Re: How to let the !player jump

Postby Armageddon on Sun Jul 07, 2013 6:36 pm

+jump is the command.
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: How to let the !player jump

Postby peegee on Sun Jul 07, 2013 7:35 pm

It works! :smt041

Thank you so much Armageddon.
"All things are difficult before they are easy." Thomas Fuller
User avatar
peegee
Regular
Regular
 
Joined: Fri Aug 28, 2009 10:54 am

Re: How to let the !player jump

Postby afterwars on Mon Jul 08, 2013 5:46 pm

Did you manage to achieve this?

I have attempted to make the !player jump via using a trigger, and making the trigger have the output "OnStartTouch, !player, +jump". But this refuses to work.


I have also tried this via a point_clientcommand entity but the player refuses to jump, regardless of the command (The command works fine if used in Developer Console).
afterwars
Just Joined
Just Joined
 
Joined: Mon Jul 08, 2013 5:43 pm

Re: How to let the !player jump

Postby peegee on Mon Jul 08, 2013 7:50 pm

afterwars wrote:Did you manage to achieve this?

I have attempted to make the !player jump via using a trigger, and making the trigger have the output "OnStartTouch, !player, +jump". But this refuses to work.

I have also tried this via a point_clientcommand entity but the player refuses to jump, regardless of the command (The command works fine if used in Developer Console).


I used the point_clientcommand with another trigger or logic_relay.
The trigger or logic_relay has this output:
OnTrigger
point_clientcommand_Name
command
+jump

A jump will be done automatically, but the player can't jump any more by pressing the spacebar.

To reset this you have to trigger the point_clientcommand again with
OnTrigger
point_clientcommand_Name
command
-jump

Hope this helps
"All things are difficult before they are easy." Thomas Fuller
User avatar
peegee
Regular
Regular
 
Joined: Fri Aug 28, 2009 10:54 am

Re: How to let the !player jump

Postby Corewarp on Tue Jul 09, 2013 4:13 am

Have you tried killing the point_clientcommand afterwards?
User avatar
Corewarp
Been Here A While
Been Here A While
 
Joined: Thu Mar 13, 2008 6:29 pm

Re: How to let the !player jump

Postby peegee on Tue Jul 09, 2013 9:22 am

Corewarp wrote:Have you tried killing the point_clientcommand afterwards?


Not at all,
do it help?
"All things are difficult before they are easy." Thomas Fuller
User avatar
peegee
Regular
Regular
 
Joined: Fri Aug 28, 2009 10:54 am

Re: How to let the !player jump

Postby peegee on Tue Jul 09, 2013 6:20 pm

Made a test, killing the point_clientcommand afterwards
did not help. Player can't jump any more.

A -jump command is necessary as mentioned.
"All things are difficult before they are easy." Thomas Fuller
User avatar
peegee
Regular
Regular
 
Joined: Fri Aug 28, 2009 10:54 am

Return to Hammer Editor Help

Who is online

Users browsing this forum: Bing [Bot]