//=============================================================================
// BotzWeaponProfile.
//
// Flak Cannon test profile
//
// For testing purposes, do not modify or redistribute
// Have suggestions? Contact me.
// caco_fff@hotmail.com - Higor at UT99.org
//=============================================================================
class Botz_WePro_ShockTEST extends BotzWeaponProfile;

//Advantage values go from 0 to 2

//var() bool bSpecialScript; //Call this profile's SPECIAL SCRIPT to determine weapon usage.

//Use special fire modes
static function bool CustomizeFire( Botz B)
{
	local bool bCanSee;

/*	bCanSee = B.CanSee(B.Enemy);

	if ( !bCanSee && !B.FastTrace( B.Location + vector(B.Viewrotation) * 150) )
	{
		B.bAltFire = 0;
		B.bFire = 0;
		return true;
	}

	if ( !bCanSee && (B.CurrentTactic == "LURE") )
	{
		B.bFire = 0;
		B.bAltFire = 0;
		return true;
	}
*/	return false;
}

//Decrease rating
static function float SpecialRating( Botz B)
{
	return 1.0 - B.Aggresiveness * 0.1;
}

//Custom version!!
function bool SetupCombo( Botz B)
{
	local ShockProj S;

	if ( FRand() * 15 < (B.Skill + B.TacticalAbility - B.Punteria) )
	{
		ForEach B.Enemy.VisibleCollidingActors (class'ShockProj', S, 200 + B.Skill + B.TacticalAbility)
		{
			if ( S.Instigator != B.Enemy )
				break;
		}
	}

	if ( S == none )	
		return Super.SetupCombo( B);


	S.Target = B.Enemy;
	B.AimPoint.PointTarget = B;
	B.AimPoint.AimOther = S;
	B.bFire = 0;
	B.bAltFire = 0;
	Log("COMBO TAKEN: "$S);
	return true;
}


defaultproperties
{
	WeaponClass=Class'Botpack.ShockRifle'
	bTracker=False
	bInstantFire=True
	PointBlankAdv=1.0
	CloseRangeAdv=1.0
	MidRangeAdv=1
	DistantAdv=1
	FarAdv=1
	HighAdv=0.8
	SameHeightAdv=1.1
	LowAdv=0.4
	AmpedAdv=1.2
	WaterAdv=0.8
	SpamFactor=0.2
	MinRefire=0.1
	AltChance(0)=0.2
	AltChance(1)=0.8
	AltChance(2)=0.4
	AltChance(3)=0.1
	Strategies(0)=COMBO
	StraA(0)=100
	Conditionals(0)=TODIST
	CondA(0)=420
	CondB(0)=1000
	CondC(0)=0.2
}