Za dużo roboty. Trzeba będzie dodawać to do każdej broni w której chcesz zmienić animacje.
Prościej będzie edytować B_AddFightSkill
Przykład dwuręcznej broni:
if(talent == NPC_TALENT_2H)
{
self.hitchance[NPC_TALENT_2H] = self.hitchance[NPC_TALENT_2H] + percent;
if(self.hitchance[NPC_TALENT_2H] > 100)
{
self.hitchance[NPC_TALENT_2H] = 100;
};
if(self.hitchance[NPC_TALENT_2H] >= 75)
{
if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(hero))
{
Npc_SetTalentSkill(self,NPC_TALENT_2H,3);
};
Mdl_ApplyOverlayMds(self,"humans_2hST3.mds");
Mdl_RemoveOverlayMds(self,"humans_2hST1.MDS");
Mdl_RemoveOverlayMds(self,"humans_2hST2.MDS");
};
if((self.hitchance[NPC_TALENT_2H] >= 50) && (self.hitchance[NPC_TALENT_2H] < 75))
{
if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(hero))
{
Npc_SetTalentSkill(self,NPC_TALENT_2H,2);
};
Mdl_ApplyOverlayMds(self,"humans_2hST2.mds");
Mdl_RemoveOverlayMds(self,"humans_2hST1.MDS");
Mdl_RemoveOverlayMds(self,"humans_2hST3.MDS");
};
if((self.hitchance[NPC_TALENT_2H] >= 25) && (self.hitchance[NPC_TALENT_2H] < 50))
{
if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(hero))
{
Npc_SetTalentSkill(self,NPC_TALENT_2H,1);
};
Mdl_ApplyOverlayMds(self,"humans_2hST1.mds");
Mdl_RemoveOverlayMds(self,"humans_2hST2.MDS");
Mdl_RemoveOverlayMds(self,"humans_2hST3.MDS");
};
if(self.hitchance[NPC_TALENT_2H] < 25)
{
if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(hero))
{
Npc_SetTalentSkill(self,NPC_TALENT_2H,0);
};
Mdl_RemoveOverlayMds(self,"humans_2hST1.MDS");
Mdl_RemoveOverlayMds(self,"humans_2hST2.MDS");
Mdl_RemoveOverlayMds(self,"humans_2hST3.MDS");
};
};