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

Updating Size Box / Mins & Max's


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 09-15-2010 , 00:46   Updating Size Box / Mins & Max's
Reply With Quote #1

I create a basic entity, like so.
Code:
CreatEnt(const Model[],const Float:Angles[3],const Float:Origin[3]) {     new Ent = create_entity("info_target");     if(!Ent)         return         entity_set_size(Ent,Mins,Maxs);         entity_set_int(Ent,EV_INT_solid,SOLID_BBOX);     entity_set_int(Ent,EV_INT_movetype,MOVETYPE_PUSHSTEP);     entity_set_int(Ent,EV_INT_iuser4,0); // On 1/0         new Float:Mins[3] = {-75.0,-40.0,0.0}     new Float:Maxs[3] ={75.0,40.0,50.0}         entity_set_float(Ent,EV_FL_friction,0.1);     entity_set_float(Ent,EV_FL_nextthink,halflife_time() + 1.0);     entity_set_origin(Ent,Origin);         drop_to_floor(Ent); }

I use "TE_BOX" to show it's bounding box. And when you give an entity an angle, the box doesn't update. (See picture).

http://img704.**************/img704/5051/56067062.jpg

Does anybody know a way around this, I messed with alot of forward (FM_SetAbsBox) and such, and can't get anywhere close.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-15-2010 , 09:59   Re: Updating Size Box / Mins & Max's
Reply With Quote #2

No. GoldSrc does not support rotated box ents. I tried the same thing for my carmod. The best solution is to make it a square.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 18:50.


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