• Shotgun SWEP help
    5 replies, posted
I've been wanting to make a working Shotgun swep with the M9K base(Yes i know its not the best, I just like making SWEPs for fun and sometimes I make packs) but i've been having a problem with one. I made a shotgun and it showed up in game. It fired, but it somehow played the eject animation( as in the action opening, its a double barrel shotgun) and again for the second shot. Then when I go to reload it plays the eject animation and stays there, It won't load the shells at all. I could really use some help! I will post my code and anything else if people need it.
How could you possibly mess that up using m9k
[QUOTE=BFG9000;43992909]How could you possibly mess that up using m9k[/QUOTE] That's what I'm trying to figure out if I messed up anywhere. If you want to look at my code I can post both the shared.lua for the SWEP and the shotgun base
The model you are using probbably has different animations from the other one you got the code from. If you could upload the models somewhere i might be able to decompile it and post the animation list. Also upload your code to pastebin, like that i can see if the problem is what i think it is.
Models via Mediafire: [url]https://www.mediafire.com/?a9gl4xqkt11qubi[/url]
Update: Ok let me make my explanation more clear: So i am in Gmod right now, I spawned my shotgun, i fired one shot, then the reloading animation plays: (the action is opened, the empty shells fly out and the new ones are put in then the action closes) but I still have one bullet left, there is no actual reload, just the animation playing itself. Then when I fire the second shot and press reload the shells eject and then it wont load the new shells or anything, if I click my mouse the animation still stays frozen and the hl2 shotgun pump sound is heard. If I press reload again the same thing happens. Someone please just help me! It's stressing me out that I can't fix this!
Sorry, you need to Log In to post a reply to this thread.