tf2-patches
tf2-patches copied to clipboard
The getpos command does not always print correctly
Description
The getpos command prints out "setpos x y z;" and "setang y p r", but the order is not consistent. I believe the correct behavior is setpos and then setang, so the output can be directly copied as a command.
Checklist
- [x] None of the open or closed issues document this problem.
- [x] This is a bug, not a new idea.
- [x] This is objectively a bug, and not something that people commonly disagree on.
- [x] This bug is in the code of the game, not in the textures, sounds, or other resources.
- [x] This issue occurs on the latest vanilla TF2 update.
- [ ] This issue is listed on the Source 1 official bugtracker.
- [x] This issue occurs when using a listen server (using the
mapcommand ingame). - [x] This issue occurs when using a dedicated server.
- [ ] This bug is in the internal procedures or tooling (e.g. the build process).
-- untested --
- [ ] This issue occurs with DirectX level 100.
- [ ] This issue occurs on the latest Team Comtress release, or the
masterbranch. - [ ] This issue occurs when using no custom content.
- [ ] This issue occurs when using
start_tf2.bat(orstart_server.bat) with no custom launch options.
Reproduction
- Open tf2 and load into a map using "map cp_process_final" (or another map)
- Open the console and type getpos. It will sometimes print out in one order, sometimes in the other
Screenshots

Setup Details
- Server or client: client
- Operating system: Windows 10
- Team Comtress version: N/A
- Custom content: Sunset Hud, mastercomfig medium-low
- Launch options: -novid -nojoy -nosteamcontroller -nohltv -particles 1
the output is correct, this is related to a common issue with the output going out of order within the console itself. the incorrect new line is unique to the console window design, does not happen when you read debugger output of the console.