Hey all,
So one of my SWEPs has a strange glitch where at 2 different points in the reload animation, the viewmodel will spaz out for 1 or 2 frames and then go back to normal.
I was wondering if there is a possible script fix for this, or is it a problem with the model and I'm hooped?
Thanks
What weapon model are you using? If it's a problem with the model, I can look into it.
[QUOTE=huntingrifle;47421949]What weapon model are you using? If it's a problem with the model, I can look into it.[/QUOTE]
It's an issue with the Anti-Material Rifle from this weapon/entity collection: [url]http://steamcommunity.com/sharedfiles/filedetails/?id=150666876[/url]
Here is a pastebin of the rifles shared.lua: [url]http://pastebin.com/UQx8RUX3[/url]
It's more likely than not that it's a model issue, as the Anti-Materiel Rifle was made using Counter-Strike:Source AWP animations, and those aren't exactly good animations.
I don't see anything wrong with the code either, so I'm quite confident that it's the model.
[QUOTE=huntingrifle;47422091]It's more likely than not that it's a model issue, as the Anti-Materiel Rifle was made using Counter-Strike:Source AWP animations, and those aren't exactly good animations.
I don't see anything wrong with the code either, so I'm quite confident that it's the model.[/QUOTE]
Is there anything I can do at all to get the weapon to at least animate smoothly? I don't care if I have to change the animations or anything, I'd just like it to not glitch out on the reload.
Doing some tests, will get back to you on this.
So the person who made the pack used a modified AWP model file, which I'm assuming is causing the errors. I can try to see if using the regular AWP model will work, but I'll only be able to test it around tonight.
[QUOTE=huntingrifle;47424930]So the person who made the pack used a modified AWP model file, which I'm assuming is causing the errors. I can try to see if using the regular AWP model will work, but I'll only be able to test it around tonight.[/QUOTE]
If you could do that I would hugely appreciate it, really.
Couldn't find time to do it myself, but change the v_model name from "v_epic_awp_ to "v_snip_awp", that should fix the issue.
This has nothing to do with the model, even if it was a custom model it would never cause that.
The problem is that the weapon is coded really badly for [URL="http://wiki.garrysmod.com/page/Prediction"]prediction[/URL], which makes it so the client sees one thing and the server another, thus causing the "reload stuttering".
This is usually caused by developers that only test their weapons in singleplayer or in multiplayer with a low ping.
[QUOTE=Jvs;47442470]This has nothing to do with the model, even if it was a custom model it would never cause that.
The problem is that the weapon is coded really badly for [URL="http://wiki.garrysmod.com/page/Prediction"]prediction[/URL], which makes it so the client sees one thing and the server another, thus causing the "reload stuttering".
This is usually caused by developers that only test their weapons in singleplayer or in multiplayer with a low ping.[/QUOTE]
Weird, this is happening in single player for me too. Do you have any suggestions? I'm a complete newbie when it comes to SWEPs but I can find my way around fixing it if you point me in the right direction.
Sorry, you need to Log In to post a reply to this thread.