Garry's Mod

Garry's Mod

SWEP Construction Kit
Ere376 2015 年 11 月 10 日 上午 9:39
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..
最后由 Ere376 编辑于; 2015 年 11 月 10 日 上午 10:22
< >
正在显示第 1 - 3 条,共 3 条留言
AziZgaming 2017 年 5 月 31 日 上午 9:50 
Re subscribe then, This addon is retarded!
AziZgaming 2017 年 5 月 31 日 上午 9:50 
ret*ard*ed
{-§RG§-} ravo 2019 年 3 月 5 日 下午 10:41 
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!
最后由 {-§RG§-} ravo 编辑于; 2019 年 3 月 5 日 下午 10:42
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50