PDA

View Full Version : issuing a client command



Cheeseh
04-11-2018, 03:31 PM
Hey guys, this one is for RCBot.

So we used to be able to issue client commands from the server to other clients in the server. Let's say I want a player (or bot) on the server to call "medic!" That would mean issuing the "medic" command on the client I want. I had a look around but couldn't find anything obvious. Is there any way to do that ?

Cheers

w00tguy123
04-11-2018, 04:01 PM
There is a way to send client commands, but I think most commands were blocked in the latest sven update.
https://forums.svencoop.com/showthread.php/45127-UTILITY-client_cmd?p=529661

If that doesn't work, CBasePlayer::ShowOverheadSprite could be used to recreate the effect.