//=====================================================================
// NemesisWINGSv2.
//      ""(§)FrÅgÊd(§)""
//               **Monarch**
//
//              555 ---===CrAzYBoNeS===--- 555
//			Boppolis_The_Dog
//
//
// Thank you Al McElrath for SLV2.
//=====================================================================
/** Clip object.
*/
class SLClip extends SLInfo;


var() int max;
var int rounds;
var SLAmmo ammo;


replication {
	reliable if (role == ROLE_Authority)
		rounds, max;
}


simulated function bool empty() {
	return (rounds == 0);
}


simulated function bool full() {
	return (rounds == max);
}


simulated function int getRounds() {
	return rounds;
}


simulated function int getMaxRounds() {
	return max;
}


function bool useRound() {
	if (rounds > 0) {
		rounds--;
		ammo.ammoAmount--;
		return true;
	} else {
		return false;
	}
}

defaultproperties
{
     Max=30
}
