Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion code/cgame/cg_players.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,9 @@ static void CG_PlayerAnimEvents( int animFileIndex, qboolean torso, int oldFrame
}
}

hstring myModel = g_entities[entNum].NPC_type; //apparently NPC_type is always the same as the model name???
// Use the anim file set's model name instead of NPC_type, since NPC variants
// (e.g., "stormtrooper2") share the same model and anim events as the base NPC
hstring myModel = level.knownAnimFileSets[animFileIndex].filename;

// Check for anim event
for ( i=0; i < MAX_ANIM_EVENTS; ++i )
Expand Down