Raised This Month: $ Target: $400
 0% 

[HELP] {UPDATED WITH IMAGES CHECK} Ice Cube Model Bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sheeran
Junior Member
Join Date: Apr 2017
Old 04-12-2017 , 13:56   [HELP] {UPDATED WITH IMAGES CHECK} Ice Cube Model Bug
Reply With Quote #1

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 View Post
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(rgbangles); // 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;


Last edited by Sheeran; 04-13-2017 at 03:17.
Sheeran is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-12-2017 , 14:51   Re: X,Y,Z Values
Reply With Quote #2

engfunc( EngFunc_DropToFloor, iEnt ) ;
__________________

Last edited by edon1337; 04-12-2017 at 14:52.
edon1337 is offline
Sheeran
Junior Member
Join Date: Apr 2017
Old 04-12-2017 , 15:05   Re: X,Y,Z Values
Reply With Quote #3

Quote:
Originally Posted by edon1337 View Post
engfunc( EngFunc_DropToFloor, iEnt ) ;
i want to use somehting to follow the player when jump i have problem with the drop_down

Last edited by Sheeran; 04-12-2017 at 15:08.
Sheeran is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-12-2017 , 15:08   Re: X,Y,Z Values
Reply With Quote #4

Code:
engfunc(EngFunc_SetSize,nova,Float:{-8.0,-8.0,-4.0},Float:{8.0,8.0,4.0});

It's the entity's size.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Sheeran
Junior Member
Join Date: Apr 2017
Old 04-12-2017 , 15:23   Re: X,Y,Z Values
Reply With Quote #5

Quote:
Originally Posted by EFFx View Post
Code:
engfunc(EngFunc_SetSize,nova,Float:{-8.0,-8.0,-4.0},Float:{8.0,8.0,4.0});

It's the entity's size.
i change it but does not change the position
engfunc(EngFunc_SetSize,nova,Float:{-180.0,-180.0,-140.0},Float:{180.0,180.0,140.0});
Sheeran is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-12-2017 , 15:31   Re: X,Y,Z Values
Reply With Quote #6

It's the entity's size, not origin.

Code:
    new Float:novaOrigin[3];     pev(id,pev_origin,novaOrigin);     engfunc(EngFunc_SetOrigin,nova,novaOrigin);

It will put the entity in where the player that has created him is. Then if you're at the T spawn, the entity will copy your origin

Code:
    new Float:novaOrigin[3];     pev(id,pev_origin,novaOrigin);

And will spawn at it

Code:
engfunc(EngFunc_SetOrigin,nova,novaOrigin);
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Sheeran
Junior Member
Join Date: Apr 2017
Old 04-12-2017 , 15:38   Re: X,Y,Z Values
Reply With Quote #7

And how I can change the origin ?
Sheeran is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-12-2017 , 15:45   Re: X,Y,Z Values
Reply With Quote #8

Quote:
Originally Posted by Sheeran View Post
And how I can change the origin ?
Code:
engfunc(EngFunc_SetOrigin,nova,novaOrigin);
...
__________________
edon1337 is offline
Sheeran
Junior Member
Join Date: Apr 2017
Old 04-12-2017 , 15:49   Re: X,Y,Z Values
Reply With Quote #9

Quote:
Originally Posted by edon1337 View Post
Code:
engfunc(EngFunc_SetOrigin,nova,novaOrigin);
...
Dude I don't have idea ... I learning ... where I put the numbers
Sheeran is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-12-2017 , 15:50   Re: X,Y,Z Values
Reply With Quote #10

Code:
engfunc(EngFunc_SetOrigin,nova,Float:{400, -100, 50})

That's an example of how change the origin.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Reply


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 17:55.


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