//=============================================================================
// Hooker1.
//=============================================================================
class RPGHooker extends HumanCivilian;

var _MMRPGPlayer talkto;
var int talked;
var int count;

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


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

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

//	Super.Frob(Frobber, frobWith);
	Player = _MMRPGPlayer(Frobber);

	Player.bInConv = True;
		LookAtActor(Frobber, True, True, False);

	if (Player.Clubmission == 1)
	{
		Player.ReceiveMessage("HOOKER: Heya baby.");
		talkto = Player;
		talked = 1;
		SetTimer(2.0,False);
		return;
	}
			
	if (Player.Clubmission == 2)
	{
		Inv=None;
		foreach AllActors(class'RPGPolicePistol', Inv)
		{
			if (Inv.Owner == Player)
			{
				if (Inv != None)
				{
					Inv.Destroy();
					talkto = Player;
					Player.ReceiveMessage("HOOKER: Thanks baby, here's a little something (140c.)");
					talked = 77;
					SetTimer(2.8,False);
					return;
				}
			}
		}

		if (Inv == None)
		{
			Player.ReceiveMessage("HOOKER: Hurry up and get my pistol.");
			Player.bInConv = False;
			talked = 0;
		}
	}

	if (Player.Clubmission == 3)
	{
		Player.ReceiveMessage("HOOKER: Maybe we can meet up sometime.");
		Player.bInConv = False;
		talked = 0;
		return;
	}
}


function Timer()
{

local MMRPGCreditCard Cred;

	if (talked == 77)
	{
		Cred = talkto.creditcard;
		talkto.ReceiveMessage("HOOKER: Also, I told the guard by the park to let you into the Players Club.");
		talkto.Clubmission = 3;
		Cred.CreditAmount +=140;
		talked = 9;
		SetTimer(2.7,False);
		return;
	}

	else if (talked == 1)
	{
		talkto.ReceiveMessage(""$talkto.PlayerReplicationInfo.PlayerName$": How you doin?");
		talked = 2;
		SetTimer(2.7,False);
		return;
	}

	else if (talked == 2)
	{
		talkto.ReceiveMessage("HOOKER: Can you help me out?");
		talked = 3;
		SetTimer(2.8,False);
		return;
	}

	else if (talked == 3)
	{
		talkto.ReceiveMessage(""$talkto.PlayerReplicationInfo.PlayerName$": Sure");
		talked = 4;
		SetTimer(2.7,False);
		return;
	}

	else if (talked == 4)
	{
		talkto.ReceiveMessage("HOOKER: The police arrested my boyfriend and took his pistol");
		talked = 5;
		SetTimer(3.0,False);
		return;
	}

	else if (talked == 5)
	{
		talkto.ReceiveMessage("HOOKER: Could you get it back for me?");
		talked = 6;
		SetTimer(2.9,False);
		return;
	}

	else if (talked == 6)
	{
		talkto.ReceiveMessage(""$talkto.PlayerReplicationInfo.PlayerName$": What would a girl like you want a gun for?");
		talked = 7;
		SetTimer(3.0,False);
		return;
	}
	else if (talked == 7)
	{
		talkto.ReceiveMessage("HOOKER: Shhh!");
		talkto.Clubmission = 2;
		talkto.ClientMessage("Goal Received (Press F2 for details)");
		talkto.bInConv = False;
		talked = 0;
		return;
	}
	else if (talked == 9)
	{
		talkto.ReceiveMessage("HOOKER: It's one of my favourites");
		talkto.SkillPointsAdd(1500);
		talkto.ClientMessage("|p2Goal Completed! 1500 Skill Points awarded!");
		talkto.bInConv = False;
		talked = 0;
		return;
	}
}

defaultproperties
{
     count=0
     bfearAlarm=False
     bFearCarcass=False
     bFearDistress=False
     bFearShot=False
     bFearIndirectInjury=False
     Orders=Standing
     bInvincible=True
     bHateShot=False
     bHateInjury=False
     bReactPresence=False
     bEmitDistress=False
     CarcassType=Class'DeusEx.Hooker1Carcass'
     WalkingSpeed=0.320000
     BaseAssHeight=-18.000000
     bIsFemale=True
     GroundSpeed=120.000000
     BaseEyeHeight=38.000000
     Mesh=LodMesh'DeusExCharacters.GFM_Dress'
     MultiSkins(0)=Texture'ContenderStuff.Skins.HookerMMTex0'
     MultiSkins(1)=Texture'ContenderStuff.Skins.HookerMMTex1'
     MultiSkins(2)=Texture'ContenderStuff.Skins.HookerMMTex2'
     MultiSkins(3)=Texture'ContenderStuff.Skins.HookerMMTex3'
     MultiSkins(4)=Texture'ContenderStuff.Skins.HookerMMTex2'
     MultiSkins(5)=Texture'DeusExItems.Skins.PinkMaskTex'
     MultiSkins(6)=Texture'ContenderStuff.Skins.HookerMMTex0'
     MultiSkins(7)=Texture'ContenderStuff.Skins.HookerMMTex0'
     CollisionRadius=20.000000
     CollisionHeight=43.000000
     BindName="Hooker"
     FamiliarName="Hooker"
     UnfamiliarName="Hooker"
}
