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
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:
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.
3 matches
Mail list logo