Hey guys I got problem with setting animation on a prop, basically when I taunt i want to spawn a prop_dynamic which imitate a taunt which works on normal models like demos :
But when i use a custom model, it replies me in console:
Code:
CSceneEntity :"demo" unable to find sequence "taunt_brutallegend"
Dynamic prop prop_dynamic: no sequence named:taunt_brutallegend
Which is strange because the sequence exist for the model, i can do the taunt but the prop doesnt do it
I use this code to create the prop and apply the animation :
Code:
int CreateClone(int client, float pos[3], float anglss[3], i)
{
char mdl[64];
GetEntPropString(client, Prop_Data, "m_ModelName", mdl, 64);
int dynamic = CreateEntityByName("prop_dynamic_override");
DispatchKeyValue(dynamic, "model", mdl);
DispatchKeyValue(dynamic, "solid", "0");
DispatchKeyValue(dynamic, "DefaultAnim", "taunt_brutallegend");
TeleportEntity(dynamic, pos, anglss, NULL_VECTOR);
DispatchSpawn(dynamic);
ActivateEntity(dynamic);
if(i % 2 == 0) EmitSoundToAll("player/brutal_legend_taunt.wav", dynamic, _, _, _, 1.0);
return dynamic;
}
Here is the custom model:
If anyone knows why it does this, any help is welcomed ^^
__________________