:: Art_Vector_Leg_ [nobr]

/* Leg wideness switch courtesy of Nov-X */

/* BEWARE: _legSize is also used in Art_Vector_Feet_ */
/* BEWARE: _buttSize set by Art_Vector_Butt_ */

<<if _artSlave.amp == 0>>
	<<set _legSize = "Normal">>
	<<if _artSlave.hips == -2>>
		<<if _artSlave.weight <= 0>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > 0 && _artSlave.weight < 161>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 161>>
			<<set _legSize = "Wide">>		
		<</if>>
	<<elseif _artSlave.hips == -1>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > -11 && _artSlave.weight < 96>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 96>>
			<<set _legSize = "Wide">>
		<</if>>
	<<elseif _artSlave.hips == 0>>
		<<if _artSlave.weight <= -96>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > -96 && _artSlave.weight < 11>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 11 && _artSlave.weight < 131>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight >= 131>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 1>>
		<<if _artSlave.weight <= -31>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight > -31 && _artSlave.weight < 31>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight >= 31>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 2>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight > -11>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 3>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight > -11>>
			<<set _legSize = "Thick">>
		<</if>>
	<</if>>
	<<set _art = "Art_Vector_Leg_"+_legSize >>
	<<include _art >>
<</if>>

<<if _artSlave.amp == -1 && _artSlave.PLimb == 1 || _artSlave.PLimb == 2>>
	<<set _legSize = "Normal">>
	<<if _artSlave.hips == -2>>
		<<if _artSlave.weight <= 0>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > 0 && _artSlave.weight < 161>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 161>>
			<<set _legSize = "Wide">>		
		<</if>>
	<<elseif _artSlave.hips == -1>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > -11 && _artSlave.weight < 96>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 96>>
			<<set _legSize = "Wide">>
		<</if>>
	<<elseif _artSlave.hips == 0>>
		<<if _artSlave.weight <= -96>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > -96 && _artSlave.weight < 11>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 11 && _artSlave.weight < 131>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight >= 131>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 1>>
		<<if _artSlave.weight <= -31>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight > -31 && _artSlave.weight < 31>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight >= 31>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 2>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight > -11>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 3>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight > -11>>
			<<set _legSize = "Thick">>
		<</if>>
	<</if>>
	<<set _art = "Art_Vector_Leg_ProstheticBasic_"+_legSize >>
	<<include _art>>
<</if>>

<<if _artSlave.amp == -2 && _artSlave.PLimb == 1 || _artSlave.PLimb == 2>>
	<<set _legSize = "Normal">>
	<<if _artSlave.hips == -2>>
		<<if _artSlave.weight <= 0>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > 0 && _artSlave.weight < 161>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 161>>
			<<set _legSize = "Wide">>		
		<</if>>
	<<elseif _artSlave.hips == -1>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > -11 && _artSlave.weight < 96>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 96>>
			<<set _legSize = "Wide">>
		<</if>>
	<<elseif _artSlave.hips == 0>>
		<<if _artSlave.weight <= -96>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > -96 && _artSlave.weight < 11>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 11 && _artSlave.weight < 131>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight >= 131>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 1>>
		<<if _artSlave.weight <= -31>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight > -31 && _artSlave.weight < 31>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight >= 31>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 2>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight > -11>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 3>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight > -11>>
			<<set _legSize = "Thick">>
		<</if>>
	<</if>>
	<<set _art = "Art_Vector_Leg_ProstheticSexy_"+_legSize >>
	<<include _art>>
<</if>>

<<if _artSlave.amp == -3 && _artSlave.PLimb == 1 || _artSlave.PLimb == 2>>
	<<set _legSize = "Normal">>
	<<if _artSlave.hips == -2>>
		<<if _artSlave.weight <= 0>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > 0 && _artSlave.weight < 161>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 161>>
			<<set _legSize = "Wide">>		
		<</if>>
	<<elseif _artSlave.hips == -1>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > -11 && _artSlave.weight < 96>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 96>>
			<<set _legSize = "Wide">>
		<</if>>
	<<elseif _artSlave.hips == 0>>
		<<if _artSlave.weight <= -96>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > -96 && _artSlave.weight < 11>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 11 && _artSlave.weight < 131>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight >= 131>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 1>>
		<<if _artSlave.weight <= -31>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight > -31 && _artSlave.weight < 31>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight >= 31>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 2>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight > -11>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 3>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight > -11>>
			<<set _legSize = "Thick">>
		<</if>>
	<</if>>
	<<set _art = "Art_Vector_Leg_ProstheticBeauty_"+_legSize >>
	<<include _art>>
<</if>>

<<if _artSlave.amp == -4 && _artSlave.PLimb == 1 || _artSlave.PLimb == 2>>
	<<set _legSize = "Normal">>
	<<if _artSlave.hips == -2>>
		<<if _artSlave.weight <= 0>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > 0 && _artSlave.weight < 161>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 161>>
			<<set _legSize = "Wide">>		
		<</if>>
	<<elseif _artSlave.hips == -1>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > -11 && _artSlave.weight < 96>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 96>>
			<<set _legSize = "Wide">>
		<</if>>
	<<elseif _artSlave.hips == 0>>
		<<if _artSlave.weight <= -96>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > -96 && _artSlave.weight < 11>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 11 && _artSlave.weight < 131>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight >= 131>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 1>>
		<<if _artSlave.weight <= -31>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight > -31 && _artSlave.weight < 31>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight >= 31>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 2>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight > -11>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 3>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight > -11>>
			<<set _legSize = "Thick">>
		<</if>>
	<</if>>
	<<set _art = "Art_Vector_Leg_ProstheticCombat_"+_legSize >>
	<<include _art>>
<</if>>

<<if _artSlave.amp == -5 && _artSlave.PLimb == 1 || _artSlave.PLimb == 2>>
	<<set _legSize = "Normal">>
	<<if _artSlave.hips == -2>>
		<<if _artSlave.weight <= 0>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > 0 && _artSlave.weight < 161>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 161>>
			<<set _legSize = "Wide">>		
		<</if>>
	<<elseif _artSlave.hips == -1>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > -11 && _artSlave.weight < 96>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 96>>
			<<set _legSize = "Wide">>
		<</if>>
	<<elseif _artSlave.hips == 0>>
		<<if _artSlave.weight <= -96>>
			<<set _legSize = "Narrow">>
		<<elseif _artSlave.weight > -96 && _artSlave.weight < 11>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight >= 11 && _artSlave.weight < 131>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight >= 131>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 1>>
		<<if _artSlave.weight <= -31>>
			<<set _legSize = "Normal">>
		<<elseif _artSlave.weight > -31 && _artSlave.weight < 31>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight >= 31>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 2>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight > -11>>
			<<set _legSize = "Thick">>
		<</if>>
	<<elseif _artSlave.hips == 3>>
		<<if _artSlave.weight <= -11>>
			<<set _legSize = "Wide">>
		<<elseif _artSlave.weight > -11>>
			<<set _legSize = "Thick">>
		<</if>>
	<</if>>
	<<set _art = "Art_Vector_Leg_ProstheticSwiss_"+_legSize >>
	<<include _art>>
<</if>>

<<if _artSlave.amp == 1 && _artSlave.PLimb == 0>>
	<<include Art_Vector_Stump>>
<</if>>