Help Understand how to define animations

So i have a bunch of models that have their own animations that came with a their port but i need help understanding how to get their animations to work with acts for example

if a model for an npc has an attack animation how do i define it to work with ACT_MELEE_ATTACK1

[editline]3rd April 2015[/editline]

This is for garrys mod