Having trouble with point_clientcommand

Avatar
n8r8r
5 Posts
Posted Jul 24, 2012
I am trying to make a map with changing gravity by having a linked_portal_door on the ceiling of two rooms, and using the console command "sv_gravity -150" to fly through to the second room, and then "sv_gravity 600" once you reach the second room, to give the illusion that your walking on the ceiling. All of this works perfectly when I enter the commands by hand, but I can't seem to get the point_clientcommand entity to work.

I noticed that you cant jump without the gravity being at 600, and that the change in gravity wont apply to you until you enter a situation where gravity would need to be applied (like during a jump). So I am using a trigger_multiple on the floor of the room to OnEndTouch have the point_clientcommand use the command sv_gravity -150. That way the gravity will be changed when the player jumps (and is no longer touching the floor.

But when I load up the map and jump, nothing happens. How do I fix this?

(I would attach the map so you can better understand but I am new to the forum and don't know how to do this.)

Advertisement
Registered users don’t see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Jul 24, 2012
Replied 1 minutes later
Use a point_servercommand, not a point_clientcommand.
Avatar
n8r8r
5 Posts
Posted Jul 24, 2012
Replied 5 minutes later
Ok now the game freezes for a second when i jump for the first time, and then nothing different happens.
Avatar
BenVlodgi
633 Posts
Posted Jul 24, 2012
Replied 1 hour later
use push triggers instead, my Mod Back-Stock uses gravity changing a few different times in a few different ways, but I never change the sv_gravity
Avatar
n8r8r
5 Posts
Posted Jul 24, 2012
Replied 1 hour later
What parameters did you use? Its not working very well for me.
Avatar
Skotty
671 Posts
Posted Jul 24, 2012
Replied 20 minutes later
What about Trigger_Gravity?
Avatar
n8r8r
5 Posts
Posted Jul 24, 2012
Replied 14 minutes later
Thanks for the help, I have now been able to get both trigger_push and trigger_gravity working. You guys are awesome!
But just out of curiosity why didn't the point_clientcommand/servercommand work? What if I wanted to use other commands like timescale in the future?
Avatar
BenVlodgi
633 Posts
Posted Jul 25, 2012
Replied 4 hours later
then use client command then use the command option with the parameter of the thing you would type in the console, dont include quotes.
Advertisement
Registered users don’t see ads! Register now!
Avatar
n8r8r
5 Posts
Posted Jul 25, 2012
Replied 36 minutes later
well yes, the entire point of this post is that just doing that doesnt work for me. ( i never included the quotes im not entirely sure why i typed them back there )