//=Pwnage.===
//
// Chance of winning = 3 / prize money.
//
class OneArmBandit extends DeusExDecoration;

var _MMRPGPlayer Player;

var int iCounter;

var bool bCherry;
var int iBarCombo;
var int iCherryCombo;
var int iLoseCombo;

var bool bWin1;
var bool bWin2;
var bool bWin3;
var bool bWin4;
var bool bWin5;
var bool bWin6;
var bool bWin7;
var bool bWin8;
var bool bWin9;

function PostPostBeginPlay()
{
	Super.PostPostBeginPlay();
	bMovable = False;
}


Function Frob(Actor Frobber,Inventory Frobwith)
{
	local float rnd;
	local float rnd2;
	local float pax;
	Local MMRPGCreditCard Cred;

	if(iCounter > 0)
	{
		DeusExPlayer(Frobber).ClientMessage("Someone else is using it!");
		return;
	}


	if(iCounter == 0)
	{

	Player = _MMRPGPlayer(Frobber);

	ForEach AllActors(Class'MMRPGCreditCard', Cred)
	{
		if(Cred.Owner == Player)
		{
			if(Cred.CreditAmount < 15)
			{
				Player.ReceiveMessage("You need 15 credits to use this slot machine");
				return;
			}

			if(Cred.CreditAmount >= 15)
			{
				Cred.CreditAmount -= 15;
				Player.ReceiveMessage("15 Credits Withdrawn");
			}
		}
	}

	MultiSkins[5]=Texture'NailageEffects.SlotBlur1';
	MultiSkins[3]=Texture'NailageEffects.SlotBlur2';
	MultiSkins[4]=Texture'NailageEffects.SlotBlur3';

	PlaySound(Sound'ContenderStuff.SlotReelSpin');

	rnd = FRand();
	pax = FRand();

	bWin1 = False;
	bWin2 = False;
	bWin3 = False;
	bWin4 = False;
	bWin5 = False;
	bWin6 = False;
	bWin7 = False;
	bWin8 = False;
	bWin9 = False;

	if(pax <= 0.3)
	{
		bWin9 = True;

		rnd2 = FRand();
		if(rnd2 >= 0.1)
		{
			iLoseCombo = 1;
		}
		else if(rnd2 >= 0.2)
		{
			iLoseCombo = 2;
		}
		else if(rnd2 >= 0.3)
		{
			iLoseCombo = 3;
		}
		else if(rnd2 >= 0.4)
		{
			iLoseCombo = 4;
		}
		else if(rnd2 >= 0.5)
		{
			iLoseCombo = 5;
		}
		else if(rnd2 >= 0.6)
		{
			iLoseCombo = 6;
		}
		else if(rnd2 >= 0.7)
		{
			iLoseCombo = 7;
		}
		else if(rnd2 >= 0.8)
		{
			iLoseCombo = 8;
		}
		else if(rnd2 >= 0.9)
		{
			iLoseCombo = 9;
		}
		else
		{
			iLoseCombo = 10;
		}

		iCounter = 1;
		return;
	}


	if (rnd <= 0.004)
	{
		bWin1 = True;
		iCounter = 1;
		return;
	}

	if (rnd <= 0.008)
	{
		bWin2 = True;
		iCounter = 1;
		return;
	}

	if (rnd <= 0.016)
	{
		bWin3 = True;
		iCounter = 1;
		return;
	}

	if (rnd <= 0.032)
	{
		bWin4 = True;
		iCounter = 1;
		return;
	}
	if (rnd <= 0.064)
	{
		bWin5 = True;
		iCounter = 1;
		return;
	}
	if (rnd <= 0.128)
	{
		bWin6 = True;

		rnd = FRand();
		if(rnd >= 0.5)
		{
			bCherry = True;
		}

		iCounter = 1;
		return;
	}
	if (rnd <= 0.256)
	{
		bWin7 = True;

		rnd = FRand();
		if(rnd >= 0.3)
		{
			iBarCombo = 1;
		}
		else if(rnd >= 0.6)
		{
			iBarCombo = 2;
		}
		else
		{
			iBarCombo = 3;
		}

		iCounter = 1;
		return;
	}
	if (rnd <= 0.512)
	{
		bWin8 = True;

		rnd = FRand();
		if(rnd >= 0.2)
		{
			iCherryCombo = 5;
		}
		else if(rnd >= 0.4)
		{
			iCherryCombo = 1;
		}
		else if(rnd >= 0.6)
		{
			iCherryCombo = 2;
		}
		else if(rnd >= 0.8)
		{
			iCherryCombo = 3;
		}
		else
		{
			iCherryCombo = 4;
		}

		iCounter = 1;
		return;
	}
	else
	{
		bWin9 = True;

		rnd2 = FRand();
		if(rnd2 >= 0.1)
		{
			iLoseCombo = 1;
		}
		else if(rnd2 >= 0.2)
		{
			iLoseCombo = 2;
		}
		else if(rnd2 >= 0.3)
		{
			iLoseCombo = 3;
		}
		else if(rnd2 >= 0.4)
		{
			iLoseCombo = 4;
		}
		else if(rnd2 >= 0.5)
		{
			iLoseCombo = 5;
		}
		else if(rnd2 >= 0.6)
		{
			iLoseCombo = 6;
		}
		else if(rnd2 >= 0.7)
		{
			iLoseCombo = 7;
		}
		else if(rnd2 >= 0.8)
		{
			iLoseCombo = 8;
		}
		else if(rnd2 >= 0.9)
		{
			iLoseCombo = 9;
		}
		else
		{
			iLoseCombo = 10;
		}

		iCounter = 1;
		return;
	}
	}
}

Function Tick(Float Deltatime)
{
	Local MMRPGCreditCard Cred;

if(iCounter > 0)
{
	if(iCounter < 45)
	{	
		if(MultiSkins[5] == Texture'NailageEffects.SlotBlur1')
			MultiSkins[5] = Texture'NailageEffects.SlotBlur2';
		else if(MultiSkins[5] == Texture'NailageEffects.SlotBlur2')
			MultiSkins[5] = Texture'NailageEffects.SlotBlur3';
		else if(MultiSkins[5] == Texture'NailageEffects.SlotBlur3')
			MultiSkins[5] = Texture'NailageEffects.SlotBlur1';
	}

	if(iCounter < 49)
	{
		if(MultiSkins[3] == Texture'NailageEffects.SlotBlur1')
			MultiSkins[3] = Texture'NailageEffects.SlotBlur2';
		else if(MultiSkins[3] == Texture'NailageEffects.SlotBlur2')
			MultiSkins[3] = Texture'NailageEffects.SlotBlur3';
		else if(MultiSkins[3] == Texture'NailageEffects.SlotBlur3')
			MultiSkins[3] = Texture'NailageEffects.SlotBlur1';
	}

	if(iCounter < 53)
	{
		if(MultiSkins[4] == Texture'NailageEffects.SlotBlur1')
			MultiSkins[4] = Texture'NailageEffects.SlotBlur2';
		else if(MultiSkins[4] == Texture'NailageEffects.SlotBlur2')
			MultiSkins[4] = Texture'NailageEffects.SlotBlur3';
		else if(MultiSkins[4] == Texture'NailageEffects.SlotBlur3')
			MultiSkins[4] = Texture'NailageEffects.SlotBlur1';
	}





//===========D-I-F-F-E-R-E-N-T---C-O-M-B-I-N-A-T-I-O-N-S-===========

	if(bWin1)
	{
		iCounter += 1;

		if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin1') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin1';
			PlaySound(Sound'ContenderStuff.SlotReelStop');
		}

		if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin1') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin1';
			MultiSkins[3]=Texture'NailageEffects.SlotWin1';
			PlaySound(Sound'ContenderStuff.SlotReelStop');
		}

		if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin1') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin1';
			MultiSkins[3]=Texture'NailageEffects.SlotWin1';
			MultiSkins[4]=Texture'NailageEffects.SlotWin1';
			ForEach AllActors(Class'MMRPGCreditCard', Cred)
			{
				if(Cred.Owner == Player)
				{
					Cred.CreditAmount += 2000;
					Player.ReceiveMessage("JACKPOT! 2000 CREDITS!");
					PlaySound(Sound'ContenderStuff.SlotWinBig');
				}
			}
			iCounter = 0;
		}
	}

	if(bWin2)
	{
		iCounter += 1;

		if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin2') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin2';
			PlaySound(Sound'ContenderStuff.SlotReelStop');
		}

		if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin2') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin2';
			MultiSkins[3]=Texture'NailageEffects.SlotWin2';
			PlaySound(Sound'ContenderStuff.SlotReelStop');
		}

		if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin2') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin2';
			MultiSkins[3]=Texture'NailageEffects.SlotWin2';
			MultiSkins[4]=Texture'NailageEffects.SlotWin2';
			ForEach AllActors(Class'MMRPGCreditCard', Cred)
			{
				if(Cred.Owner == Player)
				{
					Cred.CreditAmount += 300;
					Player.ReceiveMessage("300 CREDITS!");
					PlaySound(Sound'ContenderStuff.SlotWinMed');
				}
			}
			iCounter = 0;
		}
	}


	if(bWin3)
	{
		iCounter += 1;

		if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin3') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin3';
			PlaySound(Sound'ContenderStuff.SlotReelStop');
		}

		if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin3') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin3';
			MultiSkins[3]=Texture'NailageEffects.SlotWin3';
			PlaySound(Sound'ContenderStuff.SlotReelStop');
		}

		if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin3') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin3';
			MultiSkins[3]=Texture'NailageEffects.SlotWin3';
			MultiSkins[4]=Texture'NailageEffects.SlotWin3';
			ForEach AllActors(Class'MMRPGCreditCard', Cred)
			{
				if(Cred.Owner == Player)
				{
					Cred.CreditAmount += 225;
					Player.ReceiveMessage("225 CREDITS!");
					PlaySound(Sound'ContenderStuff.SlotWinMed');
				}
			}
			iCounter = 0;
		}
	}

	if(bWin4)
	{
		iCounter += 1;

		if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin4') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin4';
			PlaySound(Sound'ContenderStuff.SlotReelStop');
		}

		if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin4') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin4';
			MultiSkins[3]=Texture'NailageEffects.SlotWin4';
			PlaySound(Sound'ContenderStuff.SlotReelStop');
		}

		if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin4') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin4';
			MultiSkins[3]=Texture'NailageEffects.SlotWin4';
			MultiSkins[4]=Texture'NailageEffects.SlotWin4';
			ForEach AllActors(Class'MMRPGCreditCard', Cred)
			{
				if(Cred.Owner == Player)
				{
					Cred.CreditAmount += 90;
					Player.ReceiveMessage("90 CREDITS!");
					PlaySound(Sound'ContenderStuff.SlotWinMed');
				}
			}
			iCounter = 0;
		}
	}

	if(bWin5)
	{
		iCounter += 1;

		if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin5') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin5';
			PlaySound(Sound'ContenderStuff.SlotReelStop');
		}

		if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin5') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin5';
			MultiSkins[3]=Texture'NailageEffects.SlotWin5';
			PlaySound(Sound'ContenderStuff.SlotReelStop');
		}

		if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin5') )
		{
			MultiSkins[5]=Texture'NailageEffects.SlotWin5';
			MultiSkins[3]=Texture'NailageEffects.SlotWin5';
			MultiSkins[4]=Texture'NailageEffects.SlotWin5';
			ForEach AllActors(Class'MMRPGCreditCard', Cred)
			{
				if(Cred.Owner == Player)
				{
					Cred.CreditAmount += 60;
					Player.ReceiveMessage("60 CREDITS!");
					PlaySound(Sound'ContenderStuff.SlotWinMed');
				}
			}
			iCounter = 0;
		}
	}

	if(bWin6)
	{
		iCounter += 1;

		if(bCherry)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin7') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin7';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin7') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin7';
				MultiSkins[3]=Texture'NailageEffects.SlotWin7';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin7') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin7';
				MultiSkins[3]=Texture'NailageEffects.SlotWin7';
				MultiSkins[4]=Texture'NailageEffects.SlotWin7';
				ForEach AllActors(Class'MMRPGCreditCard', Cred)
				{
					if(Cred.Owner == Player)
					{
						Cred.CreditAmount += 30;
						Player.ReceiveMessage("30 CREDITS!");
						PlaySound(Sound'ContenderStuff.SlotWinSmall');
					}
				}
				iCounter = 0;
			}
		}
		if(!bCherry)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin6') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin6') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				MultiSkins[3]=Texture'NailageEffects.SlotWin6';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin6') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				MultiSkins[3]=Texture'NailageEffects.SlotWin6';
				MultiSkins[4]=Texture'NailageEffects.SlotWin6';
				ForEach AllActors(Class'MMRPGCreditCard', Cred)
				{
					if(Cred.Owner == Player)
					{
						Cred.CreditAmount += 30;
						Player.ReceiveMessage("30 CREDITS!");
						PlaySound(Sound'ContenderStuff.SlotWinSmall');
					}
				}
				iCounter = 0;
			}
		}
	}



	if(bWin7)
	{
		iCounter += 1;

		if(iBarCombo == 1)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin6') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				MultiSkins[3]=Texture'NailageEffects.SlotWin6';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				MultiSkins[3]=Texture'NailageEffects.SlotWin6';
				MultiSkins[4]=Texture'NailageEffects.SlotWin4';
				ForEach AllActors(Class'MMRPGCreditCard', Cred)
				{
					if(Cred.Owner == Player)
					{
						Cred.CreditAmount += 15;
						Player.ReceiveMessage("15 CREDITS!");
						PlaySound(Sound'ContenderStuff.SlotWinSmall');
					}
				}
				iCounter = 0;
			}
		}

		if(iBarCombo == 2)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin6') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin6') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				MultiSkins[3]=Texture'NailageEffects.SlotWin6';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				MultiSkins[3]=Texture'NailageEffects.SlotWin6';
				MultiSkins[4]=Texture'NailageEffects.SlotWin5';
				ForEach AllActors(Class'MMRPGCreditCard', Cred)
				{
					if(Cred.Owner == Player)
					{
						Cred.CreditAmount += 15;
						Player.ReceiveMessage("15 CREDITS!");
						PlaySound(Sound'ContenderStuff.SlotWinSmall');
					}
				}
				iCounter = 0;
			}
		}

		if(iBarCombo == 3)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				MultiSkins[3]=Texture'NailageEffects.SlotWin5';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				MultiSkins[3]=Texture'NailageEffects.SlotWin5';
				MultiSkins[4]=Texture'NailageEffects.SlotWin4';
				ForEach AllActors(Class'MMRPGCreditCard', Cred)
				{
					if(Cred.Owner == Player)
					{
						Cred.CreditAmount += 15;
						Player.ReceiveMessage("15 CREDITS!");
						PlaySound(Sound'ContenderStuff.SlotWinSmall');
					}
				}
				iCounter = 0;
			}
		}

	}

	if(bWin8)
	{
		iCounter += 1;

		if(iCherryCombo == 1)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin6') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin3') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				MultiSkins[3]=Texture'NailageEffects.SlotWin3';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin7') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				MultiSkins[3]=Texture'NailageEffects.SlotWin3';
				MultiSkins[4]=Texture'NailageEffects.SlotWin7';
				ForEach AllActors(Class'MMRPGCreditCard', Cred)
				{
					if(Cred.Owner == Player)
					{
						Cred.CreditAmount += 6;
						Player.ReceiveMessage("6 CREDITS!");
						PlaySound(Sound'ContenderStuff.SlotWinSmall');
					}
				}
				iCounter = 0;
			}
		}

		if(iCherryCombo == 2)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin7') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin7';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin6') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin7';
				MultiSkins[3]=Texture'NailageEffects.SlotWin6';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin3') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin7';
				MultiSkins[3]=Texture'NailageEffects.SlotWin6';
				MultiSkins[4]=Texture'NailageEffects.SlotWin3';
				ForEach AllActors(Class'MMRPGCreditCard', Cred)
				{
					if(Cred.Owner == Player)
					{
						Cred.CreditAmount += 6;
						Player.ReceiveMessage("6 CREDITS!");
						PlaySound(Sound'ContenderStuff.SlotWinSmall');
					}
				}
				iCounter = 0;
			}
		}

		if(iCherryCombo == 3)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				MultiSkins[3]=Texture'NailageEffects.SlotWin5';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				MultiSkins[3]=Texture'NailageEffects.SlotWin5';
				MultiSkins[4]=Texture'NailageEffects.SlotWin4';
				ForEach AllActors(Class'MMRPGCreditCard', Cred)
				{
					if(Cred.Owner == Player)
					{
						Cred.CreditAmount += 6;
						Player.ReceiveMessage("6 CREDITS!");
						PlaySound(Sound'ContenderStuff.SlotWinSmall');
					}
				}
				iCounter = 0;
			}
		}

		if(iCherryCombo == 4)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin6') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				MultiSkins[3]=Texture'NailageEffects.SlotWin5';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin7') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				MultiSkins[3]=Texture'NailageEffects.SlotWin5';
				MultiSkins[4]=Texture'NailageEffects.SlotWin7';
				ForEach AllActors(Class'MMRPGCreditCard', Cred)
				{
					if(Cred.Owner == Player)
					{
						Cred.CreditAmount += 6;
						Player.ReceiveMessage("6 CREDITS!");
						PlaySound(Sound'ContenderStuff.SlotWinSmall');
					}
				}
				iCounter = 0;
			}
		}

		if(iCherryCombo == 5)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin7') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				MultiSkins[3]=Texture'NailageEffects.SlotWin7';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin2') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				MultiSkins[3]=Texture'NailageEffects.SlotWin7';
				MultiSkins[4]=Texture'NailageEffects.SlotWin2';
				ForEach AllActors(Class'MMRPGCreditCard', Cred)
				{
					if(Cred.Owner == Player)
					{
						Cred.CreditAmount += 6;
						Player.ReceiveMessage("6 CREDITS!");
						PlaySound(Sound'ContenderStuff.SlotWinSmall');
					}
				}
				iCounter = 0;
			}
		}

	}








	if(bWin9)
	{
		iCounter += 1;

		if(iLoseCombo == 1)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				MultiSkins[3]=Texture'NailageEffects.SlotWin5';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin3') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				MultiSkins[3]=Texture'NailageEffects.SlotWin5';
				MultiSkins[4]=Texture'NailageEffects.SlotWin3';
				PlaySound(Sound'ContenderStuff.SlotReelStop');

				iCounter = 0;
			}
		}

		if(iLoseCombo == 2)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin6') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				MultiSkins[3]=Texture'NailageEffects.SlotWin6';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin3') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				MultiSkins[3]=Texture'NailageEffects.SlotWin6';
				MultiSkins[4]=Texture'NailageEffects.SlotWin3';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
				iCounter = 0;
			}
		}

		if(iLoseCombo == 3)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin3') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				MultiSkins[3]=Texture'NailageEffects.SlotWin3';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				MultiSkins[3]=Texture'NailageEffects.SlotWin3';
				MultiSkins[4]=Texture'NailageEffects.SlotWin4';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
				iCounter = 0;
			}
		}

		if(iLoseCombo == 4)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin3') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				MultiSkins[3]=Texture'NailageEffects.SlotWin3';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				MultiSkins[3]=Texture'NailageEffects.SlotWin3';
				MultiSkins[4]=Texture'NailageEffects.SlotWin4';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
				iCounter = 0;
			}
		}

		if(iLoseCombo == 5)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				MultiSkins[3]=Texture'NailageEffects.SlotWin4';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin1') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin5';
				MultiSkins[3]=Texture'NailageEffects.SlotWin4';
				MultiSkins[4]=Texture'NailageEffects.SlotWin1';
				PlaySound(Sound'ContenderStuff.SlotReelStop');

				iCounter = 0;
			}
		}
		if(iLoseCombo == 6)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin2') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin2';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin6') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin2';
				MultiSkins[3]=Texture'NailageEffects.SlotWin6';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin2';
				MultiSkins[3]=Texture'NailageEffects.SlotWin6';
				MultiSkins[4]=Texture'NailageEffects.SlotWin4';
				PlaySound(Sound'ContenderStuff.SlotReelStop');

				iCounter = 0;
			}
		}
		if(iLoseCombo == 7)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin3') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin3';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin3';
				MultiSkins[3]=Texture'NailageEffects.SlotWin4';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin3';
				MultiSkins[3]=Texture'NailageEffects.SlotWin4';
				MultiSkins[4]=Texture'NailageEffects.SlotWin5';
				PlaySound(Sound'ContenderStuff.SlotReelStop');

				iCounter = 0;
			}
		}
		if(iLoseCombo == 8)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin2') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin2';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin2';
				MultiSkins[3]=Texture'NailageEffects.SlotWin5';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin3') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin2';
				MultiSkins[3]=Texture'NailageEffects.SlotWin5';
				MultiSkins[4]=Texture'NailageEffects.SlotWin3';
				PlaySound(Sound'ContenderStuff.SlotReelStop');

				iCounter = 0;
			}
		}
		if(iLoseCombo == 9)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin6') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin3') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				MultiSkins[3]=Texture'NailageEffects.SlotWin3';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin2') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin6';
				MultiSkins[3]=Texture'NailageEffects.SlotWin3';
				MultiSkins[4]=Texture'NailageEffects.SlotWin2';
				PlaySound(Sound'ContenderStuff.SlotReelStop');

				iCounter = 0;
			}
		}
		if(iLoseCombo == 10)
		{
			if( (iCounter > 45) && (MultiSkins[5] != Texture'NailageEffects.SlotWin4') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}

			if( (iCounter > 49) && (MultiSkins[3] != Texture'NailageEffects.SlotWin3') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				MultiSkins[3]=Texture'NailageEffects.SlotWin3';
				PlaySound(Sound'ContenderStuff.SlotReelStop');
			}
	
			if( (iCounter > 53) && (MultiSkins[4] != Texture'NailageEffects.SlotWin5') )
			{
				MultiSkins[5]=Texture'NailageEffects.SlotWin4';
				MultiSkins[3]=Texture'NailageEffects.SlotWin3';
				MultiSkins[4]=Texture'NailageEffects.SlotWin5';
				PlaySound(Sound'ContenderStuff.SlotReelStop');

				iCounter = 0;
			}
		}

	}


}		
}


defaultproperties
{
  bPushable=False
  ItemName="Slot Machine"
     bInvincible=True
  Mesh=Mesh'ContenderStuff.OneArmBandit'
  CollisionRadius=32.00000
  CollisionHeight=57.2.00000
  MultiSkins(0)=Texture'NailageEffects.slotpanel3'
  MultiSkins(1)=Texture'NailageEffects.SlotPanel2'
  MultiSkins(2)=Texture'NailageEffects.SlotPanel1'
  MultiSkins(3)=Texture'NailageEffects.SlotWin2'
  MultiSkins(4)=Texture'NailageEffects.SlotWin3'
  MultiSkins(5)=Texture'NailageEffects.SlotWin1'
  MultiSkins(6)=Texture'NailageEffects.SlotPanel5'
  MultiSkins(7)=Texture'NailageEffects.slotpanel4'
}
