.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 2 SDK
Half-Life 2 SDK For developments focused around the Half-Life 2 engine Half-Life 2

Reply
 
Thread Tools
Re: HL2DM bots...
Old
  (#91)
DrEvil
Member
 
DrEvil's Avatar
 
Status: Offline
Posts: 142
Join Date: Jan 2004
Location: Los Angeles, CA
Default Re: HL2DM bots... - 21-07-2008

Quote:
Originally Posted by stefanhendriks View Post
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.


Omni-bot AI framework
http://www.omni-bot.com

Foxbot - for Team Fortress Classic
http://www.foxbot.net


  
Reply With Quote
Re: HL2DM bots...
Old
  (#92)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: HL2DM bots... - 22-07-2008

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.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: HL2DM bots...
Old
  (#93)
DrEvil
Member
 
DrEvil's Avatar
 
Status: Offline
Posts: 142
Join Date: Jan 2004
Location: Los Angeles, CA
Default Re: HL2DM bots... - 25-07-2008

How about a teaser?

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


Omni-bot AI framework
http://www.omni-bot.com

Foxbot - for Team Fortress Classic
http://www.foxbot.net


  
Reply With Quote
Re: HL2DM bots...
Old
  (#94)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: HL2DM bots... - 25-07-2008

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

botman
  
Reply With Quote
Re: HL2DM bots...
Old
  (#95)
Bluesman
Member
 
Bluesman's Avatar
 
Status: Offline
Posts: 103
Join Date: Jan 2004
Location: Delsbo, Sweden
Default Re: HL2DM bots... - 25-07-2008

Quote:
Originally Posted by DrEvil View Post
How about a teaser?
Thanks!


"The blues are the roots, everything else is the fruits" -Willie Dixon
  
Reply With Quote
Re: HL2DM bots...
Old
  (#96)
Thranduin
Member
 
Status: Offline
Posts: 1
Join Date: Aug 2008
Default Re: HL2DM bots... - 06-08-2008

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
  
Reply With Quote
Re: HL2DM bots...
Old
  (#97)
Bluesman
Member
 
Bluesman's Avatar
 
Status: Offline
Posts: 103
Join Date: Jan 2004
Location: Delsbo, Sweden
Default Re: HL2DM bots... - 10-09-2008

Quote:
Originally Posted by DrEvil View Post
How about a teaser?
Got some more teasers?


"The blues are the roots, everything else is the fruits" -Willie Dixon
  
Reply With Quote
Re: HL2DM bots...
Old
  (#98)
Bluesman
Member
 
Bluesman's Avatar
 
Status: Offline
Posts: 103
Join Date: Jan 2004
Location: Delsbo, Sweden
Default Re: HL2DM bots... - 29-09-2008

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


"The blues are the roots, everything else is the fruits" -Willie Dixon
  
Reply With Quote
Re: HL2DM bots...
Old
  (#99)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: HL2DM bots... - 29-12-2008

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)

Last edited by Cheeseh; 30-12-2008 at 03:24..
  
Reply With Quote
Re: HL2DM bots...
Old
  (#100)
ZombieLuvva
Member
 
Status: Offline
Posts: 8
Join Date: Jan 2009
Default Re: HL2DM bots... - 29-01-2009

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!
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com