Re: [hlcoders] Respawning in floor problem

2008-12-11 Thread Yorg Kuijs
Well I don't know if anything is wrong with that but here's how I do it: RemoveAllItems( true ); State_Transition( STATE_OBSERVER_MODE ); and to stop: StopObserverMode(); State_Transition( STATE_ACTIVE ); this happens when the lives of the player run out, but

Re: [hlcoders] Respawning in floor problem

2008-12-11 Thread nemus
after messing around with the obs code it was found to be the off set of the player when they go into obs mode which was causing the spawning inside ground problem. so before spawning the player I had to set back Well I don't know if anything is wrong with that but here's how I do it:

[hlcoders] Respawning in floor problem

2008-12-10 Thread nemus
this is how I am setting obs mode CBasePlayer::SetObserverMode(OBS_MODE_ROAMING); // here we reset obs mode CBasePlayer::StopObserverMode(); pPlayer-SetMoveType(MOVETYPE_WALK); when the player re spawns they are stuck in the ground half way and half to duck out.