Mr.J
08-02-2018, 05:17
hi,
how to raise the model from the ground ? bcoz my model half of it outside the map and half in map.
public lada_munitie(id,level,cid)
{
if (!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED
new munitieEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString,"func_wall"));
set_pev(munitieEnt, pev_classname, "munitie");
get_user_origin(id, aimVector, 3)
new Float:fOrigin[3];
IVecFVec(aimVector, fOrigin);
set_pev(munitieEnt, pev_origin, fOrigin);
engfunc(EngFunc_SetModel, munitieEnt, munitieModel);
set_pev(munitieEnt,pev_solid,SOLID_BBOX);
engfunc(EngFunc_SetSize, munitieEnt, Float:{-16.0, -16.0, -16.0}, Float:{16.0, 16.0, 16.0} )
return PLUGIN_HANDLED
}
how to raise the model from the ground ? bcoz my model half of it outside the map and half in map.
public lada_munitie(id,level,cid)
{
if (!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED
new munitieEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString,"func_wall"));
set_pev(munitieEnt, pev_classname, "munitie");
get_user_origin(id, aimVector, 3)
new Float:fOrigin[3];
IVecFVec(aimVector, fOrigin);
set_pev(munitieEnt, pev_origin, fOrigin);
engfunc(EngFunc_SetModel, munitieEnt, munitieModel);
set_pev(munitieEnt,pev_solid,SOLID_BBOX);
engfunc(EngFunc_SetSize, munitieEnt, Float:{-16.0, -16.0, -16.0}, Float:{16.0, 16.0, 16.0} )
return PLUGIN_HANDLED
}