fix: do not clean non-cmd buttons on IN_SCORE hook.
fix: reset search nodes when receiving team info message. fix: clear bot args on every call to bot client command. add: drone build scenario.
This commit is contained in:
parent
7f9c98aef1
commit
f51d3bf13b
5 changed files with 56 additions and 4 deletions
|
|
@ -409,10 +409,9 @@ CR_EXPORT int GetEntityAPI (gamefuncs_t *table, int) {
|
|||
table->pfnCmdStart = [] (const edict_t *player, usercmd_t *cmd, unsigned int random_seed) {
|
||||
auto ent = const_cast <edict_t *> (player);
|
||||
|
||||
// if we're handle pings for bots and clients, clear IN_SCORE button so SV_ShouldUpdatePing engine function return false
|
||||
// and SV_EmitPings will not overwrite our results
|
||||
// if we're handle pings for bots and clients, clear IN_SCORE button so SV_ShouldUpdatePing engine function return false, and SV_EmitPings will not overwrite our results
|
||||
if (game.is (GameFlags::HasFakePings) && cv_show_latency.int_ () == 2) {
|
||||
if ((cmd->buttons & IN_SCORE) || (ent->v.oldbuttons & IN_SCORE)) {
|
||||
if (cmd->buttons & IN_SCORE) {
|
||||
cmd->buttons &= ~IN_SCORE;
|
||||
|
||||
// send our version of pings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue