//=============================================================================
// Male2.
//=============================================================================
class RPGMan extends HumanCivilian;


var int talked;
var _MMRPGPlayer talkto;

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

function Frob(Actor Frobber, Inventory frobWith)
{
	local _MMRPGPlayer Player;
	local Medkit med;

	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;

	Player.bInConv = True;
		LookAtActor(Frobber, True, True, False);
	
	if (player.killmission == 1)
	{
		Player.ReceiveMessage(""$Player.PlayerReplicationInfo.PlayerName$": Hey what's up?");
		talked = 1;
		SetTimer(2.4,False);
		return;
	}

	else if (player.killmission != 1)
	{
		Player.ReceiveMessage("MAN: Enough, I've said too much.");
		talked = 0;
		Player.bInConv = False;
		return;
	}
}

function Timer()
{
	local Medkit med;
	local MMRPGCreditCard Cred;

	Cred = talkto.CreditCard;


	if (talked == 1)
	{
		talkto.ReceiveMessage("MAN: If you're looking for Johnny he's in the Lady Luck bar.");
		talked = 2;
		SetTimer(3.3,False);
		return;
	}

	else if (talked == 2)
	{
		talkto.ReceiveMessage(""$talkto.PlayerReplicationInfo.PlayerName$": What would I want with Johnny?");
		talked = 3;
		SetTimer(3.1,False);
		return;
	}

	else if (talked == 3)
	{
		talkto.ReceiveMessage("MAN: You're not the assassin he was going to hire?");
		talked = 4;
		SetTimer(3.1,False);
		return;
	}
	else if (talked == 4)
	{
		talkto.ReceiveMessage(""$talkto.PlayerReplicationInfo.PlayerName$": I'm flattered.");
		talked = 5;
		SetTimer(2.7,False);
		return;
	}

	else if (talked == 5)
	{
		talkto.ReceiveMessage("MAN: No, just forget we had this conversation.");
		talked = 0;
		talkto.bInConv = False;
		talkto.killmission = 2;
		talkto.ClientMessage("Goal Received (Press F2 for details)");
		return;
	}
}


defaultproperties
{
     bfearAlarm=False
     bFearCarcass=False
     bFearDistress=False
     bFearShot=False
     bFearIndirectInjury=False
     Orders=Sitting
     bInvincible=True
     bHateShot=False
     bHateInjury=False
     bReactPresence=False
     bEmitDistress=False
     CarcassType=Class'DeusEx.Male2Carcass'
     WalkingSpeed=0.296000
     walkAnimMult=0.750000
     GroundSpeed=200.000000
     Mesh=LodMesh'DeusExCharacters.GM_DressShirt'
     MultiSkins(0)=Texture'DeusExCharacters.Skins.SkinTex3'
     MultiSkins(1)=Texture'DeusExItems.Skins.PinkMaskTex'
     MultiSkins(2)=Texture'DeusExItems.Skins.PinkMaskTex'
     MultiSkins(3)=Texture'DeusExCharacters.Skins.Male2Tex2'
     MultiSkins(4)=Texture'DeusExCharacters.Skins.SkinTex3'
     MultiSkins(5)=Texture'ContenderStuff.Skins.Velvettee'
     MultiSkins(6)=Texture'DeusExCharacters.Skins.FramesTex2'
     MultiSkins(7)=Texture'DeusExCharacters.Skins.LensesTex2'
     CollisionRadius=20.000000
     CollisionHeight=47.500000
     BindName="Male2"
     FamiliarName="Male"
     UnfamiliarName="Male"
}
