Raised This Month: $51 Target: $400
 12% 

Model ground


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 08-02-2018 , 05:17   Model ground
Reply With Quote #1

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


Last edited by HamletEagle; 08-02-2018 at 14:28. Reason: fixed
Mr.J is offline
Old 08-02-2018, 05:29
jimaway
This message has been deleted by jimaway. Reason: nvm, that's a really bad solution
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 08-02-2018 , 05:57   Re: Model ground
Reply With Quote #2

thx i fixed it
i didnt see the code very well xd
i just add this
PHP Code:
    fOrigin[2] += 20 
Mr.J is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-02-2018 , 07:47   Re: Model ground
Reply With Quote #3

Why did you remove the thread contents? Don't be selfish.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 08-02-2018 , 13:51   Re: Model ground
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
Why did you remove the thread contents? Don't be selfish.
It fixed man -_- and it's only small part of code :/
Mr.J is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-02-2018 , 14:28   Re: Model ground
Reply With Quote #5

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.
__________________

Last edited by HamletEagle; 08-02-2018 at 14:29.
HamletEagle is offline
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 08-03-2018 , 03:34   Re: Model ground
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
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 ?
Mr.J is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-03-2018 , 05:43   Re: Model ground
Reply With Quote #7

Quote:
Originally Posted by Mr.J View Post
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.
__________________
HamletEagle is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:56.


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