AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Model ground (https://forums.alliedmods.net/showthread.php?t=309632)

Mr.J 08-02-2018 05:17

Model ground
 
hi,
how to raise the model from the ground ? bcoz my model half of it outside the map and half in map.

PHP Code:

public lada_munitie(id,level,cid)
{
if (!
cmd_access(id,level,cid,1)) 
return 
PLUGIN_HANDLED 


new munitieEnt engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString,"func_wall"));


set_pev(munitieEntpev_classname"munitie");
get_user_origin(idaimVector3)

new 
Float:fOrigin[3];
IVecFVec(aimVectorfOrigin);

set_pev(munitieEntpev_originfOrigin);
engfunc(EngFunc_SetModelmunitieEntmunitieModel);

set_pev(munitieEnt,pev_solid,SOLID_BBOX);
engfunc(EngFunc_SetSizemunitieEntFloat:{-16.0, -16.0, -16.0}, Float:{16.016.016.0} )

return 
PLUGIN_HANDLED



Mr.J 08-02-2018 05:57

Re: Model ground
 
thx :) i fixed it
i didnt see the code very well xd
i just add this
PHP Code:

    fOrigin[2] += 20 


OciXCrom 08-02-2018 07:47

Re: Model ground
 
Why did you remove the thread contents? Don't be selfish.

Mr.J 08-02-2018 13:51

Re: Model ground
 
Quote:

Originally Posted by OciXCrom (Post 2607627)
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

Re: Model ground
 
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

Re: Model ground
 
Quote:

Originally Posted by HamletEagle (Post 2607711)
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

Re: Model ground
 
Quote:

Originally Posted by Mr.J (Post 2607819)
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.


All times are GMT -4. The time now is 12:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.