public static bool EnableFoulCheck(Player p, out bool result, SkillSlotEnum slot) { if (!isBoxing) { result = false; } p.animator.ReqSlotAnm(slot, true, p.TargetPlIdx, true); result = true; return(result); }
public static void PreMatchTaunts() { if (!tauntCheck) { MatchMain mm = MatchMain.inst; if (mm.isTimeCounting) { PlayerMan pm = PlayerMan.inst; Player p1 = pm.GetPlObj(0); Player p2 = pm.GetPlObj(4); if (p1 == null || p2 == null) { return; } string p1name = DataBase.GetWrestlerFullName(p1.WresParam); string p2name = DataBase.GetWrestlerFullName(p2.WresParam); if (tauntList.Contains(p1name) && tauntList.Contains(p2name)) { int edit1TauntNo = tauntDat[tauntList.IndexOf(p1name)]; int edit2TauntNo = tauntDat[tauntList.IndexOf(p2name)]; SkillSlotEnum skill1 = new SkillSlotEnum(); SkillSlotEnum skill2 = new SkillSlotEnum(); // EDIT 1 TAUNT if (edit1TauntNo == 5) { skill1 = SkillSlotEnum.Performance_Enter; } else if (edit1TauntNo == 1) { skill1 = SkillSlotEnum.Performance_1; } else if (edit1TauntNo == 2) { skill1 = SkillSlotEnum.Performance_2; } else if (edit1TauntNo == 3) { skill1 = SkillSlotEnum.Performance_3; } else if (edit1TauntNo == 4) { skill1 = SkillSlotEnum.Performance_4; } // EDIT 2 TAUNT if (edit2TauntNo == 5) { skill2 = SkillSlotEnum.Performance_Enter; } else if (edit2TauntNo == 1) { skill2 = SkillSlotEnum.Performance_1; } else if (edit2TauntNo == 2) { skill2 = SkillSlotEnum.Performance_2; } else if (edit2TauntNo == 3) { skill2 = SkillSlotEnum.Performance_3; } else if (edit2TauntNo == 4) { skill2 = SkillSlotEnum.Performance_4; } p1.animator.StartSlotAnm_Immediately(skill1, 0, true, p1.TargetPlIdx); p2.animator.StartSlotAnm_Immediately(skill2, 0, true, p2.TargetPlIdx); tauntCheck = true; } } } }