.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Executing command on other clients?
Old
  (#1)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Executing command on other clients? - 18-04-2004

Hey all,

I've been playing around with the 'speak' command (like POD uses). It works for me as a host. But i want it to execute it on other human players too. So they all hear the same as the host.

I know it should be possible, i have seen several admin mods and also statsme works great with this. (like the bomb timer, etc).

Is there any way to do this?


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Executing command on other clients?
Old
  (#2)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Executing command on other clients? - 18-04-2004

I think it was enginefunc_s::pfnClientCommand


  
Reply With Quote
Re: Executing command on other clients?
Old
  (#3)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: Executing command on other clients? - 18-04-2004

theres also

CLIENT_COMMAND(pEdict,command);

which does basically the same thing as what aspirin said
  
Reply With Quote
Re: Executing command on other clients?
Old
  (#4)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Executing command on other clients? - 18-04-2004

You must be kidding me? I probably looked not far enough. I found:

CLIENT_COMMAND(pEdict);

that was it. But i did not know you could do this:

CLIENT_COMMAND(pEdict, <command>);


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Executing command on other clients?
Old
  (#5)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Executing command on other clients? - 18-04-2004

dunno about that macro, but in the enginefuncs its defined another way :

void pfnClientCommand( edict_t* pEdict, char* szFmt, ... );



  
Reply With Quote
Re: Executing command on other clients?
Old
  (#6)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Executing command on other clients? - 18-04-2004

lol, well i looked a bit further and u're right


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Executing command on other clients?
Old
  (#7)
Rick
Council Member
 
Rick's Avatar
 
Status: Offline
Posts: 690
Join Date: Dec 2003
Location: Holland
Default Re: Executing command on other clients? - 18-04-2004

FakeClientCommand also works.....
  
Reply With Quote
Re: Executing command on other clients?
Old
  (#8)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: Executing command on other clients? - 19-04-2004

"FakeClientCommand also works....."

Works for what? It won't execute commands on the client (I should know, since I created it).

I think you're confused about what FakeClientCommand() does.

botman
  
Reply With Quote
Re: Executing command on other clients?
Old
  (#9)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Executing command on other clients? - 19-04-2004

Code:
 if (!IsABot(pEdict)) {
    CLIENT_COMMAND(pEdict, "play sound/xxx/xxx.wav\n");
 }
Don't use the 'speak' command, since that's a server side command
  
Reply With Quote
Re: Executing command on other clients?
Old
  (#10)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Executing command on other clients? - 19-04-2004

speak works for clients and for servers afaik. Its just something to make that cool voice play.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com