помогите прописать скин модели( engfunc(EngFunc_SetModel, entid, "models/error_csdm/sentry/w_weaponbox.mdl");), добавил анимацыю но со скином воникли проблемы, зарание спасибо!)
new Float:vecPos[3], Float:vecVel[3]; //, Orig[3]
//get_user_origin(victim, Orig) // Simon Logic: this is lame function =)
//IVecFVec(Orig, Pos)
pev(victim, pev_origin, vecPos);
pev(victim, pev_velocity, vecVel);
g_EntTable[entid] = ITEM_PACK + packid;
set_pev(entid, pev_classname, "csdm_deathpack");
engfunc(EngFunc_SetModel, entid, "models/error_csdm/sentry/w_weaponbox.mdl");
set_pev(entid, pev_solid, SOLID_TRIGGER);
set_pev(entid, pev_movetype, MOVETYPE_TOSS);
set_anim(entid,0);
set_pev(entid, pev_owner, victim);
new Float:vecPos[3], Float:vecVel[3]; //, Orig[3]
//get_user_origin(victim, Orig) // Simon Logic: this is lame function =)
//IVecFVec(Orig, Pos)
pev(victim, pev_origin, vecPos);
pev(victim, pev_velocity, vecVel);
g_EntTable[entid] = ITEM_PACK + packid;
set_pev(entid, pev_classname, "csdm_deathpack");
engfunc(EngFunc_SetModel, entid, "models/error_csdm/sentry/w_weaponbox.mdl");
set_pev(entid, pev_solid, SOLID_TRIGGER);
set_pev(entid, pev_movetype, MOVETYPE_TOSS);
set_anim(entid,0);
set_pev(entid, pev_owner, victim);
Вложения
-
91.6 KB Просмотры: 4