Raised This Month: $ Target: $400
 0% 

Problem with making solid entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Speed!
BANNED
Join Date: Jan 2009
Old 02-14-2009 , 13:06   Problem with making solid entity
Reply With Quote #1

Im using this
PHP Code:
public make_shield(const Float:vOrigin[3])
{
    new 
i_Ent engfunc(EngFunc_CreateNamedEntity,g_EntMine);
    
set_pev(i_Ent,pev_classname,"shield");

    
set_pev(i_Ent,pev_frame,0);
    
set_pev(i_Ent,pev_body,3);

    
engfuncEngFunc_SetSizei_Ent,  {-30.0, -30.0, -40.0},  {30.030.040.0})
    
engfunc(EngFunc_SetModel,i_Ent,model_aura_shield);
    
engfuncEngFunc_SetOrigini_Ent vOrigin );

    
fm_set_rendering(i_Ent,kRenderFxGlowShell,255,255,255,kRenderTransAlpha,70)
    
set_task(10.3"remove_shield"i_Ent)
    
set_pev(i_Ent,pev_solid,SOLID_BBOX);

THE PROBLEM IS THAT THTE MODEL SHOWS RIGHT, BUT I CANT GO THROUGH IT

the model is attached
the model is wrong?
the code?
plz help, this is important for me
Attached Files
File Type: zip aura6.zip (13.8 KB, 92 views)

Last edited by Speed!; 02-16-2009 at 14:11.
Speed! is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-14-2009 , 13:10   Re: Problem with making solid entity
Reply With Quote #2

Try to set a size : EngFunc_SetSize
Arkshine is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-14-2009 , 13:28   Re: Problem with making solid entity
Reply With Quote #3

Quote:
Originally Posted by arkshine View Post
Try to set a size : EngFunc_SetSize
where can i get the accuarate sizes?
Speed! is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-14-2009 , 16:59   Re: Problem with making solid entity
Reply With Quote #4

I thinks that is {-4.0, -4.0, -5.0} for min & for max {4.0, 4.0, 5.0}

I dont know how to get it xd
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 02-14-2009 , 17:01   Re: Problem with making solid entity
Reply With Quote #5

use this
Code:
entity_set_int(entity,EV_INT_solid,SOLID_BBOX)
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-14-2009 , 17:03   Re: Problem with making solid entity
Reply With Quote #6

Quote:
Originally Posted by Starsailor View Post
use this
Code:
entity_set_int(entity,EV_INT_solid,SOLID_BBOX)
This is the same set_pev(i_Ent,pev_solid,SOLID_BBOX);
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-15-2009 , 02:12   Re: Problem with making solid entity
Reply With Quote #7

PHP Code:
// Try this
engfuncEngFunc_SetOrigini_EntvOrigin );

// instead of 
/* set_pev(i_Ent, pev_origin, vOrigin ); */ 
__________________

anakin_cstrike is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 02-15-2009 , 08:32   Re: Problem with making solid entity
Reply With Quote #8

Quote:
Originally Posted by anakin_cstrike View Post
PHP Code:
// Try this
engfuncEngFunc_SetOrigini_EntvOrigin );
 
// instead of 
/* set_pev(i_Ent, pev_origin, vOrigin ); */ 
Won't help, the problem is like arkshine said. Sizes.
Quote:
Originally Posted by Starsailor View Post
use this
Code:
entity_set_int(entity,EV_INT_solid,SOLID_BBOX)
He's using fakemeta in every thing he does. Gimme a one reason why should he start using engine?
Quote:
Originally Posted by Speed! View Post
where can i get the accuarate sizes?
From the model's maker. You have to set them, so if you don't get better idea just guess them and test couple of times until you get them right.
SnoW is offline
Send a message via MSN to SnoW
Speed!
BANNED
Join Date: Jan 2009
Old 02-16-2009 , 10:58   Re: Problem with making solid entity
Reply With Quote #9

Ok, im asking the modeler about this. btw, i tried this with solid_bbox and sized that loooked to work, but it was really weird. like if i can go through it, but it turned laggy (my walking)
anybody?
Speed! is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-16-2009 , 11:14   Re: Problem with making solid entity
Reply With Quote #10

Quote:
Originally Posted by anakin_cstrike View Post
PHP Code:
engfuncEngFunc_SetOrigini_EntvOrigin ); 
take a look on fm_entity_set_origin();

PHP Code:
stock fm_entity_set_origin(index, const Float:origin[3]) {
    new 
Float:mins[3], Float:maxs[3];
    
pev(indexpev_minsmins);
    
pev(indexpev_maxsmaxs);
    
engfunc(EngFunc_SetSizeindexminsmaxs);

    return 
engfunc(EngFunc_SetOriginindexorigin);

__________________
xPaw 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 16:59.


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