Login to ZARP
|
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: Warning: Spoiler! [ Click to expand ][ Click to hide ] 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) |
|
Login or register to post a reply.
|
Not sure about some of the weapons and stuff from cases but the gluon and mini2 work perfectly fine with it as well. The only weapon I've tested that breaks with the command is the handcannon. My suggestion would be to only allow it for m9k models to prevent models/textures that weren't meant to be on the left from breaking entirely
|
|
Login or register to post a reply.
|
orbadoc wrote:
Zorri wrote:
Not sure about some of the weapons and stuff from cases but the gluon and mini2 work perfectly fine with it as well. The only weapon I've tested that breaks with the command is the handcannon. My suggestion would be to only allow it for m9k models to prevent models/textures that weren't meant to be on the left from breaking entirely Is it really worth the effort though, additionally, I dont think making a timer that iterates through your weapons every second is the most efficient thing to do eitheriterate through every weapon on a timer :point_right: -100 fps |
|
Login or register to post a reply.
|
Lyra wrote:
orbadoc wrote:
literally no framerate drop compared with and without the addon and I'm not saying to implement it the exact way the addon from the workshop does, I'm simply giving the suggestion with the source of how the addon works. All there needs to be is a function to change true to false since every single weapon for m9k has a shared.lua file where you can edit the line SWEP.ViewModelFlip = true, falseZorri wrote:
Not sure about some of the weapons and stuff from cases but the gluon and mini2 work perfectly fine with it as well. The only weapon I've tested that breaks with the command is the handcannon. My suggestion would be to only allow it for m9k models to prevent models/textures that weren't meant to be on the left from breaking entirely Is it really worth the effort though, additionally, I dont think making a timer that iterates through your weapons every second is the most efficient thing to do eitheriterate through every weapon on a timer :point_right: -100 fps The command could either be a console command or an option under the settings tab |
|
Login or register to post a reply.
|