nut.anim
Animation Library.
Provides animation mappings and utilities for different player models and states. Supports model class assignments and forced animation sequences for roleplay purposes.
Functions
nut.anim.setModelClass (model, class)
nut.anim.setModelClass
Sets the animation class for a specified model. Use this to fix models using incorrect animations or T-Posing
This function does not transform models
nut.anim.setModelClass
doesn't give a model animations, it translates gmod inputs meant for typical playermodels to those used by stuff like NPC models.
If a model does not have animations baked into them, it won't play them.
There are ways to achieve that but not base NS.
Supported classes:
Class | Description |
---|---|
citizen_male |
Male Human NPC animations. Use this for models using the male HL2 Citizen model as a base |
citizen_female |
Female Human NPC animations. Use this for models using the female HL2 Citizen model as a base |
metrocop |
Metrocop animations. Use this for models using the HL2 Metrocop model as a base |
overwatch |
Overwatch animations. Use this for models using the HL2 Overwatch Elite model as a base |
vort |
Vortiguant animations. Use this for models using the HL2 Vort model as a base |
zombie |
Zombie animations. Use this for models using the HL2 Zombie model as a base |
fastZombie |
Fast Zombie animations. Use this for models using the HL2 Fast Zombie model as a base |
player |
Player animations. Use this for models meant to be used as player models (typically have /player/ in their model path) |
Parameters:
string model The model path to assign an animation class tostring class The animation class to assign