//=============================================================================
// VRikersGame.
//
// no default weapon
//
//=============================================================================
class VRikersGame expands UnrealGameInfo;

event playerpawn Login
(
	string[32]     Portal,
	string[120]    Options,
	out string[80] Error,
	class          SpawnClass
)
{
	local PlayerPawn      NewPlayer;
	
	NewPlayer = CallParent.Login(Portal, Options, Error, SpawnClass);
	if ( NewPlayer != None )
	{
		NewPlayer.ViewRotation.Pitch = 16384;
		NewPlayer.Health = 12;
	}
	return NewPlayer;
}

function StartPlayer(PlayerPawn Other)
{
	if ( (Level.NetMode == NM_Server) || !bRestartLevel )
		Other.GotoState('PlayerWaking');
	else
		Other.ClientLinkToURL( "?restart", false );
}

function bool RestartPlayer(pawn aPlayer)	
{
	local bool result;

	result = CallParent.RestartPlayer(aPlayer);
	if ( result )
	{
		aPlayer.Health = 12;
		aPlayer.ViewRotation.Pitch = 16384;
	}
	return result;
}

