• Make the gun little up
    5 replies, posted
My gun is on the legs and not on the hands How can i fix it?
[url]http://www.facepunch.com/threads/1038849-2-Questions-(How-to-work-with-Chrome-Turn-on-light)?p=26770577&viewfull=1#post26770577[/url]
[QUOTE=zzaacckk;26780778][url]http://www.facepunch.com/threads/1038849-2-Questions-(How-to-work-with-Chrome-Turn-on-light)?p=26770577&viewfull=1#post26770577[/url][/QUOTE] His question is not related to that thread which he posted. [b][url=http://wiki.garrysmod.com/?title=Weapon.SetWeaponHoldType]Weapon.SetWeaponHoldType [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] is now shared instead of serverside only, therefore you need to move it out of any if (SERVER) statements.
Well it's not that I already did it ar2
I hate to repost it everytime,you can "fix" the crotch gun in this way. Only clientside,screw around with HoldPos and HoldAng,credits to AndrewMcWatters [lua] SWEP.HoldPos=Vector(0,0,0) SWEP.HoldAng=Vector(0,0,0) function SWEP:DrawWorldModel() if !IsValid(self:GetOwner()) then self:DrawModel(); return end if ( !self.m_hHands ) then self.m_hHands = self:GetOwner():LookupAttachment( "anim_attachment_RH" ); end local hand = self:GetOwner():GetAttachment( self.m_hHands ); if !hand then return end local offset = hand.Ang:Right() * self.HoldPos.x + hand.Ang:Forward() * self.HoldPos.y + hand.Ang:Up() * self.HoldPos.z; hand.Ang:RotateAroundAxis( hand.Ang:Right(), self.HoldAng.x ); hand.Ang:RotateAroundAxis( hand.Ang:Forward(), self.HoldAng.y ); hand.Ang:RotateAroundAxis( hand.Ang:Up(), self.HoldAng.z ); self:SetRenderOrigin( hand.Pos + offset ) self:SetRenderAngles( hand.Ang ) self:DrawModel(); end [/lua]
[url]http://www.facepunch.com/threads/851426-How-to-fix-CSS-world-models-for-HL2-Gmod-and-Smod.[/url]
Sorry, you need to Log In to post a reply to this thread.