• Alternative to Entity:SetModelScale() ?
    4 replies, posted
So I've been trying to scale up the size of certain players, with Entity:SetModelScale() and Player:SetHull(). I then realized that players were getting stuck in each other extremely often, when players of different sizes were colliding with each other. I suspect it is due to the hitboxes piercing each other in a weird fashion but really I have no clue. I then find out that the method Entity:SetModelScale() itself resizes the hitbox as well and I think this causes problems. [URL="https://github.com/Facepunch/garrysmod-issues/issues/2193"]https://github.com/Facepunch/garrysmod-issues/issues/2193[/URL] So Is there any way to achieve something similar to Entity:SetModelScale() without actually resizing the hitbox? PS. I would like something that isn't too hacky or resource intensive, but I'm just looking for any possible replacement at this stage..
PAC3 replaced their player SetModelScale usage with [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/EnableMatrix]Entity:EnableMatrix[/url]: [url]https://github.com/CapsAdmin/pac3/blob/f867d93adb4a235b2a9a9e26a65220c8d570cae7/lua/pac3/core/client/util.lua#L596-L648[/url]
Cool! I did see that the PAC3 developer on the github page said something about using a different method, but I wasn't sure what would do the trick. Do you know if this breaks weapon hitbox detection on the playermodels or does SetHull manage to scale that without problems alone?
[QUOTE=Jacob9909;52294886]Cool! I did see that the PAC3 developer on the github page said something about using a different method, but I wasn't sure what would do the trick. Do you know if this breaks weapon hitbox detection on the playermodels or does SetHull manage to scale that without problems alone?[/QUOTE] Weapon hitboxes are not affected by the player's iirc
Alright. I guess this is solved then
Sorry, you need to Log In to post a reply to this thread.