Garry's Mod

Garry's Mod

SWEP Construction Kit
Ere376 10 Nov, 2015 @ 9:39am
Invisible weapons?
So I currently run a TTT server (as well as some other not so popular servers) and took some time to code a custom weapon. I've been coding with lua since I was 12 (i am currently 19) with roblox and have been coding with g-lua for a little over 2 years, so I may not be the best coder but I'm no novice either.

Anyways that's a little off topic, I have noticed that when you remove a weapon coded with SCK integrated it makes all vanilla weapons invisible, it happens on the server, and in single player, when you hit the "drop weapon" button all the other guns you have on you become partially invisible, missing barrels and other things... at first I thought it had to do with the fact that my weapon set the pistol bones to 0.10 in size, but it even happens with just the regular SCK tool without any changes.... is there any way to fix this?

I considered just making actual c_model's and w_model's with a model program but that in my opinion is EXTREMELY time consuming and I don't want to have to learn a modeling program and try to do this. At the same time all my players have been complaining about the broken weapons because of this one weapon breaking them. I really want to use SCK to create some more weapons in the future... anyone have a solution?

*update*
So I found a small work-around, I made the weapons "un-dropable" and replaced all "swep:Remove()" with "self.Owner:StripWeapon( self:GetClass() )" but it means all weapons that i use this for will have to be "un-dropable" which I do not like..
Last edited by Ere376; 10 Nov, 2015 @ 10:22am
< >
Showing 1-3 of 3 comments
AziZgaming 31 May, 2017 @ 9:50am 
Re subscribe then, This addon is retarded!
AziZgaming 31 May, 2017 @ 9:50am 
ret*ard*ed
{-§RG§-} ravo 5 Mar, 2019 @ 10:41pm 
https://wiki.garrysmod.com/page/WEAPON/GetViewModelPosition

I had the same problem. I added an example here in the wiki. You need to add a hook to draw out the aim positions... Maybe you have to do it manually (carfull) so it get's into view!
Last edited by {-§RG§-} ravo; 5 Mar, 2019 @ 10:42pm
< >
Showing 1-3 of 3 comments
Per page: 1530 50