Hello guys i have a problem with frostnades plugin when i change pi_shrub to ice_cube.mdl file the model that I put is little upper, and the legs are actually empty without the frost block model.
someone told me to use that method ...
Quote:
Originally Posted by edon1337
engfunc( EngFunc_DropToFloor, iEnt ) ;
|
and i used that " drop_to_floor(nova); "
but again i have a problem when is jump the head its out of the model
code is here how i can fix it ?
PHP Code:
create_nova(id)
{
new nova = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"info_target"));
engfunc(EngFunc_SetSize,nova,Float:{-8.0,-8.0,-4.0},Float:{8.0,8.0,4.0});
engfunc(EngFunc_SetModel,nova,MODEL_FROZEN);
// random orientation
new Float:angles[3];
angles[1] = random_float(0.0,360.0);
set_pev(nova,pev_angles,angles);
// put it at their feet
new Float:novaOrigin[3];
pev(id,pev_origin,novaOrigin);
engfunc(EngFunc_SetOrigin,nova,novaOrigin);
// make it translucent
new rgb[3];
get_rgb_colors(isFrozen[id], rgb);
IVecFVec(rgb, angles); // let's just use angles
set_pev(nova,pev_rendercolor,angles); // see above
set_pev(nova,pev_rendermode,kRenderTransAlpha);
set_pev(nova,pev_renderfx,kRenderFxGlowShell);
set_pev(nova,pev_renderamt,128.0);
novaDisplay[id] = nova;
}