AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Changing the solid box angle? (https://forums.alliedmods.net/showthread.php?t=46828)

blackops7799 11-03-2006 15:06

Changing the solid box angle?
 
Code:

        new Float:minbox[3] = { -88.5, -34.0, -1.0 };
        new Float:maxbox[3] = { 88.5, 34.0, 1.0 };

I know this is what you use to make the solid box, but is there a way to change the angle of it? This is for carmod so i want it to make the box going in the angle of the person that gets out of the car.

Hawk552 11-03-2006 16:06

Re: Changing the solid box angle?
 
Quote:

Originally Posted by blackops7799 (Post 399171)
Code:

    new Float:minbox[3] = { -88.5, -34.0, -1.0 };
    new Float:maxbox[3] = { 88.5, 34.0, 1.0 };

I know this is what you use to make the solid box, but is there a way to change the angle of it? This is for carmod so i want it to make the box going in the angle of the person that gets out of the car.

Yes, you can use EV_VEC_angles / pev_angles.

The format is x,y,z, with y (or angle[1]) being the angle you want to change. It's from 0-360, IIRC (I think you can go beyond it, but it serves no useful purpose).

Emp` 11-03-2006 17:27

Re: Changing the solid box angle?
 
Quote:

Originally Posted by Hawk552 (Post 399193)
Yes, you can use EV_VEC_angles / pev_angles.

The format is x,y,z, with y (or angle[1]) being the angle you want to change. It's from 0-360, IIRC (I think you can go beyond it, but it serves no useful purpose).

he's talking about changing where the solid(ness?) is. when you turn an entity (change angles) it doesn't turn the solid.

blackops7799 11-03-2006 17:36

Re: Changing the solid box angle?
 
Well is there a way to turn the solid?

Hawk552 11-03-2006 17:49

Re: Changing the solid box angle?
 
Quote:

Originally Posted by Emp` (Post 399207)
he's talking about changing where the solid(ness?) is. when you turn an entity (change angles) it doesn't turn the solid.

Ah, my bad.

To the best of my knowledge, you have to manually calculate the new mins/max(e)s, or call FM_SetAbsBox on the ent (not sure if that will do it).

jopmako 11-04-2006 13:18

Re: Changing the solid box angle?
 
change entity angles not work when entity speed>0


All times are GMT -4. The time now is 04:49.

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