Raised This Month: $ Target: $400
 0% 

[ANY] How to properly switch team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 02-14-2019 , 05:32   Re: [ANY] How to properly switch team
Reply With Quote #1

Quote:
Originally Posted by ThatOneGuy View Post
may not be the same as what I put. Perhaps consider testing what has worked for me in several plugins before stating it untrue. Ignorance is not always bliss... (though we all eat those words at times).
Staying polite, and fully reading what the snippet is about would show you why I made this snippet.
It's aimed at people who can't use ChangeClientTeam due to undesired side effects. Force death is something you can avoid with the code you sent but it is not enough to avoid forced observer mode or whatever else the game code might have.
__________________
Benoist3012 is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 02-15-2019 , 13:51   Re: [ANY] How to properly switch team
Reply With Quote #2

Quote:
Originally Posted by Benoist3012 View Post
Staying polite, and fully reading what the snippet is about would show you why I made this snippet.
It's aimed at people who can't use ChangeClientTeam due to undesired side effects. Force death is something you can avoid with the code you sent but it is not enough to avoid forced observer mode or whatever else the game code might have.
I had thought that avoiding death was the primary goal. Great work finding a solution.
__________________
ThatOneGuy is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 02-15-2019 , 20:58   Re: [ANY] How to properly switch team
Reply With Quote #3

Quote:
Originally Posted by ThatOneGuy View Post
I had thought that avoiding death was the primary goal. Great work finding a solution.
Oh I just took this code part https://github.com/alliedmodders/hl2...pp#L7505#L7515
to be frank.

And yeah that's fine, perhaps I should have made the first post clearer.
__________________
Benoist3012 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode