AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Rotation ent (https://forums.alliedmods.net/showthread.php?t=325337)

fakenik 06-17-2020 08:20

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

CrazY. 06-17-2020 08:57

Re: Rotation ent
 
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

fakenik 06-17-2020 14:24

Re: Rotation ent
 
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 ? :/

CrazY. 06-17-2020 15:28

Re: Rotation ent
 
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
https://i.imgur.com/RMM8wE2.jpg

condoriano90 06-17-2020 16:35

Re: Rotation ent
 
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!

fakenik 06-17-2020 16:41

Re: Rotation ent
 
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.

CrazY. 06-17-2020 18:05

Re: Rotation ent
 
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!

fakenik 06-18-2020 12:45

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


All times are GMT -4. The time now is 14:46.

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