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

Solved Rotation ent


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fakenik
Junior Member
Join Date: Mar 2013
Old 06-17-2020 , 08:20   Rotation ent
Reply With Quote #1

Hi guys, is it possible to rotate with this box? In cs:go works nice. Maybe orpheu, reapi ? Any idea ?

Last edited by fakenik; 06-19-2020 at 17:27.
fakenik is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-17-2020 , 08:57   Re: Rotation ent
Reply With Quote #2

Hi, there's a model flag parameter which forces the model to use hitboxes as collision instead of its bounding box. There are three ways to set that flag.
The first is editing the model's .qc file, you would just have to add the line "$flags 512" (without quotes) and compile the model.
The second is to open the model in Paranoia Model Viewer version 1.30, go to the tab "Misc", enable the checkbox "Hitbox collision" and save the file.
And the third one is to edit the model's binary with the "HxD" software, for more information on this method see this
Setting that flag, you will have the collision rotating with the model.

For more info on goldsrc models, see this
Good luck
__________________









Last edited by CrazY.; 06-17-2020 at 08:57.
CrazY. is offline
fakenik
Junior Member
Join Date: Mar 2013
Old 06-17-2020 , 14:24   Re: Rotation ent
Reply With Quote #3

works thanks, only the problem with this border is the same do you know how to change it? EV_VEC_maxs, EV_VEC_mins etc ? :/
fakenik is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-17-2020 , 15:28   Re: Rotation ent
Reply With Quote #4

Edit the $hbox property to fit the model
You can do that by directly editing the model's qc or through paranoia model viewer in the "Editor" tab
__________________








CrazY. is offline
condoriano90
Member
Join Date: May 2020
Old 06-17-2020 , 16:35   Re: Rotation ent
Reply With Quote #5

Wow, thanks for the such informative write and link, CrazY. We really should sticky these highly valuable, one of a kind websites such as http://the303.org/, http://hl.loess.ru/, http://bots-united.com and others so that it's easier for us to find resources. I'm sure there are more of these sites but unfortunately they get unnoticed and never got passed down to next generations of amxx coders. We really should gather these sites in a thread and make a sticky!

Last edited by condoriano90; 06-17-2020 at 16:35.
condoriano90 is offline
fakenik
Junior Member
Join Date: Mar 2013
Old 06-17-2020 , 16:41   Re: Rotation ent
Reply With Quote #6

I rotate this model in game (entity_set_vector(ent, EV_VEC_angles, angles); but border not work...
I want like this red border. It is possible ?
Hit box works but border bad shows.

Last edited by fakenik; 06-19-2020 at 15:11.
fakenik is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-17-2020 , 18:05   Re: Rotation ent
Reply With Quote #7

To rotate the borders as the image you have to play around with the box mins and maxs. If the entity doesn't have fixed angle, it will be hard

@condoriano90 You are most welcome!
__________________








CrazY. is offline
fakenik
Junior Member
Join Date: Mar 2013
Old 06-18-2020 , 12:45   Re: Rotation ent
Reply With Quote #8

is there any sub models limit? I have 50 sub models and cant compile crash milkshape 3d. Do you have another program to compile?

Last edited by fakenik; 06-18-2020 at 12:46.
fakenik is offline
Reply


Thread Tools
Display Modes

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:10.


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