AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   trace_hull's Hull Sizes (https://forums.alliedmods.net/showthread.php?t=143065)

meTaLiCroSS 11-13-2010 20:15

trace_hull's Hull Sizes
 
I saw in func_break a piece of code that it took me attention to it...

PHP Code:

        switch( bbox )
        {
        case 
0:    // Point
            
UTIL_SetSize(pevVector(-8, -8, -8), Vector(888));
            break;

        case 
2// Big Hull!?!?    !!!BUGBUG Figure out what this hull really is
            
UTIL_SetSize(pevVEC_DUCK_HULL_MIN*2VEC_DUCK_HULL_MAX*2);
            break;

        case 
3// Player duck
            
UTIL_SetSize(pevVEC_DUCK_HULL_MINVEC_DUCK_HULL_MAX);
            break;

        default:
        case 
1// Player
            
UTIL_SetSize(pevVEC_HULL_MINVEC_HULL_MAX);
            break;
        } 

These sizes are the Hull sizes?

Also, I found these values on util.h:

PHP Code:

#define VEC_HULL_MIN        Vector(-16, -16, -36)
#define VEC_HULL_MAX        Vector( 16,  16,  36)
#define VEC_DUCK_HULL_MIN    Vector(-16, -16, -18 )
#define VEC_DUCK_HULL_MAX    Vector( 16,  16,  18) 


ConnorMcLeod 11-14-2010 02:30

Re: trace_hull's Hull Sizes
 
Correct cs ducked players sizes are :
Code:

new const Float:VEC_DUCK_HULL_MIN[3]        = {-16.0, -16.0, -18.0 }
new const Float:VEC_DUCK_HULL_MAX[3]        = { 16.0,  16.0,  32.0 }

About match with hull size, i have no idea but that makes sense.

Code:

typedef enum { point_hull=0, human_hull=1, large_hull=2, head_hull=3 };


All times are GMT -4. The time now is 11:18.

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