This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

ClientCommand Function dead?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jorma
Junior Member
Join Date: Jul 2013
Old 01-30-2017 , 13:54   ClientCommand Function dead?
Reply With Quote #1

Is the ClientCommand function completely broken now? The documentation says that it only works if you set cl_restrict_server_commands to 0 but it seems that this command it not available anymore (Valve has dropped support for it).

So, is there any way to execute client commands? Like make everyone jump every few seconds or something. I understand there might be good reasons for Valve to block these kind of commands but I think it _should_ be possible to do such stupid things on private servers (or even public servers too, if everyone understands what's going on...)

Last edited by jorma; 01-30-2017 at 13:54.
jorma is offline
psychonic

BAFFLED
Join Date: May 2008
Old 01-30-2017 , 14:53   Re: ClientCommand Function dead?
Reply With Quote #2

Quote:
Originally Posted by jorma View Post
it seems that this command
It's a ConVar, not a command.
Quote:
Originally Posted by jorma View Post
it not available anymore (Valve has dropped support for it).
It still exists in all games. However some may not have it whitelisted, which is required for it to be usable at runtime on newer versions of the engine. You can probably still enable it on the command line or maybe in an early cfg, like valve.rc.
Quote:
Originally Posted by jorma View Post
So, is there any way to execute client commands?
FakeClientCommand can execute ones that process on the server. (Not all client commands are processed on the client itself; many are forwarded to the server).
Quote:
Originally Posted by jorma View Post
Like make everyone jump every few seconds or something.
Jumping isn't handled by a command in that sense and can still be triggered serverside by message with the client's usercmd input, such as in SM's OnPlayerRunCommand forward.
psychonic is offline
jorma
Junior Member
Join Date: Jul 2013
Old 01-31-2017 , 10:25   Re: ClientCommand Function dead?
Reply With Quote #3

Quote:
FakeClientCommand can execute ones that process on the server. (Not all client commands are processed on the client itself; many are forwarded to the server).
Is there a list of commands that are sent to the server?

Quote:
Jumping isn't handled by a command in that sense and can still be triggered serverside by message with the client's usercmd input, such as in SM's OnPlayerRunCommand forward.
I know I can use OnPlayerRunCmd to trigger events when players jump but this is not what I would like to do. I would like to force every player to execute commands in their console (like make them jump by executing "+jump" and "-jump" or something like that).
jorma 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 19:30.


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