AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] {UPDATED WITH IMAGES CHECK} Ice Cube Model Bug (https://forums.alliedmods.net/showthread.php?t=296117)

Sheeran 04-12-2017 13:56

[HELP] {UPDATED WITH IMAGES CHECK} Ice Cube Model Bug
 
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.
http://i.imgur.com/w7woios.jpg

someone told me to use that method ...
Quote:

Originally Posted by edon1337 (Post 2511592)
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
http://i.imgur.com/O4BQVMz.jpg

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;



edon1337 04-12-2017 14:51

Re: X,Y,Z Values
 
engfunc( EngFunc_DropToFloor, iEnt ) ;

Sheeran 04-12-2017 15:05

Re: X,Y,Z Values
 
Quote:

Originally Posted by edon1337 (Post 2511592)
engfunc( EngFunc_DropToFloor, iEnt ) ;

i want to use somehting to follow the player when jump i have problem with the drop_down

EFFx 04-12-2017 15:08

Re: X,Y,Z Values
 
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.

Sheeran 04-12-2017 15:23

Re: X,Y,Z Values
 
Quote:

Originally Posted by EFFx (Post 2511596)
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});

EFFx 04-12-2017 15:31

Re: X,Y,Z Values
 
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);

Sheeran 04-12-2017 15:38

Re: X,Y,Z Values
 
And how I can change the origin ?

edon1337 04-12-2017 15:45

Re: X,Y,Z Values
 
Quote:

Originally Posted by Sheeran (Post 2511612)
And how I can change the origin ?

Code:
engfunc(EngFunc_SetOrigin,nova,novaOrigin);
...

Sheeran 04-12-2017 15:49

Re: X,Y,Z Values
 
Quote:

Originally Posted by edon1337 (Post 2511615)
Code:
engfunc(EngFunc_SetOrigin,nova,novaOrigin);
...

Dude I don't have idea ... I learning ... where I put the numbers

EFFx 04-12-2017 15:50

Re: X,Y,Z Values
 
Code:
engfunc(EngFunc_SetOrigin,nova,Float:{400, -100, 50})

That's an example of how change the origin.


All times are GMT -4. The time now is 17:55.

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