boolean wearingRightTankOrange = false;
boolean wearingRightTankRed = false;
boolean wearingFrequencyModule = false;
final EntityPlayer player = (EntityPlayer) var1;
PlayerGearData gearData = ClientProxyCore.playerItemData.get(player.getCommandSenderName());
if (gearData != null)
{
usingParachute = gearData.getParachute() != null;
wearingMask = gearData.getMask() > -1;
wearingGear = gearData.getGear() > -1;
wearingLeftTankGreen = gearData.getLeftTank() == 0;
wearingLeftTankOrange = gearData.getLeftTank() == 1;
wearingLeftTankRed = gearData.getLeftTank() == 2;
wearingRightTankGreen = gearData.getRightTank() == 0;
wearingRightTankOrange = gearData.getRightTank() == 1;
wearingRightTankRed = gearData.getRightTank() == 2;
wearingFrequencyModule = gearData.getFrequencyModule() > -1;
}
this.setRotationAngles(var2, var3, var4, var5, var6, var7, var1);
if (var1 instanceof AbstractClientPlayer && this.equals(modelBipedMain))
{
if (gearData != null)
{
if (wearingMask)
{
FMLClientHandler.instance().getClient().renderEngine.bindTexture(ModelPlayerGC.oxygenMaskTexture);
GL11.glPushMatrix();
GL11.glScalef(1.05F, 1.05F, 1.05F);
this.oxygenMask.render(var7);
GL11.glScalef(1F, 1F, 1F);
GL11.glPopMatrix();
}
//
if (wearingFrequencyModule)
{
FMLClientHandler.instance().getClient().renderEngine.bindTexture(ModelPlayerGC.frequencyModuleTexture);
GL11.glPushMatrix();
GL11.glRotatef(180, 1, 0, 0);
GL11.glRotatef((float) (this.bipedHeadwear.rotateAngleY * (-180.0F / Math.PI)), 0, 1, 0);
GL11.glRotatef((float) (this.bipedHeadwear.rotateAngleX * (180.0F / Math.PI)), 1, 0, 0);
GL11.glScalef(0.3F, 0.3F, 0.3F);
GL11.glTranslatef(-1.1F, 1.2F, 0);
this.frequencyModule.renderPart("Main");
GL11.glTranslatef(0, 1.2F, 0);
GL11.glRotatef((float) (Math.sin(var1.ticksExisted * 0.05) * 50.0F), 1, 0, 0);
GL11.glRotatef((float) (Math.cos(var1.ticksExisted * 0.1) * 50.0F), 0, 1, 0);
GL11.glTranslatef(0, -1.2F, 0);
this.frequencyModule.renderPart("Radar");
GL11.glPopMatrix();
}
//
FMLClientHandler.instance().getClient().renderEngine.bindTexture(ModelPlayerGC.playerTexture);
if (wearingGear)
{
for (int i = 0; i < 7; i++)
{
for (int k = 0; k < 2; k++)
{
this.tubes[k][i].render(var7);
}
}
}
//
if (wearingLeftTankRed)
{
this.redOxygenTanks[0].render(var7);
}
//
if (wearingLeftTankOrange)
{
this.orangeOxygenTanks[0].render(var7);
}
//
if (wearingLeftTankGreen)
{
this.greenOxygenTanks[0].render(var7);
}
//
if (wearingRightTankRed)
{
this.redOxygenTanks[1].render(var7);
}
//
if (wearingRightTankOrange)
{
this.orangeOxygenTanks[1].render(var7);
}
//
if (wearingRightTankGreen)
{
this.greenOxygenTanks[1].render(var7);
}
//
if (usingParachute)
{
FMLClientHandler.instance().getClient().renderEngine.bindTexture(gearData.getParachute());
this.parachute[0].render(var7);
this.parachute[1].render(var7);
this.parachute[2].render(var7);