Try reordering you entity creation code properly?
this might work?
PHP Code:
public CmdCorpse(iPlayer) {
new iOrigin[3], Float:fOrigin[3];
get_user_origin(iPlayer, iOrigin, 2);
IVecFVec(iOrigin, fOrigin);
new entCorpse = create_entity("info_target");
if (!entCorpse) {
log_amx("Could not create custom corpse entity.");
return FMRES_IGNORED;
}
entity_set_string(entCorpse, EV_SZ_classname, "custom_corpse");
entity_set_int(entCorpse, EV_INT_solid, SOLID_TRIGGER);
entity_set_int(entCorpse, EV_INT_movetype, MOVETYPE_TOSS);
fOrigin[2] += 50.0;
entity_set_origin(entCorpse, fOrigin);
entity_set_model(entCorpse, "models/player/terror/terror.mdl");
new Float:maxs[3] = {16.0, 16.0, 36.0};
new Float:mins[3] = {-16.0, -16.0, -36.0};
entity_set_size(entCorpse, mins, maxs);
entity_set_float(entCorpse, EV_FL_frame, 1.0);
entity_set_float(entCorpse, EV_FL_framerate, 1.0);
entity_set_int(entCorpse, EV_INT_sequence, 107);
//entity_set_float(entCorpse, EV_FL_animtime, get_gametime()); maybe the anime time is glitching the thing?
return FMRES_IGNORED;
}
__________________