func int C_IsItemBogdansStick(var C_Item Weap)
{
if(Hlp_IsItem(Weap,ItMw_2H_BogdanStick) == TRUE)
{
return TRUE;
};
return FALSE;
};
func int C_HasReadiedBogdansStick(var C_NPC slf)
{
var C_Item ReadyWeap;
ReadyWeap = Npc_GetReadiedWeapon(slf);
if(C_IsItemBogdansStick(ReadyWeap))
{
return TRUE;
};
return FALSE;
};
func void B_Random_StanCrit(var C_NPC slf,var C_NPC oth)
{
if(C_HasReadiedBogdansStick(oth) == true)
{
var int random; random = Hlp_Random(100);
if(random <= 10)
{
Wld_PlayEffect("",slf,slf,1,800,DAM_BLUNT,FALSE);
AI_StartState(slf,ZS_Unconscious_SC,0,"");
PrintScreen("Сильнейший крит!!!",0,-1,"FONT_OLD_20_WHITE.TGA",1);
}
else if(random > 10 && random <= 25)
{
Wld_PlayEffect("",slf,slf,1,400,DAM_BLUNT,FALSE);
PrintScreen("Хороший крит!!",-1,-1,"FONT_OLD_20_WHITE.TGA",1);
}
else if(random > 25 && random <= 45)
{
Wld_PlayEffect("",slf,slf,1,200,DAM_BLUNT,FALSE);
PrintScreen("Крит!",1,-1,"FONT_OLD_20_WHITE.TGA",1);
};
};
};