.:: 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 ::. > Enhancement Workshop > (mEAn) Bot.Admin Mod / ServerLoader > (mEAn) Bot.Admin Mod Help
(mEAn) Bot.Admin Mod Help Need Help? Ask questions in here

Reply
 
Thread Tools
Problem with m_ commands
Old
  (#1)
AlphaTrooper
Member
 
Status: Offline
Posts: 36
Join Date: Jan 2004
Default Problem with m_ commands - 23-01-2004

I have a problem getting these commands to work with ClanMod or AMX Mod menus.

cm_cvar m_botmode "botswhenxplayers 4" "botvshuman" "humanvshuman" "botsfillserver" Xc

This is the code that I use for Clanmod to put it in the menu. The thing is, is that it won't let me switch these cvars. It will display the cvar, but none of the settings. Other non-mean cvars work perfectly.

How do I fix this?


Here are the rest of the Clanmod entries:

cm_cvar m_switchbotteam "any" "te" "ct" Xc
cm_cvar m_enforcebotteam "off" "on" Xc
cm_cvar m_botenhance "off" "on" Xc
cm_cvar m_botskill "lowest" "low" "medium" "high" "highest" "insane" "random" Xc
cm_cvar m_enforceclanteam "off" "on ct" "on te" Xc
cm_cvar m_warmode "all" "bots" "humans" "clan" "world" Xc
cm_cvar m_headshot "off" "all" "bots" "humans" "world" Xc

Here is an example of the the amxmod entries:

"m_switchbotteam" "any" "te" "ct" "u"
  
Reply With Quote
Re: Problem with m_ commands
Old
  (#2)
AlphaTrooper
Member
 
Status: Offline
Posts: 36
Join Date: Jan 2004
Default Re: Problem with m_ commands - 26-01-2004

anyone?
  
Reply With Quote
Re: Problem with m_ commands
Old
  (#3)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: Problem with m_ commands - 26-01-2004

The problem is that these are all registered server commands, not cvars. In the mEAn manual and "WhatsNew" doc for the WIP releases, all CVARs should be listed as "CVAR" in their descriptions. Anything that is a command will *not* have CVAR in its decsription.


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Re: Problem with m_ commands
Old
  (#4)
AlphaTrooper
Member
 
Status: Offline
Posts: 36
Join Date: Jan 2004
Default Re: Problem with m_ commands - 26-01-2004

ok, so what's the difference between a server command and a cvar? do they register there settings differently?
  
Reply With Quote
Re: Problem with m_ commands
Old
  (#5)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: Problem with m_ commands - 26-01-2004

A command is a function call that gets executed when typed into the console, while a CVAR is like a data value that does nothing on its own, but can be read/changed by functions.

CVARs are mostly used to set configuration values, while commans are used to make things happen.

I suspect these menu systems will allow commands to be run from them.

tip: in place of "on" and "off" you can also use 1 and 0 respectively. Some menus will need this when doing a toggle switch between 0 and 1.


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut

Last edited by botmeister; 26-01-2004 at 06:10..
  
Reply With Quote
Re: Problem with m_ commands
Old
  (#6)
AlphaTrooper
Member
 
Status: Offline
Posts: 36
Join Date: Jan 2004
Default Re: Problem with m_ commands - 26-01-2004

yea, they do support this, it's not quite as nice as the cvars though. Just cause the cvars have multiple settings for each menu entry, where as the commands don't, oh well, not a huge deal, at least it's workable.
  
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 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com