Any way to fix the whole every gun holds like a pistol thing??
3 replies, posted
I'm really sorry if you guys have gotten this question alot, but it's been bothering me because i've been trying to do a machinima but each weapon/swep pack I download (except GDC weapons) I hold like a pistol. I know this has been caused by a recent update, but does anyone know how I would go about fixing this?! There has to be some sort of way around it if the creator of GDC weapons was able to do it...
Thanks in advance
Yes, I know how to fix it.
Go into the shared.lua file of the SWEP.
Find the SetWeaponHoldType hook, and change it to call shared.
Like, if it says "if SERVER then self:SetWeaponHoldType("normal") end", change it to, "self:SetWeaponHoldType("normal").
Get it?
[QUOTE=Drew P. Richard;22717444]Yes, I know how to fix it.
Go into the shared.lua file of the SWEP.
Find the SetWeaponHoldType hook, and change it to call shared.
Like, if it says "if SERVER then self:SetWeaponHoldType("normal") end", change it to, "self:SetWeaponHoldType("normal").
Get it?[/QUOTE]
Yeah, I do. i'm going to try this out now.
[editline]10:07PM[/editline]
This is what it says:
-- Read the weapon_real_base if you really want to know what each action does
if (SERVER) then
AddCSLuaFile("shared.lua")
SWEP.HoldType = "shotgun"
end
So what you're saying is, I should change it to:
-- Read the weapon_real_base if you really want to know what each action does
AddCSLuaFile("shared.lua")
SWEP.HoldType = "shotgun"
end
?
BTW this is the G36C from KCGEORGE'S swep pack.
The only thing you need to take out is: SWEP.HoldType = "shotgun". The AddCSLuaFile function is serverside.
Sorry, you need to Log In to post a reply to this thread.