graph: reworked buckets so they can handle very large number of nodes

graph: reworked buckets so they can handle very large number of nodes
aim: bots should more respect headshot allow option (needs testing)
aim: incorporated never-finished changes from pr #204
nav: increased reachability timers a bit
nav: ensure buckets has enough nodes before use they
conf: introduced max recoil in difficulty config file
bot: overall fixes to jason mode, treat knife in hands and no weapons as jason mode too
bot: changed default difficulty level for bots to level 3
fix: knife attacks not working since last commit (fixes #429)
fix: hostage rescue not working since last commit (fixes #427)
refactor: use range loops for graph outside graph class when possible
This commit is contained in:
jeefo 2023-04-11 22:32:28 +03:00
commit 1a650c57ce
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
14 changed files with 426 additions and 347 deletions

View file

@ -19,11 +19,12 @@
; headshotProbability - Probability bot should aim at head instead of body if body and head both visible.
; seenThruWallChance - Chance the bot will attack enemy if he believes he's there and just seen him.
; heardThruWallChance - Chance the bot will attack enemy if he believes he's there and just heard him.
; maxWeaponRecoil - Maximum weapon recoil to compensate by pausing fire.
; aimError - (x, y, z) offsets to add aim error to bot aiming
;
Noob = 0.8, 1.0, 5, 0, 0
Easy = 0.6, 0.8, 30, 10, 10
Normal = 0.4, 0.6, 50, 30, 40
Hard = 0.2, 0.4, 75, 60, 70
Expert = 0.1, 0.2, 100, 90, 90
Noob = 0.8, 1.0, 5, 0, 0, 38, 30.0, 30.0, 40.0
Easy = 0.6, 0.8, 10, 0, 10, 32, 15.0, 15.0, 24.0
Normal = 0.4, 0.6, 50, 30, 40, 26, 5.0, 5.0, 10.0
Hard = 0.2, 0.4, 75, 60, 70, 23, 0.0, 0.0, 0.0
Expert = 0.1, 0.2, 100, 90, 90, 21, 0.0, 0.0, 0.0