New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TF2_SetClientTeam to provide symmetry to TF2_GetClientTeam #267
Conversation
Also remove some trailing whitespace
Definitely include that in a different commit then the one where you've added something. |
Thanks, will definitely remember that for next time. |
I don't know if others agree, but I'd prefer it as TF2_ChangeClientTeam, to keep the name similar to the current API. "Set" can also imply that it's just setting a value, rather than taking action (and changing a clients team does do more behind the scenes than flipping a var). |
I've posted a poll in the Scripting subforum-I guess we'll look and see after a while. |
So it's pretty obvious which one's going to win at this point. Changed. In addition, Powerlord pointed out that there's a new |
If by new, you mean eight years old 😉. It's existed since the Orangebox engine debuted. The beauty of the one we're using now is that it is on a fairly stable interface. The other one would require gamedata as it would occasionally break. Additionally, automatically selecting a team and blocking the player_team event can be done manually without much hassle. |
New™! Also, the Travis CI build seems to have timed out 😢. |
I have convinced it to reconsider... |
Add TF2_SetClientTeam to provide symmetry to TF2_GetClientTeam (r=psychonic).
Is there any chance this can be merged into the 1.7-dev branch, or will this have to wait until 1.8? |
Do you have a more compressed changeset with just the changes you need to support this feature? |
It'll probably get picked up in @psychonic's next cherry pick run, generally stuff gets left to bake in master for a few days. |
Add TF2_SetClientTeam to provide symmetry to TF2_GetClientTeam (r=psychonic).
Continues #201, which added
TF2_GetClientTeam
. This PR addsTF2_SetClientTeam
in order to provide full symmetry. I was thinking about doingTF2_ChangeClientTeam
, since it wraps aroundChangeClientTeam
, but I decided against it because ofTF2_{Get|Set}PlayerClass
.Was also thinking about updating
tf2_stocks.inc
to new-style syntax but I have no idea how to do the C++ side of methodmaps.And...removes some trailing whitespace.