Raised This Month: $ Target: $400
 0% 

Model ground


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

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 12:16.


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