Raised This Month: $ Target: $400
 0% 

Set spectactor camera to just connected user


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Infernuz
Member
Join Date: May 2011
Old 03-05-2013 , 18:34   Set spectactor camera to just connected user
Reply With Quote #1

Well, the title says it all. I'm just wondering if it's possible. Have already searched a lot, but couldn't find just what I need.

I want to force a just connected player to use spectactor camera. When the player connects he isn't really in game. His team is set to CS_TEAM_UNASSIGNED and his m_iJoinedState looks like to be set to 4. And of course, he's not alive.

So, I am unable to use the famous DEAD_DEAD flag to force him to spectactor mode.

PHP Code:
set_pev(idpev_deadflagDEAD_DEAD); 
Of course I could force the player to join ct or t, kill them, and set them to spectactors. But! It's not really a solution to the problem when I only need the spectating camera just right when he connects.


EDIT: Solved the problem by hooking spectator in original choose team menu. Ugly fix, but anyways. It works.

Last edited by Infernuz; 03-06-2013 at 19:57.
Infernuz is offline
Send a message via ICQ to Infernuz
Reply



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 21:35.


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