mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-22 07:55:43 +00:00
bots_main_firstIsHost
This commit is contained in:
parent
7c4270a2b6
commit
7fced873f5
@ -7,6 +7,13 @@ It aims to add playable AI to the multiplayer games of World at War.
|
|||||||
|
|
||||||
You can find the ModDB release post [here](https://www.moddb.com/mods/bot-warfare/downloads/t4m-bot-warfare-latest).
|
You can find the ModDB release post [here](https://www.moddb.com/mods/bot-warfare/downloads/t4m-bot-warfare-latest).
|
||||||
|
|
||||||
|
## <span style="color:red">Important to public dedicated servers</span>
|
||||||
|
The ```bots_main_firstIsHost``` DVAR is enabled by default!
|
||||||
|
|
||||||
|
This is so inexperienced users of the mod can access with menu without any configuration.
|
||||||
|
|
||||||
|
Make sure to disable this DVAR by adding ```set bots_main_firstIsHost 0``` in your server config!
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
- [Features](#Features)
|
- [Features](#Features)
|
||||||
- [Installation](#Installation)
|
- [Installation](#Installation)
|
||||||
|
@ -23,7 +23,7 @@ init()
|
|||||||
if(getDvar("bots_main_GUIDs") == "")
|
if(getDvar("bots_main_GUIDs") == "")
|
||||||
setDvar("bots_main_GUIDs", "");//guids of players who will be given host powers, comma seperated
|
setDvar("bots_main_GUIDs", "");//guids of players who will be given host powers, comma seperated
|
||||||
if(getDvar("bots_main_firstIsHost") == "")
|
if(getDvar("bots_main_firstIsHost") == "")
|
||||||
setDvar("bots_main_firstIsHost", false);//first player to connect is a host
|
setDvar("bots_main_firstIsHost", true);//first player to connect is a host
|
||||||
|
|
||||||
if(getDvar("bots_manage_add") == "")
|
if(getDvar("bots_manage_add") == "")
|
||||||
setDvar("bots_manage_add", 0);//amount of bots to add to the game
|
setDvar("bots_manage_add", 0);//amount of bots to add to the game
|
||||||
|
@ -23,6 +23,8 @@ doHostCheck()
|
|||||||
result = false;
|
result = false;
|
||||||
if (getDvar("bots_main_firstIsHost") != "0")
|
if (getDvar("bots_main_firstIsHost") != "0")
|
||||||
{
|
{
|
||||||
|
PrintConsole("WARNING: bots_main_firstIsHost is enabled\n");
|
||||||
|
|
||||||
if (getDvar("bots_main_firstIsHost") == "1")
|
if (getDvar("bots_main_firstIsHost") == "1")
|
||||||
{
|
{
|
||||||
setDvar("bots_main_firstIsHost", self getguid());
|
setDvar("bots_main_firstIsHost", self getguid());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user