MCPcopy Index your code
hub / github.com/assaultcube/AC / findanim

Function findanim

source/src/rendermodel.cpp:881–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879}
880
881int findanim(const char *name)
882{
883 const char *names[] = { "idle", "run", "attack", "pain", "jump", "land", "flipoff", "salute", "taunt", "wave", "point", "crouch idle", "crouch walk", "crouch attack", "crouch pain", "crouch death", "death", "lying dead", "flag", "gun idle", "gun shoot", "gun reload", "gun throw", "mapmodel", "trigger", "decay", "all" };
884 loopi(sizeof(names)/sizeof(names[0])) if(!strcmp(name, names[i])) return i;
885 return -1;
886}
887
888void loadskin(const char *dir, const char *altdir, Texture *&skin) // model skin sharing
889{

Callers 3

menumdlFunction · 0.85
md2animFunction · 0.85
md3animFunction · 0.85

Calls 1

loopiFunction · 0.70

Tested by

no test coverage detected