FWGS / hlsdk-portable

Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
https://xash.su
Other
272 stars 125 forks source link

jointeam is unknown command #199

Closed FreeSlave closed 3 years ago

FreeSlave commented 3 years ago

Client code can send this command but it does not exist on server. Should we implement it ourselves?

From jointeam 1 to jointeam 4 means to join team 1-4. jointeam 5 means autoassign

Note that it's not implemented in steam release either.

mittorn commented 3 years ago

Are you using tfc server? Client vgui code is TFC stuff, it not used in HL

FreeSlave commented 3 years ago

@mittorn you can reach team selection window via spectator mode in Half-Life (by pressing enter) and it does show team names in team deathmatch (hgrunt, robo, etc. depending on team list). Pressing buttons send jointeam commands, but they do nothing on server.

FreeSlave commented 3 years ago

When I think of it I remember having 4 teams on some tfc servers. So it might be a leftover of tfc code indeed, and it correctly show team names due to how generic code is written. Devs could forget to disable this menu in Half-Life or they left it for server-side mods which could implement the command by themselves, who knows.

mittorn commented 3 years ago

TFC development was started before client and pmove code was separated from engine, so common code with early TFC in client is OK