.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 2 SDK (http://forums.bots-united.com/forumdisplay.php?f=62)
-   -   HL2DM bots... (http://forums.bots-united.com/showthread.php?t=3629)

DrEvil 21-07-2008 19:35

Re: HL2DM bots...
 
Quote:

Originally Posted by stefanhendriks (Post 58540)
Also, how is bot handling now? I mean, you're using the plain plugin code delivered by Valve i suppose?

It's pretty much the same as it has been using the bot interface. There's just more functions added to get information we need, and a new IEntityInfo interface that you can get information from arbitrary non player edicts.

stefanhendriks 22-07-2008 15:11

Re: HL2DM bots...
 
yes, i have heard as well that CS : S will be ported to the Orange Box version of the source engine. If that is the case, it is of no use to code for the normal Source engine or whatsoever.

DrEvil 25-07-2008 09:43

Re: HL2DM bots...
 
How about a teaser?

http://www.youtube.com/watch?v=MHHEetn64Vo

botman 25-07-2008 16:24

Re: HL2DM bots...
 
Awesome news! I'm gonna have to get off my butt and get back to some bot coding for Source.

botman

Bluesman 25-07-2008 18:49

Re: HL2DM bots...
 
Quote:

Originally Posted by DrEvil (Post 58593)
How about a teaser?

Thanks! :)

Thranduin 06-08-2008 11:17

Re: HL2DM bots...
 
Hello guys,

I'm just following this thread for some time now.
I'm searching the SDK for some possibility to connect my CS-Bots (currently working with the 1.6 version).
So what I haven't got throughout the thread: is there already some kind of interface the bot could be connected to? (i know that not all functionalities are given). And if yes, where can I find it?

thanks a lot for your answers

regards

Bluesman 10-09-2008 00:32

Re: HL2DM bots...
 
Quote:

Originally Posted by DrEvil (Post 58593)
How about a teaser?

Got some more teasers? ;)

Bluesman 29-09-2008 21:37

Re: HL2DM bots...
 
More news from DrEvil:
http://www.omni-bot.de/e107/news.php

And a new teaser, Omni-bot in Team Fortress 2 - Demo-man:
http://www.youtube.com/watch?v=40XYSjkWphs

Cheeseh 29-12-2008 15:00

Re: HL2DM bots...
 
Can I ask how to gain access to this interface? (Is it made by valve ?)

Edit:

Actually no need,

see here:

http://wiki.alliedmods.net/Entity_Pr...es#Enumeration

use :

"CBasePlayer" and "m_iAmmo" for (int*) Ammo List

TF2 Ammo lists:

starting values in round brackets
ammo list index in square brackets

Code:

Scout
[1] Scatter gun (32)
[2] Pistol (36)
[3] ? (100)

Sniper
[1] Sniper Rifle (25)
[2] Auto Rifle (75)
[3] ? (100)

Soldier
[1] Rockets (16)
[2] Shotgun (32)
[3] ? (100)

Demoman
[1] Grenades (16)
[2] Stickies (24)
[3] ? (100)

Medic
[1] ?Syringe Gun? (150)
[2] ?Syringe Gun? (150)
[3] ? (100)

HWGuy
[1] Minigun (200)
[2] Shotgun (32)
[3] ? (100)

Pyro
[1] Flame (200)
[2] Shotgun (32)
[3] (100)?

Spy
[1] ?  (20)
[2] Pistol (24)
[3] ? (100)

Engineer
[1] Shotgun (32)
[2] Pistol ? (200)
[3] Wrench ? (200)

e.g.

Code:

int *CClassInterface :: getAmmoList ( edict_t *edict )
{
        static unsigned int offset = 0;
 
        if (!offset)
                offset = findOffset("m_iAmmo","CBasePlayer");
       
        if (!offset)
                return NULL;
 
        IServerUnknown *pUnknown = (IServerUnknown *)edict->GetUnknown();

        if (!pUnknown)
        {
                return NULL;
        }
 
        CBaseEntity *pEntity = pUnknown->GetBaseEntity();

        return (int *)((char *)pEntity + offset);
}

unsigned int CClassInterface :: findOffset(const char *szType,const char *szClass)
{
        ServerClass *sc = UTIL_FindServerClass(szClass);
        SendProp *pProp = UTIL_FindSendProp(sc->m_pTable, szType);

        if ( pProp )
                return pProp->GetOffset();

        return 0;
}

use

"CBaseEntity" and "m_iTeamNum"

to get the team index (int)

ZombieLuvva 29-01-2009 05:31

Re: HL2DM bots...
 
im so confused... hi guys im neither a programmer, analyzer nor am i a bot developing code descripting machine like you guys, all i do is pretty much play and review games and i have been really really wanting to play some HL2DM with some bots... i have read about these posts but got nowhere, can i have a clue or rather point by point instructions on how to play a game of HL2DM with some bots lol thanks!


All times are GMT +2. The time now is 23:17.

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