change: bot path type selection is based on morale (fear/aggression level)
fix: partially fixes #227 (in matter of player pings)
This commit is contained in:
parent
05454f067c
commit
e213e39d17
3 changed files with 7 additions and 5 deletions
|
|
@ -582,7 +582,7 @@ void BotSupport::calculatePings () {
|
|||
engfuncs.pfnGetPlayerStats (client.ent, &ping, &loss);
|
||||
|
||||
// store normal client ping
|
||||
client.ping = getPingBitmask (client.ent, loss, ping > 0 ? ping / 2 : rg.get (8, 16)); // getting player ping sometimes fails
|
||||
client.ping = getPingBitmask (client.ent, loss, ping > 0 ? ping : rg.get (8, 16)); // getting player ping sometimes fails
|
||||
client.pingUpdate = true; // force resend ping
|
||||
|
||||
++numHumans;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue