Determine a model size
Hello,
How could I determine the size of a model. I need to create an entity and set it's size as big as the model. So far I found this stock: PHP Code:
|
Re: Determine a model size
You can't (in most cases). Set the size by trial and error.
|
Re: Determine a model size
How could I get the model size from the .qc file or smd's? Should I use milkshape 3d?
|
Re: Determine a model size
You can define box size in your qc file. Though I never tried it out. You can check it here
https://the303.org/tutorials/gold_qc.html The qc command is $bbox and you can retrieve the values with this function https://www.amxmodx.org/api/fakemeta...delBoundingBox I hope that's what you want to achieve |
Re: Determine a model size
Thank you, but it didn't worked, it prints only 0.0000 at any vector. Found this function: GetModelCollisionBox() which seems to be deleted from 1.9.0+.
Finally, found out that if I set the $flags 512 in .qc file, it will bound the model's hitboxes automatically. Or this is what I found after some debugging. Post: https://forums.alliedmods.net/showpo...64&postcount=2 |
Re: Determine a model size
Quote:
There is min/max data there iirc, there are 2 coordinate position was swapped (so the order shown there is not x y z) |
Re: Determine a model size
Quote:
|
| All times are GMT -4. The time now is 02:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.