Creating a basic bot Created 2 years ago2022-03-18 23:54:54 UTC by Petko Petko

Created 2 years ago2022-03-18 23:54:54 UTC by Petko Petko

Posted 2 years ago2022-03-18 23:54:54 UTC Post #346351
Hi, I need some help making a very basic bot, im asking for help, beacuse all of my attempts failed.
All I used as a base for the bot is Botman's code (pretty sure I cant achive what I want with that)
The bot needs to be able to do the following:
  • Activate triggers when standing in them
  • Attack aliens with long range weapons (autoaim + shooting, it doesnt need to turn at all)
  • Think like a player (By that I mean run think code, so physics and basic player stuff applies to it)
Help would be much appreciated.

Code I alredy wrote for the bot:
https://github.com/piper742/ya-ps2hl-dll-updated/blob/master/dlls/ps2hlu_fakeplayer_decay.cpp

Thanks for reading!
Posted 2 years ago2022-03-25 10:47:30 UTC Post #346359
I think the Half-Life SDK has the Counter-Strike bot code: https://github.com/ValveSoftware/halflife/tree/master/game_shared/bot
It is probably more advanced than botman's code but it won't work without a lot of modification.
Posted 2 years ago2022-03-26 21:50:09 UTC Post #346369
@tschumann I already tried that, with not much success
Posted 1 year ago2022-03-30 13:11:30 UTC Post #346387
I've written an article that covers the basics of creating a bot that can spawn, stand and be attacked: https://twhl.info/wiki/page/Bot_Programming_-_Getting_Started

For AI programming you'll need to look at RCBot and other bot plugins.
Posted 1 year ago2022-04-10 06:49:08 UTC Post #346419
@Solokiller Thanks
You must be logged in to post a response.