//=============================================================================
// MIB.
//=============================================================================
class RPGGuard extends HumanMilitary;

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 _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);
		LookAtActor(Frobber, True, True, False);
	talkto = Player;

	if ((Player.Clubmission == 1)||(Player.Clubmission == 2))
	{
		Player.ReceiveMessage(""$Player.PlayerReplicationInfo.PlayerName$": What exactly are you guarding?");
		talked = 1;
		SetTimer(2.2,False);
		return;
	}

	else if (Player.Clubmission == 3)
	{
		Player.ReceiveMessage(""$Player.PlayerReplicationInfo.PlayerName$": Open up punk, "$Player.PlayerReplicationInfo.PlayerName$"'s here.");
		talked = 2;
		SetTimer(2.3,False);
		return;
	}
}

function Timer()
{
	local PlayersIn Pla;

	if (talked == 1)
	{
		talkto.ReceiveMessage("GUARD: Nothing, I'm just here to look cool.");
		talked = 0;
		return;
	}

	else if (talked == 2)
	{
		talkto.ReceiveMessage("GUARD: "$talkto.PlayerReplicationInfo.PlayerName$", eh? Step ahead in that case.");
		foreach AllActors(class'PlayersIn', Pla)
		{
			Pla.GoLagshotGo(talkto);
		}
		talked = 0;
		return;
	}
}

defaultproperties
{
     bfearAlarm=False
     bFearCarcass=False
     bFearDistress=False
     bFearShot=False
     bFearIndirectInjury=False
     Orders=Standing
     bInvincible=True
     bHateShot=False
     bHateInjury=False
     bReactPresence=False
     bEmitDistress=False
     MinHealth=0.000000
     CarcassType=Class'DeusEx.MIBCarcass'
     WalkingSpeed=0.213333
     CloseCombatMult=0.500000
     GroundSpeed=180.000000
     Health=350
     HealthHead=350
     HealthTorso=350
     HealthLegLeft=350
     HealthLegRight=350
     HealthArmLeft=350
     HealthArmRight=350
     Mesh=LodMesh'DeusExCharacters.GM_Suit'
     DrawScale=1.100000
     MultiSkins(0)=Texture'DeusExCharacters.Skins.MIBTex0'
     MultiSkins(1)=Texture'DeusExCharacters.Skins.PantsTex5'
     MultiSkins(2)=Texture'DeusExCharacters.Skins.MIBTex0'
     MultiSkins(3)=Texture'DeusExCharacters.Skins.MIBTex1'
     MultiSkins(4)=Texture'DeusExCharacters.Skins.MIBTex1'
     MultiSkins(5)=Texture'DeusExCharacters.Skins.FramesTex2'
     MultiSkins(6)=Texture'DeusExCharacters.Skins.LensesTex3'
     MultiSkins(7)=Texture'DeusExItems.Skins.PinkMaskTex'
     CollisionHeight=52.250000
     BindName="Guard"
     FamiliarName="Guard"
     UnfamiliarName="Guard"
}
