.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Releases, Installers, Docs & Coding (http://forums.bots-united.com/forumdisplay.php?f=48)
-   -   POD-bot back into shape. (http://forums.bots-united.com/showthread.php?t=833)

DreamLord34 24-02-2004 04:26

Re: POD-bot back into shape.
 
Ok gimme a few & I will get back to you.

V or 'Tex 24-02-2004 04:29

Re: POD-bot back into shape.
 
Having the bots buy equipment might be a bonus.

DreamLord34 24-02-2004 04:31

Re: POD-bot back into shape.
 
Ok they still don't like realbot as they caused hlds to crash within less then one minute, it was the realbot_mm.dll that crashed after adding podbots.
Server runs at a higher fps then with RB.....
Ok they still don't join at map change, Pierre.
The dll unloads at mapchange but fails to reload & sits as open when I do meta list.

Whistler 24-02-2004 06:19

Re: POD-bot back into shape.
 
about the door: IMO it's because bots just consider being stuck when they're passing through a door.

This works very well on my machine:
Code:

    if (m_iAimFlags < AIM_LASTENEMY)
    {
          // check if we're going through a door...
          UTIL_TraceLine(pev->origin, m_vecDestOrigin, ignore_monsters, edict(), &tr);
 
          if (tr.flFraction < 1.0 && !FNullEnt(tr.pHit))
          {
                  if (FClassnameIs(tr.pHit, "func_door") ||
                        FClassnameIs(tr.pHit, "func_door_rotating"))
                  {
                        // Always face the door when going through it
                        m_iAimFlags |= AIM_ENTITY;
                        m_vecEntity = VecBModelOrigin(tr.pHit);
                        // If the door is near enough...
                        if (Length2(m_vecEntity - pev->origin) < 2500)
                        {
                            m_flNoCollTime = gpGlobals->time + 0.5; // don't consider being stuck
                            if (RANDOM_LONG(1, 100) < 50)
                                  MDLL_Use(tr.pHit, edict()); // Also 'use' the door randomly
                        }
                  }
          }
    }
 
    ChooseAimDirection();
    FacePosition(m_vecLookAt);

Also the BotRateGroundWeapon function doesn't always return positive.

Pierre-Marie Baty 24-02-2004 06:20

Re: POD-bot back into shape.
 
@Vor'Tex: they don't ? ???:(

@DreamLord: if it crashed in realbot_mm.dll it's RealBot's fault, we'll have to wait for Stefan. Additionally I know that he had the exact same problem of DLL not reloading after map change with RealBot and so I'd like to know what he did about it to get it fixed.

I will make the bots use the buy menu shortcuts in CS 1.6 and not browse through the normal buy menus, that might help them buying stuff.

V or 'Tex 24-02-2004 06:31

Re: POD-bot back into shape.
 
They only buy on first round, and with $800 thats not much.

After that, if I drop something they may pick it up, but thats it.

Pierre-Marie Baty 24-02-2004 06:33

Re: POD-bot back into shape.
 
@Whistler: it's not necessarily a good idea to make bots look at the door's origin. The origin of a door entity behaves VERY strangely in the game. When the door has never been opened yet, the origin of its bounding box is normal (in the middle of the door), but once the door becomes pushed only once, its origin jumps 200 ft further although the model stays here!!! And this no matter if you read v.origin or go with VecBModelOrigin. Try it if you don't believe me, it's hallucinating =)

Anyway that's why I prefer the bot to look at the waypoint that's behind the door.

P.S: calling MDLL_Use() is cheating, you know that right ? ;) You should consider doing pEdict->v.button |= IN_USE rather...

DreamLord34 24-02-2004 07:25

Re: POD-bot back into shape.
 
Pierre, when I said that the podbot_mm.dll was sitting as open, RB wasn't loaded at the time as I disabled it. Just so you know. Haven't tried it since.

DreamLord34 24-02-2004 07:35

Re: POD-bot back into shape.
 
Ok now this is strange..... I tried meta reload podbot & this is what I get;

L 02/24/2004 - 00:34:15: [META] ERROR: dll: Not unloading plugin 'POD-Bot'; already unloaded (status=opened)
L 02/24/2004 - 00:34:15: [META] ERROR: dll: Failed to unload plugin 'POD-Bot' for reloading
Reload failed for plugin 'POD-Bot'
If it's already unloaded, why won't mmeta rerload reload the dll?

Pancak3 24-02-2004 09:21

Re: POD-bot back into shape.
 
which is better ivpbot or pb podbots version?
cuz i need a bot to teach my realbots. Ivpbot works well with realbot. i c that u guys have problems works realbot and pb podbots together. so which is better??


All times are GMT +2. The time now is 08:39.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.