IPB

Welcome Guest ( Log In | Register )

> Added Payload and Dedicaded Server Support!, changed 0.43 Version
The_Shadow3
post Jun 27 2009, 05:09 PM
Post #1


Newbie
*

Group: Members
Posts: 8
Joined: 27-June 09
From: Germany
Member No.: 1,589



Hi,

I have added a basic payload support (Blue following the payload bomb)
and this works in pl_goldrush!

Known important bugs:
- Bots stuck at start (mostly engineers and snipers), but most bots running after the setup time

After this, i fixed the "rcbotd addbot" bug. Now its playable in dedicated server.
(Important: Read this thread: Link)


bot.cpp:
Line 1751 and 1755

CODE

        char cmd[64];

        sprintf(cmd,"bot -name \"%s\"\n",szOVName);
        // control next bot that joins server
        m_bControlNext = true;

        if ( CClients::get(0)->getPlayer() && !engine->IsDedicatedServer() )
            engine->ClientCommand(CClients::get(0)->getPlayer(),cmd);
        else
            engine->ServerCommand(cmd); // Might not work

        return true;


@Cheeseh: Please add the payload and dedicated server changes in you version!! smile.gif

-----------------------------------------------------

V2 Released:
  • Code change: add own schedule and Task Classes
  • Spys decloak if pushing the Bomb
  • small other changes
V3 Released!
See this Thread: Link

Download Link (sources included):
Version 1
Version 2
Version 3

Mirror:
Version 2

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
The_Shadow3
post Jun 28 2009, 01:44 PM
Post #2


Newbie
*

Group: Members
Posts: 8
Joined: 27-June 09
From: Germany
Member No.: 1,589



Hi Cheeseh,

I'm not finished with this Bot wink.gif.

I have an new Version, this fixed the crash if bomb is exploded.
And add more dynamic gameplay:
After a time (~10-30 seconds) the bot only walk during the map and attack only the enemies (they don't push the Bomb).
Example: 4vs4, 2 Blue Bots pushing the bomb, and other two attack the enemys. ^^

CODE

    if(m_bBlockPushTime < engine->Time())
    {
        m_bBlockPushing = !m_bBlockPushing;
        m_bBlockPushTime = engine->Time() + randomInt(10,30);
    }

    if(m_bBlockPushing == false)
    {
        if(getTeam() == 3)    // Team Blue
            utils.addUtility(CBotUtility(BOT_UTIL_GOTO_PAYLOADBOMB,CTeamFortress2Mod::isMapType(TF_MAP_CART),fGetFlagUtility));
        if(getTeam() == 2)
            utils.addUtility(CBotUtility(BOT_UTIL_DEFEND_PAYLOADBOMB,CTeamFortress2Mod::isMapType(TF_MAP_CART)&&m_iClass!=TF_CLASS_SPY&&m_iClass!=TF_CLASS_SNIPER,fDefendFlagUtility));
    }


@Defence Area: this is a good idea for Engineers and Snipers, the other Classes go direct to the Bomb.

@CP Maps: don't forgot cp_dustbowl!

I think I release this version next day.

After this Version, i show if I can make support for payload race maps and send you (Cheeseh) a new version from my sourcecode with svn update.

Know Important Bugs:
  • Shooting walking during the closing doors
  • Camping on the health-kit places

Edit:
QUOTE(Fillmore @ Jun 28 2009, 12:06 AM) *

Do the spies remove their disguise also?


yes!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Jun 28 2009, 02:21 PM
Post #3


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(The_Shadow3 @ Jun 28 2009, 02:44 PM) *

Hi Cheeseh,

I'm not finished with this Bot wink.gif.

I have an new Version, this fixed the crash if bomb is exploded.
And add more dynamic gameplay:
After a time (~10-30 seconds) the bot only walk during the map and attack only the enemies (they don't push the Bomb).
Example: 4vs4, 2 Blue Bots pushing the bomb, and other two attack the enemys. ^^

CODE

    if(m_bBlockPushTime < engine->Time())
    {
        m_bBlockPushing = !m_bBlockPushing;
        m_bBlockPushTime = engine->Time() + randomInt(10,30);
    }

    if(m_bBlockPushing == false)
    {
        if(getTeam() == 3)    // Team Blue
            utils.addUtility(CBotUtility(BOT_UTIL_GOTO_PAYLOADBOMB,CTeamFortress2Mod::isMapType(TF_MAP_CART),fGetFlagUtility));
        if(getTeam() == 2)
            utils.addUtility(CBotUtility(BOT_UTIL_DEFEND_PAYLOADBOMB,CTeamFortress2Mod::isMapType(TF_MAP_CART)&&m_iClass!=TF_CLASS_SPY&&m_iClass!=TF_CLASS_SNIPER,fDefendFlagUtility));
    }


@Defence Area: this is a good idea for Engineers and Snipers, the other Classes go direct to the Bomb.

@CP Maps: don't forgot cp_dustbowl!

I think I release this version next day.

After this Version, i show if I can make support for payload race maps and send you (Cheeseh) a new version from my sourcecode with svn update.

Know Important Bugs:
  • Shooting walking during the closing doors
  • Camping on the health-kit places
Edit:
yes!


Ok if you can , can u add a full changelist / diff / patch of code, and I should add you to the SVN if not already and u should use that.

I can have a go at the health camping issue

also because cp_dustbowl has a different style to cp_badlands/well/granary it is more difficult, will take a little more time as I will need to use the "area" feature I spoke of
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
The_Shadow3   Added Payload and Dedicaded Server Support!   Jun 27 2009, 05:09 PM
Geralt   Sounds good - I'll give it a go soon. Could I...   Jun 27 2009, 06:45 PM
Fillmore   Hi, I have added a basic payload support (Blue ...   Jun 27 2009, 07:05 PM
Geralt   Only pl at the moment.   Jun 27 2009, 07:08 PM
Skeggar   This is awesome, tried on goldrush (with my waypoi...   Jun 27 2009, 08:10 PM
The_Shadow3   thx! I released Version 2. This have only sma...   Jun 27 2009, 08:41 PM
KeReMiD4O   When blu moves the cart to the last point on pl_ba...   Jun 27 2009, 09:31 PM
Fillmore   thx! I released Version 2. This have only sm...   Jun 27 2009, 10:06 PM
Cheeseh   Do the spies remove their disguise also? Heck yea...   Jun 28 2009, 11:04 AM
The_Shadow3   Hi Cheeseh, I'm not finished with this Bot ;)...   Jun 28 2009, 01:44 PM
Cheeseh   Hi Cheeseh, I'm not finished with this Bot ;...   Jun 28 2009, 02:21 PM
MacinSam   Eh, I'm unable to download it - I'm gettin...   Jun 28 2009, 02:08 PM
The_Shadow3   Eh, I'm unable to download it - I'm getti...   Jun 28 2009, 05:02 PM
MacinSam   Mirror added, but the other links working! ...   Jun 29 2009, 06:33 AM
Cheeseh   Oops sorry I accidently deleted the last message a...   Jun 29 2009, 10:24 AM
MacinSam   Oops sorry I accidently deleted the last message ...   Jun 30 2009, 03:53 PM
Cheeseh   Yes. Maybe you should make a new thread about th...   Jun 30 2009, 04:17 PM
MacinSam   Maybe you should make a new thread about the prob...   Jul 1 2009, 05:45 AM
Geralt   Cheeseh - as Shadow3 said, the bots camp on the he...   Jun 28 2009, 02:08 PM
Geralt   In General: also noticed a bug with the engineers,...   Jun 29 2009, 04:37 AM
bir3yk   With changes The_Shadow3 in input "rcbotd add...   Jun 29 2009, 12:12 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 20th July 2025 - 11:28 AM