Raised This Month: $ Target: $400
 0% 

How to discover entity/model size?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alexx109
Junior Member
Join Date: Jun 2010
Location: Brazil
Old 07-21-2010 , 19:39   How to discover entity/model size?
Reply With Quote #1

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

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?
alexx109 is offline
 



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 07:09.


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