PDA

View Full Version : Model ground


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
}

Mr.J
08-02-2018, 05:57
thx :) i fixed it
i didnt see the code very well xd
i just add this
fOrigin[2] += 20

OciXCrom
08-02-2018, 07:47
Why did you remove the thread contents? Don't be selfish.

Mr.J
08-02-2018, 13:51
Why did you remove the thread contents? Don't be selfish.

It fixed man -_- and it's only small part of code :/

HamletEagle
08-02-2018, 14:28
It doesn't matter, if you fixed it then you should post the fix so it can help other people. This is how forums work. You can't ask others to help you and then when you get what you need remove the post and refuse to share it with anyone.

Mr.J
08-03-2018, 03:34
It doesn't matter, if you fixed it then you should post the fix so it can help other people. This is how forums work. You can't ask others to help you and then when you get what you need remove the post and refuse to share it with anyone.

ok i will remember that .
what if the code was private ?

HamletEagle
08-03-2018, 05:43
ok i will remember that .
what if the code was private ?

If you don't want to post some code then don't post it at all. You can't just post it, get help and remove it. That is scummy.