actually i wonder what you're doing. Although i am not a sdk guru, i find this sound weird:
Code:
g_engfuncs.pfnSetClientKeyValue( entindex(), g_engfuncs.pfnGetInfoKeyBuffer( edict() ), "model", "badguy2");
followed by:
Code:
SET_MODEL( ENT(pev), "models/player.mdl");
Ie, it looks like you first set it via an engine message, using the 'correct' model (badguy2). Then you call SET_MODEL , and that uses 'player.mdl'.
You said it works, but i wonder what SET_MODEL does then?
Just askin
