public override Model getRotatedModel() { if (desc == null) { return(null); } Model model = method450(); if (model == null) { return(null); } base.height = model.modelHeight; if (base.anInt1520 != -1 && base.anInt1521 != -1) { SpotAnim spotAnim = SpotAnim.cache[base.anInt1520]; Model model_1 = spotAnim.getModel(); model_1.isGfx = true; if (model_1 != null) { int j = spotAnim.aAnimation_407.anIntArray353[base.anInt1521]; int nextFrame = spotAnim.aAnimation_407.anIntArray353[base.nextGraphicsAnimationFrame]; int cycle1 = spotAnim.aAnimation_407.anIntArray355[base.anInt1521]; int cycle2 = base.anInt1522; Model model_2 = new Model(true, Class36.method532(j), false, model_1); model_2.isGfx = true; model_2.method475(0, -base.anInt1524, 0); model_2.method469(); model_2.method470(j, nextFrame, cycle1, cycle2); model_2.anIntArrayArray1658 = null; model_2.anIntArrayArray1657 = null; if (spotAnim.anInt410 != 128 || spotAnim.anInt411 != 128) { model_2.method478(spotAnim.anInt410, spotAnim.anInt410, spotAnim.anInt411); } model_2.method479(64 + spotAnim.anInt413, 850 + spotAnim.anInt414, -30, -50, -30, true); Model[] aModel = { model, model_2 }; model = new Model(aModel); model.isGfx = true; } } if (desc.aByte68 == 1) { model.aBoolean1659 = true; } return(model); }
public override Model getRotatedModel() { if (!visible) { return(null); } Model model = method452(); if (model == null) { return(null); } base.height = model.modelHeight; model.aBoolean1659 = true; model.Render317 = true; if (aBoolean1699) { return(model); } if (base.anInt1520 != -1 && base.anInt1521 != -1) { SpotAnim spotAnim = SpotAnim.cache[base.anInt1520]; Model model_2 = spotAnim.getModel(); if (model_2 != null) { Model model_3 = new Model(true, Class36.method532(base.anInt1521), false, model_2); model_3.method475(0, -base.anInt1524, 0); model_3.method469(); model_3.method470(spotAnim.aAnimation_407.anIntArray353[base.anInt1521]); model_3.anIntArrayArray1658 = null; model_3.anIntArrayArray1657 = null; if (spotAnim.anInt410 != 128 || spotAnim.anInt411 != 128) { model_3.method478(spotAnim.anInt410, spotAnim.anInt410, spotAnim.anInt411); } model_3.method479(64 + spotAnim.anInt413, 850 + spotAnim.anInt414, -30, -50, -30, true); Model[] aclass30_sub2_sub4_sub6_1s = { model, model_3 }; model = new Model(aclass30_sub2_sub4_sub6_1s); } } if (aModel_1714 != null) { if (UnityClient.loopCycle >= anInt1708) { aModel_1714 = null; } if (UnityClient.loopCycle >= anInt1707 && UnityClient.loopCycle < anInt1708) { Model model_1 = aModel_1714; model_1.method475(anInt1711 - (int)base.x, anInt1712 - anInt1709, anInt1713 - (int)base.y); if (base.turnDirection == 512) { model_1.method473(); model_1.method473(); model_1.method473(); } else if (base.turnDirection == 1024) { model_1.method473(); model_1.method473(); } else if (base.turnDirection == 1536) { model_1.method473(); } Model[] aclass30_sub2_sub4_sub6s = { model, model_1 }; model = new Model(aclass30_sub2_sub4_sub6s); if (base.turnDirection == 512) { model_1.method473(); } else if (base.turnDirection == 1024) { model_1.method473(); model_1.method473(); } else if (base.turnDirection == 1536) { model_1.method473(); model_1.method473(); model_1.method473(); } model_1.method475((int)base.x - anInt1711, anInt1709 - anInt1712, (int)base.y - anInt1713); } } model.aBoolean1659 = true; model.Render317 = true; return(model); }