Server Name: SSRP/DarkRP
Suggestion Title: cl_righthand command
How would it benefit the server: Allow users to have the preference of right handed or left handed view models
Potential Issues/Exploits: Buggy Animations/Textures on certain weapons
Additional notes: There is already a steam workshop addon that allows you to have left handed m9k models and in the m9k packs shared.lua there is a setting to flip the viewmodel
Source for viewmodel flip function from steam workshop addon:
local rh = CreateClientConVar("cl_righthand", 1, true, false)
timer.Create("RightHand", 1, 0, function()
for k,v in pairs(ents.GetAll()) do
if !rh:GetBool() then
if (v:IsWeapon() and !v.VMchanged ) then
if v.ViewModelFlip then v.ViewModelFlip = false
else v.ViewModelFlip = true
end
v.VMchanged = true
end
else
if (v:IsWeapon() and v.VMchanged ) then
if v.ViewModelFlip then v.ViewModelFlip = false
else v.ViewModelFlip = true
end
v.VMchanged = false
end
end
end
end)