AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Brush Ent Angles (https://forums.alliedmods.net/showthread.php?t=98790)

Alka 07-29-2009 09:06

Brush Ent Angles
 
Basically it set it's angles based on map center, so will rotate around map center.I'm trying to rotate it in actual origin, like how angles work for other ents, but dunno how.

xPaw 07-29-2009 14:00

Re: Brush Ent Angles
 
It rotates like that because its pev_origin is 0.0 0.0 0.0, i didnt found a way to fix it so far

PHP Code:

    new Float:vOrigin];
    
get_brush_entity_originiEntvOrigin );
    
entity_set_originiEntvOrigin ); 

didnt helped

Alka 07-29-2009 15:06

Re: Brush Ent Angles
 
Hmm yea, but i've saw that when you change angle, also it size it changes and it's kinda strange, maybe someone else know? ;S

BOYSplayCS 07-29-2009 15:31

Re: Brush Ent Angles
 
Well, you can't change an angle without altering the size of the entity/object, it's virtually impossible. This is caused when changing an angle you also change the way the entity/object appears to the user(player), thus altering the size and shape.

joaquimandrade 07-29-2009 15:46

Re: Brush Ent Angles
 
What size are you both talking about?

Exolent[jNr] 07-29-2009 15:47

Re: Brush Ent Angles
 
Quote:

Originally Posted by BOYSplayCS (Post 885068)
Well, you can't change an angle without altering the size of the entity/object, it's virtually impossible. This is caused when changing an angle you also change the way the entity/object appears to the user(player), thus altering the size and shape.

That's wrong.
You can change an entity's model angles but keep its bounding box angles.
When you set the pev_angles, you are setting the angles.
When you set the pev_mins/pev_maxs, you are setting the bounding box angles.

This can be seen with BlockMaker, if you take out the portion that changes the pev_mins/pev_maxs.
It will only rotate the block models without changing where you can touch the model.

Alka 07-29-2009 16:24

Re: Brush Ent Angles
 
Yes, but with brush ents it's different, dunno how to make angles thing.

xPaw 08-07-2009 08:18

Re: Brush Ent Angles
 
Anyone found a solution?


All times are GMT -4. The time now is 18:24.

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