• Gmod - is there any way to shrink the size of the 1st person model / swep?
    5 replies, posted
Hi First screenshot is with [lua]lua_run Entity(1):SetFOV(115,0) [/lua] so a FOV of 115 [url]http://s29.postimg.org/8pwvx6bef/2016_02_03_00005.jpg[/url] As you can see the gravitygun extends out and looks silly. I asked on here how to fix this and was recommended to change the fov of a swep. So i downloaded a suitable swep and changed the fov in shared.lua [lua]SWEP.ViewModelFOV = 20[/lua] [url]http://s11.postimg.org/6ot0qff0z/2016_02_03_00006.jpg[/url] This moved it back but the problem is when viewed through an oculus rift dk2 it looks huge, out of proportion. On a 2d monitor the second screenshot probably looks ok whereas through a rift it looks massive. I think in traditional fps games played on a 2d monitor the player model's size is exaggerated but in VR this is not needed. So can i shrink it somehow? Scale it down? Any advice will be much appreciated.
[url]https://wiki.garrysmod.com/page/Entity/SetModelScale[/url] May or may not work with view models
Look into the SWEP Construction Kit on the workshop. There he has some methods of shrinking viewmodel parts. To shrink the whole you'd obviously shrink all the parts
^^ I think SetModelScale will change my model height and width, it's only the model width that needs changing. I've had a quick look at the swep construction kit, it might do it. Also found [url]https://github.com/CapsAdmin/pac3[/url] this might be useful. Thanks for the suggestions.
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/WEAPON/GetViewModelPosition]WEAPON/GetViewModelPosition[/url] You can set the FOV really high and bring the viewmodel back with GetViewModelPosition to make it look normal again This may also come in handy [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/WEAPON/CalcViewModelView]WEAPON/CalcViewModelView[/url]
[QUOTE=arustusername;49670774]^^ I think SetModelScale will change my model height and width, it's only the model width that needs changing. I've had a quick look at the swep construction kit, it might do it. Also found [url]https://github.com/CapsAdmin/pac3[/url] this might be useful. Thanks for the suggestions.[/QUOTE] PAC won't be useful without making a tool to export PACs to a format usable in code, which I've tried and it's a pain. What I do instead of shrinking it if I were to make it not visible, is that I would [url=https://github.com/LUModder/FWP/blob/master/lua/weapons/weapon_fwp_dualak.lua#L88]set the viewmodel to an invisible texture[/url] and then make ClientsideModels for the new model. If that's not what you want, still use PostDrawViewModel and just do vm:SetModelScale(sizeyouwant). If you use hands, it won't mess with the hands.
Sorry, you need to Log In to post a reply to this thread.