.:: 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
Let the revolution begin!!!
Old
  (#1)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Let the revolution begin!!! - 31-12-2004

Check this out...

www.botman2.com/videos/HPB_bot2_alpha.avi

I got bots working in Counter-Strike: Source!!!

P.S. That video isn't going to stay there long. Somebody might want to mirror it before this time tomorrow.

(source code coming soon)

EDIT: Viva la revolution!

botman
  
Reply With Quote
Re: Let the revolution begin!!!
Old
  (#2)
Cpl. Shrike
ShrikeBot Coder/Moderator
 
Cpl. Shrike's Avatar
 
Status: Offline
Posts: 550
Join Date: Mar 2004
Location: The Netherlands
Default Re: Let the revolution begin!!! - 31-12-2004

One word. (or two)

Botman you rule

===============
EDIT: Viva la revolution!

===============
EDIT: mirror here

Botmans HPB bot2 alpha movie

Botmans HPB_bot2_Alpha_Source.zip

Last edited by Cpl. Shrike; 31-12-2004 at 05:30..
  
Reply With Quote
Re: Let the revolution begin!!!
Old
  (#3)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: Let the revolution begin!!! - 31-12-2004

can always count on the bot-man 8D
  
Reply With Quote
Re: Let the revolution begin!!!
Old
  (#4)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: Let the revolution begin!!! - 31-12-2004

As promised, here is the server plugin source code...

www.botman2.com/downloads/HPB_bot2_Alpha_1.zip

You will need to have created a Mod first (using Steam "Play Games" and double-clicking on "Source SDK", then double-clicking on "Create a Mod", and choosing "Start a mod from scratch").

Unzip the .zip file into your "MyMod/src/utils" folder and read the ReadMe.txt file found in the "MyMod/src/utils/HPB_bot2" folder.

Have fun!!!

botman

Last edited by botman; 31-12-2004 at 04:53..
  
Reply With Quote
Re: Let the revolution begin!!!
Old
  (#5)
cannonfodder
Member
 
Status: Offline
Posts: 8
Join Date: Dec 2004
Default Re: Let the revolution begin!!! - 31-12-2004

hmmm... I wonder who suggested this ...

gameclients->ProcessUsercmds(pBot->edict, &read_buf, 1, 1, 0, false, false);

I'm still going to one-up you by figuring out how to get at the baseclass though.
If the client can do it I still think the plugin can.

Last edited by cannonfodder; 31-12-2004 at 05:12..
  
Reply With Quote
Re: Let the revolution begin!!!
Old
  (#6)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: Let the revolution begin!!! - 31-12-2004

GO FOR IT! I'd love to see somebody get that working reliably inside a plugin. I still think it's impossible (at least to maintain it over various upgrades to the engine and game DLL files) since you assume that you know what is contained in the CBaseEntity and CBasePlayer classes based on what's in the SDK. There is nothing that forces MOD authors to use either of these classes as they exist in the SDK (MODs can add or remove stuff from them without your knowledge and this will break things because function pointers and member variables won't match up anymore).

BUT HEY! Give it a shot and see what you can do!

botman

Last edited by botman; 31-12-2004 at 05:34..
  
Reply With Quote
Re: Let the revolution begin!!!
Old
  (#7)
cannonfodder
Member
 
Status: Offline
Posts: 8
Join Date: Dec 2004
Default Re: Let the revolution begin!!! - 31-12-2004

I don't believe you can change cbaseentity without crashing the engine. Since there are engine funcs to get to this (which I thought I could use, but I can't ).

If they change cbaseentity & engine then you'll have to recompile anyway.

cbaseplayer can obviously change and I would expect it to.
  
Reply With Quote
Re: Let the revolution begin!!!
Old
  (#8)
cannonfodder
Member
 
Status: Offline
Posts: 8
Join Date: Dec 2004
Default Re: Let the revolution begin!!! - 31-12-2004

So it appears that
CSDKPlayer* pPlayer = ((CSDKPlayer *)CBaseEntity::Instance( g_pEdict ));

actually returns a REAL pointer to cbaseentity. Even when called in a plugin. I was able to create a bot and get him to move by calling

pPlayer->PlayerRunCommand( &cmd, MoveHelperServer() );

This calls back into server.dll, since the function pointers were set up there !

I had to stub out MoveHelperServer since I don't have one in the plugin, but everything else appears to work. I was able to kill the bot, and it would respawn
right away.


Last edited by cannonfodder; 31-12-2004 at 15:25..
  
Reply With Quote
Re: Let the revolution begin!!!
Old
  (#9)
Rifleman
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 128
Join Date: Sep 2004
Location: Mars
Default Re: Let the revolution begin!!! - 31-12-2004

Ah and yes botman , is the plugin can only be compiled with Microsoft Visual Studio .NET ? I only have MSVC 6
  
Reply With Quote
Re: Let the revolution begin!!!
Old
  (#10)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Let the revolution begin!!! - 31-12-2004

nice work botman ! ( who expected anything else but this development ?! )

about MSVC: http://wiki.bots-united.com/index.ph...Life%202%20SDK


  
Reply With Quote
Reply


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

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