Hi all. How can I resize player collision box. Default box size is x:16.0 y:16.0 z:72.0
I need to set it to smaller without model resizing, only collision box.
This is need to player could come closer to the wall (or any other world object).
I tried to set these values in entity
PreThink,
PreThinkPost,
Think,
ThinkPost,
PostThink,
PostThinkPost, and in
OnGameFrame forward, but no result.
Code:
Member: m_vecMins (offset 8) (type vector) (bits 0) (NoScale)
Member: m_vecMaxs (offset 20) (type vector) (bits 0) (NoScale)
Member: m_nSurroundType (offset 42) (type integer) (bits 3) (Unsigned)
Member: m_vecSpecifiedSurroundingMins (offset 44) (type vector) (bits 0) (NoScale)
Member: m_vecSpecifiedSurroundingMaxs (offset 56) (type vector) (bits 0) (NoScale)
Code:
enum SurroundingBoundsType_t
{
USE_OBB_COLLISION_BOUNDS = 0,
USE_BEST_COLLISION_BOUNDS, // Always use the best bounds (most expensive)
USE_HITBOXES,
USE_SPECIFIED_BOUNDS,
USE_GAME_CODE,
USE_ROTATION_EXPANDED_BOUNDS,
USE_COLLISION_BOUNDS_NEVER_VPHYSICS,
USE_ROTATION_EXPANDED_SEQUENCE_BOUNDS,
SURROUNDING_TYPE_BIT_COUNT = 3
};
Code:
SetEntProp(client, Prop_Send, "m_nSurroundType", 3);
SetEntPropVector(client, Prop_Send, "m_vecSpecifiedSurroundingMins", NULL_VECTOR);
SetEntPropVector(client, Prop_Send, "m_vecSpecifiedSurroundingMaxs", NULL_VECTOR);
SetEntPropVector(client, Prop_Send, "m_vecMins", NULL_VECTOR);
SetEntPropVector(client, Prop_Send, "m_vecMaxs", NULL_VECTOR);
What am I doing wrong?