ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bots chat block as a server variable?

 
Post new topic   Reply to topic    ZDaemon Forum Index -> ZDaemon Development
View previous topic :: View next topic  
Author Message
Firestone
Posting Spree!


Joined: 16 Mar 2004
Location: Prag, Zlin - Czech Republic

PostPosted: Wed Aug 12, 2009 12:42 pm    Post subject: Bots chat block as a server variable? Reply with quote

Hi,

it's possible to block bots' messages (chat) in game as a server variable or it's only one way that lead to block it via client? Thanks for info.
Back to top
View user's profile Send private message Visit poster's website
Kilgore
Air Cavalry


Joined: 17 Jun 2003
Location: Up the river

PostPosted: Mon Aug 17, 2009 11:29 pm    Post subject: Reply with quote

Here is some bot-chat related info that has slipped through the cracks and has not been documented so far.

You can adjust a bot's chat probabilities from bots.cfg with a line like:
Code:
chatprob "90 100 90 90 25 25 35"

Each number represents the chat probability for a given event and there are 7 relevant events for bot chatter:
  • 1. CHAT_EVENT_ENTRY: Bot enters the game
  • 2. CHAT_EVENT_END_TOP: Bot ends the round at the top
  • 3. CHAT_EVENT_MIDDLE: Bot ends the round in the middle
  • 4. CHAT_EVENT_BOTTOM: Bot ends the round at the bottom
  • 5. CHAT_EVENT_FRAG: Bot frags someone.
  • 6. CHAT_EVENT_SUICIDE: Bot commits suicide.
  • 7. CHAT_EVENT_BFG_DEATH: Bot dies from BFG.
All numbers are probabilities, so they must range between 0 and 100. If a number lies outside the range, it's ignored and the default value (as shown above) is used.

So... if you want a completely silent bot, you can specify something like:
Code:
chatprob "0 0 0 0 0 0 0"

If you want a BFG whiner bot, you'd specify:
Code:
chatprob "0 0 0 0 0 0 100"

Another interesting point: you can specify the probabilities either inside a given bot's section (in which case it applies to the given bot only), or outside of all bot sections (in which case it applies to all bots unless overriden by something bot-specific). It's pretty flexible that way.
Back to top
View user's profile Send private message Visit poster's website
Firestone
Posting Spree!


Joined: 16 Mar 2004
Location: Prag, Zlin - Czech Republic

PostPosted: Tue Aug 18, 2009 8:14 am    Post subject: Reply with quote

Ooh! That's GREAT! That will help. Thanks alot, man Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> ZDaemon Development All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group