//=============================================================================
//
//=============================================================================
class RPGNurse extends HumanCivilian;

var _MMRPGPlayer talkto;
var int talked;

function TakeDamageBase(int Damage, Pawn instigatedBy, Vector hitlocation, Vector momentum, name damageType,
                        bool bPlayAnim)
{}

function Frob(Actor Frobber, Inventory frobWith)
{
	local MMRPGCreditCard Cred;
	local _MMRPGPlayer Player;

	If (Frobber.IsA('DeusExPlayer'))
	{
		If(talked != 0)
		{
			_MMRPGPlayer(Frobber).ReceiveMessage("Someone is already talking to this person!");
			return;
		}
	}

//	Super.Frob(Frobber, frobWith);
	Player = _MMRPGPlayer(Frobber);
	talkto = Player;
		LookAtActor(Frobber, True, True, False);

	Player.ReceiveMessage(""$Player.PlayerReplicationInfo.PlayerName$": Hello");
	talked = 1;
	SetTimer(1.9,False);
	return;
}

function Timer()
{
local Mover Door;

	if (talked == 1)
	{
		talkto.ReceiveMessage("NURSE: Hi, Welcome to the clinic.");
		talked = 2;
		SetTimer(2.7,False);
		return;
	}

	else if (talked == 2)
	{
		talkto.ReceiveMessage("NURSE: The waiting room is on your right");
		talked = 3;
		SetTimer(2.3,False);
		return;
	}
	else if (talked == 3)
	{
		talkto.ReceiveMessage("NURSE: and the main hospital area is upstairs.");
		talked = 0;
		return;
	}
}

defaultproperties
{
     bfearAlarm=False
     bFearCarcass=False
     bFearDistress=False
     bFearShot=False
     bFearIndirectInjury=False
     Orders=Sitting
     bInvincible=True
     bHateShot=False
     bHateInjury=False
     bReactPresence=False
     bEmitDistress=False
     MinHealth=0.000000
     CarcassType=Class'DeusEx.NurseCarcass'
     WalkingSpeed=0.320000
     BaseAssHeight=-18.000000
     walkAnimMult=0.650000
     bIsFemale=True
     GroundSpeed=120.000000
     BaseEyeHeight=38.000000
     Mesh=LodMesh'DeusExCharacters.GFM_SuitSkirt'
     MultiSkins(0)=Texture'DeusExCharacters.Skins.NurseTex0'
     MultiSkins(1)=Texture'DeusExCharacters.Skins.NurseTex0'
     MultiSkins(2)=Texture'DeusExCharacters.Skins.NurseTex0'
     MultiSkins(3)=Texture'DeusExCharacters.Skins.LegsTex1'
     MultiSkins(4)=Texture'DeusExCharacters.Skins.NurseTex1'
     MultiSkins(5)=Texture'DeusExCharacters.Skins.NurseTex1'
     MultiSkins(6)=Texture'DeusExItems.Skins.GrayMaskTex'
     MultiSkins(7)=Texture'DeusExItems.Skins.BlackMaskTex'
     CollisionRadius=20.000000
     CollisionHeight=43.000000
     BindName="Nurse"
     FamiliarName="Nurse"
     UnfamiliarName="Nurse"
}
