Ulysses

General => Developers Corner => Topic started by: kropp on February 26, 2012, 05:50:09 PM

Title: Lua Question
Post by: kropp on February 26, 2012, 05:50:09 PM
I am wondering how you could remove all Knock Back from guns.

I would like it so when you shoot a person it does not knock them back at all if you know how to help please reply below.
Title: Re: Lua Question
Post by: Digital Spit on February 26, 2012, 06:53:36 PM
What guns are you using?

-MadCows
-CS:S weapons
etc,. It depends on that.
Title: Re: Lua Question
Post by: Digital Spit on February 26, 2012, 09:22:40 PM
Assuming you are using Mad Cow the way to get to recoil would be something like this.

Code: [Select]
/garrysmod/addons/Mad Cows Weapons/lua/weapons/weapon_mad_357/

Then open the shared.lua on the 12th line will be something that says:

Code: [Select]
SWEP.Primary.Recoil = 6
Obviously to turn recoil down... set the number lower than 6
Title: Re: Lua Question
Post by: MrPresident on February 27, 2012, 08:13:22 AM
He's not talking about recoil. He wants to stop the person being hit from getting knocked back when they get hit.
Title: Re: Lua Question
Post by: Digital Spit on February 27, 2012, 11:20:25 AM
Oh laugh out loud, he even says "knock back" I don't know why I thought of recoil
Title: Re: Lua Question
Post by: kropp on February 27, 2012, 05:46:54 PM
Its happened a lot.

These are normal css weapons used in perp Btw.