Skip to content

[Bug]: OnPlayerRunCmd returns jibberish for mouse values since recent tf2 update #2320

Closed
@jwestfall69

Description

@jwestfall69

Prerequisites

  • I have checked that my issue doesn't exist yet in the issue tracker

Operating System and Version

Debian 12.11

Game / AppID and Version

TF2 / Version: 9742990 AppID: 232250

SourceMod Version

1.12.0-git7202

Metamod:Source Version

No response

Version Verification

Updated SourceMod Version

1.12.0-git7202

Updated Metamod:Source Version

No response

Description

We noticed that afk-manager4 stopped considering afk clients as afk. When debugging the issue I found the mouse values being provided by OnPlayerRunCmd by were jibberish causing the plugin to always consider the client's mouse to be moving.

Steps to Reproduce

public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon, int &subtype, int &cmdnum, int &tickcount, int &seed, int mouse[2])
{
    LogMessage("%d %d %d", client, mouse[0], mouse[1]);
    return Plugin_Continue;
}

Connect to server, join team, don't move mouse, watch server logs

Relevant Log Output

L 05/21/2025 - 03:29:40: [test.smx] 1 26066 18232
L 05/21/2025 - 03:29:40: [test.smx] 1 29884 18232
L 05/21/2025 - 03:29:40: [test.smx] 1 -31772 18232
L 05/21/2025 - 03:29:40: [test.smx] 1 -27975 18232
L 05/21/2025 - 03:29:40: [test.smx] 1 -20299 18232
L 05/21/2025 - 03:29:40: [test.smx] 1 -20299 18232
L 05/21/2025 - 03:29:40: [test.smx] 1 -16431 18232
L 05/21/2025 - 03:29:40: [test.smx] 1 -12600 18232
L 05/21/2025 - 03:29:40: [test.smx] 1 -8750 18232
L 05/21/2025 - 03:29:40: [test.smx] 1 -4923 18232
L 05/21/2025 - 03:29:40: [test.smx] 1 -1068 18232
L 05/21/2025 - 03:29:40: [test.smx] 1 2748 18233
L 05/21/2025 - 03:29:40: [test.smx] 1 6600 18233
L 05/21/2025 - 03:29:40: [test.smx] 1 10437 18233
L 05/21/2025 - 03:29:40: [test.smx] 1 14316 18233
L 05/21/2025 - 03:29:40: [test.smx] 1 18129 18233
L 05/21/2025 - 03:29:40: [test.smx] 1 21947 18233
L 05/21/2025 - 03:29:40: [test.smx] 1 25800 18233
L 05/21/2025 - 03:29:40: [test.smx] 1 29622 18233
L 05/21/2025 - 03:29:40: [test.smx] 1 -32066 18233
L 05/21/2025 - 03:29:40: [test.smx] 1 -28207 18233
L 05/21/2025 - 03:29:40: [test.smx] 1 -24376 18233
L 05/21/2025 - 03:29:40: [test.smx] 1 -20526 18233
L 05/21/2025 - 03:29:40: [test.smx] 1 -16694 18233
L 05/21/2025 - 03:29:41: [test.smx] 1 -12870 18233
L 05/21/2025 - 03:29:41: [test.smx] 1 -9031 18233
L 05/21/2025 - 03:29:41: [test.smx] 1 -5164 18233
L 05/21/2025 - 03:29:41: [test.smx] 1 -1336 18233
L 05/21/2025 - 03:29:41: [test.smx] 1 2506 18234
L 05/21/2025 - 03:29:41: [test.smx] 1 6344 18234
L 05/21/2025 - 03:29:41: [test.smx] 1 10193 18234
L 05/21/2025 - 03:29:41: [test.smx] 1 14010 18234

Metadata

Metadata

Assignees

Labels

Buggeneral bugs; can be anything

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions