[hlcoders] player join to spectator only - not spawn

2009-01-23 Thread Sykes
Anyone got some advice on where to start.. the hl2mp code seems to inherit a nest of calls from parent classes.. I'd like a player to go straight to spectator mode on connect?! cheers ___ To unsubscribe, edit your list preferences, or view the list

Re: [hlcoders] player join to spectator only - not spawn

2009-01-23 Thread Yorg Kuijs
Well I have this: void CHL2MP_Player::PickDefaultSpawnTeam( void ) { if ( GetTeamNumber() == 0 ) { if ( HL2MPRules()-IsTeamplay() == false ) { if ( GetModelPtr() == NULL ) { const char *szModelName = NULL; szModelName

Re: [hlcoders] player join to spectator only - not spawn

2009-01-23 Thread Sykes
Interesting .. thanks Yorg.. I was wondering if it was no better done somewhere around the finishclientputinserver() area.. might be where im going wrong :D the rational being - this is where player::spawn() is made... BTW : great example on how some documentation on the sdk would help greatly!

Re: [hlcoders] player join to spectator only - not spawn

2009-01-23 Thread Yorg Kuijs
Glad I could help, I found this only due to wanting a teammenu, found the default team function there http://developer.valvesoftware.com/wiki/Creating_a_Team-Menu Sykes wrote: Interesting .. thanks Yorg.. I was wondering if it was no better done somewhere around the