mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Set a default minimum delay between text messages
This commit is contained in:
parent
40141465b5
commit
33064f8392
2 changed files with 17 additions and 17 deletions
|
@ -645,9 +645,9 @@ void CVAR_Init(void)
|
|||
}
|
||||
|
||||
g_instamsg_allowed = gi.Cvar_Get("g_instamsg_allowed", "1", 0);
|
||||
g_instamsg_minDelay = gi.Cvar_Get("g_instamsg_minDelay", "0", 0);
|
||||
g_instamsg_minDelay = gi.Cvar_Get("g_instamsg_minDelay", "1000", 0);
|
||||
g_textmsg_allowed = gi.Cvar_Get("g_textmsg_allowed", "1", 0);
|
||||
g_textmsg_minDelay = gi.Cvar_Get("g_textmsg_minDelay", "0", 0);
|
||||
g_textmsg_minDelay = gi.Cvar_Get("g_textmsg_minDelay", "1000", 0);
|
||||
|
||||
g_teambalance = gi.Cvar_Get("g_teambalance", "0", 0);
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ The variable defaults to the following value depending on the OS:
|
|||
The network settings can be adjusted to use either IPv4, IPv6, or both. By default, IPv6 is disabled on dedicated servers. The following commands adjust network settings:
|
||||
- `set net_enabled 1`: This enables IPv4 only (the default setting for dedicated servers).
|
||||
- `set net_enabled 2`: This enables IPv6 only.
|
||||
- `set net_enabled 3`: This enables both IPv4 and IPv6 (the default setting when running the standalone game)
|
||||
- `set net_enabled 3`: This enables both IPv4 and IPv6 (the default setting when running the standalone game).
|
||||
|
||||
*Note: The master server (using the GameSpy protocol) does not support IPv6. If IPv4 is disabled, the server won't appear in the online server list for internet games, even if IPv6 is enabled.*
|
||||
|
||||
|
@ -48,13 +48,13 @@ A new feature was introduced to ban IP addresses, thanks to the [ioquake3](https
|
|||
|flushbans | |Removes all bans
|
||||
|
||||
Examples:
|
||||
- `banaddr 192.168.5.2` will ban the IP address **192.168.5.2**
|
||||
- `banaddr 192.168.1.0/24` will ban all **192.168.1.x** IP addresses (in the range **192.168.1.0**-**192.168.1.255**)
|
||||
- `banaddr 2` will ban the IP address of the client **#2**
|
||||
- `banaddr 4 24` will ban the subnet of client **#4** - i.e if client **#4** has IP **192.168.8.4**, then it will ban all IPs ranging from **192.168.8.0**-**192.168.8.255**
|
||||
- `exceptaddr 3` will add the IP of client **#3** as an exception
|
||||
- `bandel 192.168.8.4` will unban **192.168.8.4**
|
||||
- `bandel 192.168.1.0/24` will unban the entire **192.168.1.0** subnet (IP ranging from **192.168.1.0**-**192.168.1.255**)
|
||||
- `banaddr 192.168.5.2` will ban the IP address **192.168.5.2**.
|
||||
- `banaddr 192.168.1.0/24` will ban all **192.168.1.x** IP addresses (in the range **192.168.1.0**-**192.168.1.255**).
|
||||
- `banaddr 2` will ban the IP address of the client **#2**.
|
||||
- `banaddr 4 24` will ban the subnet of client **#4** - i.e if client .**#4** has IP **192.168.8.4**, then it will ban all IPs ranging from **192.168.8.0**-**192.168.8.255**.
|
||||
- `exceptaddr 3` will add the IP of client **#3** as an exception.
|
||||
- `bandel 192.168.8.4` will unban **192.168.8.4**.
|
||||
- `bandel 192.168.1.0/24` will unban the entire **192.168.1.0** subnet (IP ranging from **192.168.1.0**-**192.168.1.255**).
|
||||
|
||||
To calculate IP subnets, search for `IP subnet calculator` on Internet.
|
||||
|
||||
|
@ -77,10 +77,10 @@ Chat messages will be logged in the console and in the logfile without requiring
|
|||
|
||||
The in-game chat can be tweaked:
|
||||
|
||||
- `set g_instamsg_allowed 0`: This disables voice instant messages
|
||||
- `set g_instamsg_minDelay x`: x is the delay in milliseconds, the minimum delay between each instant messages to avoid spamming
|
||||
- `set g_textmsg_allowed 0`: This disables text messages. All, team and private messages will be disabled
|
||||
- `set g_textmsg_minDelay x`: x is the delay in milliseconds, the minimum delay between each text message to avoid spamming
|
||||
- `set g_instamsg_allowed 0`: This disables voice instant messages.
|
||||
- `set g_instamsg_minDelay x`: x is the delay in milliseconds, the minimum delay between each instant messages to avoid spamming. Defaults to 1000.
|
||||
- `set g_textmsg_allowed 0`: This disables text messages. All, team and private messages will be disabled.
|
||||
- `set g_textmsg_minDelay x`: x is the delay in milliseconds, the minimum delay between each text message to avoid spamming. Defaults to 1000.
|
||||
|
||||
Temporarily disabling text messages can be useful in situations where tensions arise in the chat. Otherwise, it's best to keep them enabled under normal circumstances.
|
||||
|
||||
|
@ -95,7 +95,7 @@ This feature is passive: it only checks the team sizes when someone tries to joi
|
|||
### Bots
|
||||
|
||||
Bots can be used for testing. They don't move by default, so a mod will be needed, like [eaglear bots](https://www.moddb.com/mods/medal-of-honor-world-war-1/downloads/moh-eaglear-bots):
|
||||
- `set sv_maxbots x`: Configure and allocate the maximum number of bots
|
||||
- `set sv_maxbots x`: Configure and allocate the maximum number of bots.
|
||||
- `set sv_minPlayers x`: optional, can be used to set the minimum number of players that the server should have. Bots will be spawned based on the minimum number of players.
|
||||
- `addbot x`: x is the number of bots to add
|
||||
- `removebot x`: x is the number of bots to remove
|
||||
- `addbot x`: x is the number of bots to add.
|
||||
- `removebot x`: x is the number of bots to remove.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue