Raised This Month: $51 Target: $400
 12% 

[CS:GO] Player collision box resizing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
StSatan
Senior Member
Join Date: Apr 2010
Old 02-25-2018 , 17:21   [CS:GO] Player collision box resizing
Reply With Quote #1

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?
StSatan is offline
FroGeX
Senior Member
Join Date: Aug 2020
Old 01-24-2021 , 04:03   Re: [CS:GO] Player collision box resizing
Reply With Quote #2

Look this https://forums.alliedmods.net/showthread.php?t=305748
FroGeX is offline
Reply



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 12:53.


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