Bots-United / jk_botti

Bot (Computer AI) for Half-Life 1 Deathmatch
http://forums.bots-united.com/forumdisplay.php?f=83
Other
43 stars 21 forks source link

jk_botti 1.44β

  1. Intro
  2. What's new
  3. Installing
  4. Config, Commands

  1. Intro

This is 1.44β release of jk_botti, by Jussi Kivilinna jussi.kivilinna@iki.fi You are free to use code for any of your needs.

jk_botti is computer gamer for multiplayer mode of Half-Life (HLDM) and has strong support for various submods of HLDM, modifications that change game on serverside but doesn't require client modifications.

jk_botti aims to:

jk_botti is mostly tested with Severian's, but works with original HLDM and Bubblemod. As of version 1.40 jk_botti also supports Opposing Force. On Severian's and Bubblemod, gluon is disabled. Bot might work with XDM but this hasn't been tested.

One of my major goals with jk_botti was to lower CPU usage compared to HPB_bot. I used to run Severian's server on 400Mhz Celeron (later updated 800Mhz Athlon) and even few HPB_bots would rise cpu usage too high. (Update: I have new server on P3-550Mhz, with default small/medium maps like datacore/stalkyard with three bots I have see 15% cpu usage).

Trick(s) used to lower CPU usage:

Aiming system on jk_botti does not use currently available and latest player locations for tracking and shooting enemy but instead use old data (level 1 bot 60ms, level 5 bot 300ms old) to guess position of player. This makes bot-aiming worser when player changes movement vector rapidly (jump, duck, change strafe direction rapidly).

jk_botti creates waypoints automatically when 'autowaypoint' setting is enabled in config. Autowaypointing collects data on map start (weapon/item locations) and creates new waypoints on those locations. Then jk_botti waits real player(s) to join server and start moving around. New waypoints are added to new places where there isn't old waypoints already present. Newly added waypoints will not be effective until map change. This is because jk_botti needs to recreate route matrixes with new waypoints and since this is CPU intensive operation this can only be done on map change.

Credits:


  1. What's new

    1.44β:

    • Fix rare crash when bot tries to shoot tripmine with MP5

1.43:

1.42:

1.41:

1.40:

1.30:

1.24:

1.20:

1.10:

1.01:

1.00:

0.57:

0.56:

0.54:

0.53:

0.52:

0.50:

0.40:

0.31:

0.30:

0.20


  1. Installing

    jk_botti is Metamod plugin, so I except you have already installed Metamod successfully. If not read: http://wiki.bots-united.com/index.php/How_to_install_metamod http://wiki.bots-united.com/index.php/How_to_install_a_metamod_bot_%28or_any_metamod_plugin%29

Binary release file comes with correct directory structure: addons/jk_botti/dlls/ - binaries addons/jk_botti/waypoints/ - empty directory created for waypoint files. addons/jk_botti/* - config files, readme files

  1. If this is NOT first install, backup your old jk_botti config files.
  2. Extract release file to your 'valve' directory.
  3. Edit 'addons/metamod/plugins.ini' and add like 'win32 addons/jk_botti/dlls/jk_botti_mm.dll'
  4. If this is your first install edit 'addons/jk_botti/jk_botti.cfg', otherwise restore your backup config
  5. Start server and enjoy.

  1. Config, Commands

    For commands 'bot_skill_setup' and 'botweapon' see below. For other commands see jk_botti.cfg

Command - bot_skill_setup

Usage:

List of available settings:

Command - botweapon

Usage:

List of weapon-namess:

weapon_crowbar weapon_handgrenade weapon_snark weapon_egon weapon_gauss weapon_shotgun weapon_357 weapon_hornetgun weapon_9mmAR weapon_crossbow weapon_rpg weapon_9mmhandgun

List of available settings: