Sometimes on my Garry's Mod Dark RP server a player will have a random chance when he pulls out his gun that it's hold type is wrong (It's usually changed to the "Normal" hold type, but I've seen it in the "camera" and "melee" hold types too). Here is what the glitch looks like on my server: [img]http://i.imgur.com/o4D23xh.jpg?1[/img]
Here is a video of it: [url]https://www.youtube.com/watch?v=8ldMSYGxsYk[/url]
I've tried to change the addon I was using, but that didn't work. I also tried changing the hold types through the autorun files, but that also didn't work.
Here is a link to the current weapons mod I'm using: [url]https://www.dropbox.com/sh/r8zk1j8in7dj6mw/AADMg37sKarbomgQIavy8oOca?dl=0[/url]
If you need anymore information I'd be glad to give you it.
Change SetWeaponHoldType in the base to SetHoldType, and change the holdtype by changing SWEP.HoldType's value in each individual SWEP file. Don't do it through the autorun files.
[QUOTE=code_gs;49437721]Change SetWeaponHoldType in the base to SetHoldType, and change the holdtype by changing SWEP.HoldType's value in each individual SWEP file. Don't do it through the autorun files.[/QUOTE]
Would the base be located in C:\gmod\garrysmod\addons\cs s\lua\weapons\ptp_scoped_base
I also have 2 other bases (ptp_shotgun_base and ptp_weapon_base)
And what do you mean by change the SetWeaponHoldType to SetHoldType? Are you suggesting that every time the line of code that says: [lua] self:SetWeaponHoldType(self.HoldType) [/lua]
I change it to: [lua] self:SetWeaponHoldType(SetHoldType) [/lua]
No. Change self:SetWeaponHoldType( self.HoldType ) to self:SetHoldType( self.HoldType )
Sorry, you need to Log In to post a reply to this thread.