How to discover entity/model size?
Hello!
When I spawn entities with models I always wonder what size (mins and maxs) should i set it so no one can be able to pass throught it by usual ways... There's any way to discover the model size to use with entity_set_size? Or should I just go on tryin' 'til i get a better result :x I've tried with absmin and absmax, but it obviously didn't worked, cause absmin and absmax are origin[i] + mins[i] -1 and origin[i] + maxs[i] + 1 or something like that, and when we spawn an entity, maxs and mins are 0.00000 (all of them >.>), so, this is not a way... The actual solution I got was making a plugin to measure the distance between 2 points horizontally (so i can divide it by 2 to get the mins and maxs 0 and 1) and vertically (to get the mins and max 2)... Althought this does OK, i actually feel that this is not the correct way, or at least not the simplest way to measure the mins and maxs needed... Does anyone knows a simplier way to do that? |
Re: How to discover entity/model size?
Quote:
Open the model with model viewer, dump model info into txt file and see there hitboxes sizes. You have to do some math with that... |
Re: How to discover entity/model size?
Well i get things like this:
Code:
|
| All times are GMT -4. The time now is 07:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.