Garry's Mod

Garry's Mod

540 ratings
Dynamic Player Height
6
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
46.531 KB
Nov 22 @ 8:25am
Dec 9 @ 9:28am
17 Change Notes ( view )

Subscribe to download
Dynamic Player Height

Description
Yes, this is another addon that adjusts the player's camera height to match the head bone, but this addon, unlike others, has some additions and fixes.

Pros:
  • Fully adapted for multiplayer, features prediction.
  • Height tries to adjust to low ceiling height if the player is crouching.
  • Does not have the air-crouching bug, and the player's camera doesn't fly up/down.
  • Has smooth adaptation for stairs in "Realtime" mode.
  • Should not (at least for me) conflict with Outfitter/Wardrobe/PAC3 and other modifications that change character models.
  • Does not cause the "CUtlRBTree overflow" error.
  • Written using crutches.

Cons:
  • arc9 tpik incompatible. contact the arc9 developers to fix this, because it's not my issue




Commands
(can be found in Utilities > Dynamic Player Height > Settings):

Client-side:
  • dph_cl_dynamicmode < 0 - 2 > - Select dynamic player height mode (currently 2 modes available: Realtime and Classic, 0 - to select no mode)
  • dph_cl_camerasmoothness - < 0.00 - 1.00 > - Player height smoothness in Realtime mode
  • dph_cl_additionaluppos < -16 - 16 > - Additional camera height
  • dph_cl_smoothstairs_realtime_mode < 0 - 1 > - Enable smooth adaptation for stairs

Server-side:
  • dph_sv_dynamicheight < 0 - 1 > - Enable dynamic player height
  • dph_sv_dynamicmode < 0 - 2 > - Force a dynamic player height mode for players
  • dph_sv_dynamichull < 0 - 1 > - Enable modification of the player's "hull" (box) used for collision
  • dph_sv_vent_compat < 0 - 1 > - Enable compatibility with vents and similar holes that have narrow space
  • dph_sv_xy_bounds < 0 - 1 > - Change the player's "hull" along X/Y axes
  • dph_sv_trust_client_data < 0 - 1 > - Enable trust in client data (if disabled, height limits are noticeably narrowed, and player hull modification is disabled)

Shared:
  • dph_reload - Reload addon
94 Comments
NODRVZ2005 Dec 9 @ 7:54pm 
Still not fixed for me, the props still go flying when i noclip into them
Juhopi[FIN] Dec 9 @ 10:18am 
Indeed it is. Thank you!
КамазОтходов05  [author] Dec 9 @ 9:22am 
@NODRVZ2005, @Juhopi[FIN] should be fixed
Eql Dec 6 @ 8:15pm 
also doesn't work with the Player Tumbler addon in multiplayer for some reason, works fine otherwise
Eql Dec 6 @ 5:14pm 
In the addon settings if you untick "trust client updates for hull size and view offset" you'll stop exploding when you crouch as a small player model.
Juhopi[FIN] Dec 6 @ 2:41pm 
Seems like when the hull size is lower that 16 or 15 on the X and/or Y axis, the camera gets pushed to ground level. So making the minimum size 16 would fix the issue.
NODRVZ2005 Dec 3 @ 12:00pm 
Found a issue, when using this addon i can still collide with props when nocliping.
[IGC]BOOM Dec 1 @ 2:18pm 
In terms of what people are saying with ARC9, this addon has the same incompatibility with ARC9 as Dynamic Height 2. ARC9 does have an internal fix for it which does work for this addon (I tested it) in the link below (also line 158 of cl_tpik.lua in ARC9 if the link gets blocked), the issue being that ARC9 only handles the case of DH2, not this addon.

https://github.com/HaodongMo/ARC-9/blob/main/lua/weapons/arc9_base/cl_tpik.lua#L158
GattoNeroRay Dec 1 @ 1:55pm 
i die immediately if i'm a small m&m or crouch as a small character
Apanda Nov 30 @ 11:21am 
Удивительно, что люди делают...
У меня, лишь, получилось поставить позицию камере основываясь на длине костей.