Raised This Month: $ Target: $400
 0% 

Changing the solid box angle?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blackops7799
Senior Member
Join Date: May 2006
Old 11-03-2006 , 15:06   Changing the solid box angle?
Reply With Quote #1

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.
blackops7799 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-03-2006 , 16:06   Re: Changing the solid box angle?
Reply With Quote #2

Quote:
Originally Posted by blackops7799 View Post
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).
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-03-2006 , 17:27   Re: Changing the solid box angle?
Reply With Quote #3

Quote:
Originally Posted by Hawk552 View Post
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.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
blackops7799
Senior Member
Join Date: May 2006
Old 11-03-2006 , 17:36   Re: Changing the solid box angle?
Reply With Quote #4

Well is there a way to turn the solid?
blackops7799 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-03-2006 , 17:49   Re: Changing the solid box angle?
Reply With Quote #5

Quote:
Originally Posted by Emp` View Post
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).
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 11-04-2006 , 13:18   Re: Changing the solid box angle?
Reply With Quote #6

change entity angles not work when entity speed>0
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
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 04:49.


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