ItsMods

Full Version: PTK Bots
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do you add bots to protect the king mod.
Haha epic question with dot.
You need to edit _bot.gsc in maps/mp/gametypes
Remove those lines:
Code:
    if ( !level.onlineGame )
    {
        if ( GetDvarInt( "systemlink" ) != 0 )
        {
            return;
        }

        if ( level.gameType != "tdm" && level.gameType != "dm" )
        {
            return;
        }

        level.bot_offline = true;
    }

Then edit this code
Code:
    if ( level.onlineGame && !GetDvarInt( #"xblive_basictraining" ) )
    {
        if( !level.console )
        {
            bot_spawner_Once();
        }
        return;
    }

Remove return; and
Code:
    if ( level.onlineGame && !GetDvarInt( #"xblive_basictraining" ) )
    {
        if( !level.console )
        {


So it must be just 'bot_spawner_Once();'

Then bots will be spawned in your game.

If you are laaazzyy like me you can download it there:
http://pastebin.com/gq8V8NAq

Bots may be a bit buggy in some mods, so you need to fix some stuff.
(03-16-2013, 11:33)SailorMoon Wrote: [ -> ]Haha epic question with dot.
You need to edit _bot.gsc in maps/mp/gametypes
Remove those lines:
Code:
    if ( !level.onlineGame )
    {
        if ( GetDvarInt( "systemlink" ) != 0 )
        {
            return;
        }

        if ( level.gameType != "tdm" && level.gameType != "dm" )
        {
            return;
        }

        level.bot_offline = true;
    }

Then edit this code
Code:
    if ( level.onlineGame && !GetDvarInt( #"xblive_basictraining" ) )
    {
        if( !level.console )
        {
            bot_spawner_Once();
        }
        return;
    }

Remove return; and
Code:
    if ( level.onlineGame && !GetDvarInt( #"xblive_basictraining" ) )
    {
        if( !level.console )
        {


So it must be just 'bot_spawner_Once();'

Then bots will be spawned in your game.

If you are laaazzyy like me you can download it there:
http://pastebin.com/gq8V8NAq

Bots may be a bit buggy in some mods, so you need to fix some stuff.

just had a look but there is no _bot.gsc in that folder.
You need to add this file in mp_yourmod/maps/mp/gametypes/.
AddTestClient(); AddTestClient(); AddTestClient(); AddTestClient(); AddTestClient(); AddTestClient(); AddTestClient();
(03-16-2013, 23:42)JariZ Wrote: [ -> ]AddTestClient(); AddTestClient(); AddTestClient(); AddTestClient(); AddTestClient(); AddTestClient(); AddTestClient();

No no no no no no no no no no no no no no no....
Game may crash, plus you need to setup them.