![]() They will "rev" (hold right click) for at least three seconds if they see an enemy. Heavy bots prefer to use their primary weapon when in combat. Demoman bots will stop setting up their trap if they see an enemy that is less than 500 hu away. The amount of stickybombs they place is tf_bot_stickybomb_density × the area of the target nav area which will always be ≥1. They will sometimes set up sticky-bomb traps on nav areas where they predict the enemy will pass through. When they encounter Sentries, Demoman bots prefer their secondary over their primary and stack stickybombs on the Sentry to then detonate them. They will not fire with their primary above 45° or 0.79π. The angle they fire grenades is tf_bot_ballistic_elevation_rate × v, v being the distance to the target as a normalized vector. The chance that they will airblast a projectile depends on their skill level.ĭemoman bots fire their primary weapon in an arc. They airblast enemies that are closer than tf_bot_pyro_shove_away_range hammer units to the bot pyro, and projectiles if they are visible to the pyro bot and are within tf_bot_pyro_deflect_tolerance angles (in radians) relative to the Pyro bot's FOV. However if the enemy is further than 750hu, the bot Pyro will equip its secondary weapon. Pyro bots are normally offensive and will attack enemies with their primary weapon. Soldier bots prefer their primary weapon in combat, but will switch to their secondary if they are out of primary weapon ammo and the threat is closer than 500hu. ![]() There are 3 predefined rosters that are used if tf_bot_spawn_use_preset_roster 1 is set the offensive roster, the defensive roster, and competitive roster for competitive game modes. Rosters are ClassSelectionInfo arrays that determine how TFBots choose each class. The conditions for selecting a class can be the minimum team size, the player rate, minimum and maximum amount of the class. TFBots will change classes in spawn with tf_bot_reevaluate_class_in_spawnroom 1, and upon death through tf_bot_keep_class_after_death 0.ĬlassSelectionInfo is a structure that determines the conditions for selecting a class. ![]() Bots will try to retreat if the friend score is lower than the foe score. These scores are determined through accumulating the threat level of every visible known ally and enemy respectively. Typically the threat level is stored in two variables: the friend score and the foe score. The following actions give a certain threat level:Įnemies further than tf_bot_sniper_personal_space_range units from a Sniper This value is between 0 (no danger) and 1 (immediate danger). Threat levels are scores used to determine how dangerous something is. SearchRange = tf_bot_health_search_far_range + (current health / max health) * ( tf_bot_health_search_near_range - tf_bot_health_search_far_range ) īots won't try to get health in the Mann Vs. The range that bots will hunt for health in is
0 Comments
Leave a Reply. |