Raised This Month: $ Target: $400
 0% 

Rotate an entity, then update the hullsize based on its new angle.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 01-10-2017 , 08:02   Re: Rotate an entity, then update the hullsize based on its new angle.
Reply With Quote #1

Quote:
Originally Posted by Shattered Heart Lynx View Post
I forgot to say this entity is a "prop", as such it will never rotate or move by itself. I only need to adjust the hullsize based on its angle when I spawn it at map start.
So, you can use HitBoxes for colliding (which can rotate). How to enable it? You need to add flag STUDIO_TRACE_HITBOX to your entity model. How to add it? You need patch the .mdl file: replace 00 00 at 0x88 offset to 00 02. You can try with arcticorange.mdl.

Quote:
Originally Posted by Craxor View Post
he can make SOLID_NOT
What is the purpose of rotating BBOX for not solid entity?
__________________

Last edited by PRoSToTeM@; 01-10-2017 at 09:26.
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 01-11-2017 , 10:55   Re: Rotate an entity, then update the hullsize based on its new angle.
Reply With Quote #2

Quote:
Originally Posted by PRoSToTeM@ View Post
So, you can use HitBoxes for colliding (which can rotate). How to enable it? You need to add flag STUDIO_TRACE_HITBOX to your entity model. How to add it? You need patch the .mdl file: replace 00 00 at 0x88 offset to 00 02. You can try with arcticorange.mdl.


What is the purpose of rotating BBOX for not solid entity?
Which entity are you using?
__________________
gabuch2 is offline
Anggara_nothing
Veteran Member
Join Date: Jan 2009
Location: Indonesia
Old 01-28-2017 , 10:39   Re: Rotate an entity, then update the hullsize based on its new angle.
Reply With Quote #3

Quote:
Originally Posted by PRoSToTeM@ View Post
So, you can use HitBoxes for colliding (which can rotate). How to enable it? You need to add flag STUDIO_TRACE_HITBOX to your entity model. How to add it? You need patch the .mdl file: replace 00 00 at 0x88 offset to 00 02. You can try with arcticorange.mdl.


What is the purpose of rotating BBOX for not solid entity?
Interesting. Anyway you dont have to patch the .mdl, only need to recompile .qc file with additional $flags parameter.
Anggara_nothing is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 01-28-2017 , 15:04   Re: Rotate an entity, then update the hullsize based on its new angle.
Reply With Quote #4

Quote:
Originally Posted by Anggara_nothing View Post
Interesting. Anyway you dont have to patch the .mdl, only need to recompile .qc file with additional $flags parameter.
Re-compiling (decompile and compile) slightly distorts model, better to patch.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
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 17:37.


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