10-21-2007, 01:17 AM | #1 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
SDK calls - ChangeTeam
I'm writing an addon that includes the ability to swap players to the other team.
It works except ChangeTeam seems to not perform cleanup that would normally occur on buildables. Sentry guns, dispensers, and detpacks all stay and turn on their former team with the player. I have worked around this by having the client commands detsentry/detdispenser called right before the switch. However, this won't work when the engineer is dead, and it does nothing about live detpacks. These don't come up often but I'd like to code this in a cleaner way. Anyone know which calls I can make to remove buildables in the way that teamswitching manually does? |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|