General > Developers Corner
Lua Question
kropp:
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.
Digital Spit:
What guns are you using?
-MadCows
-CS:S weapons
etc,. It depends on that.
Digital Spit:
Assuming you are using Mad Cow the way to get to recoil would be something like this.
--- Code: --- /garrysmod/addons/Mad Cows Weapons/lua/weapons/weapon_mad_357/
--- End code ---
Then open the shared.lua on the 12th line will be something that says:
--- Code: --- SWEP.Primary.Recoil = 6
--- End code ---
Obviously to turn recoil down... set the number lower than 6
MrPresident:
He's not talking about recoil. He wants to stop the person being hit from getting knocked back when they get hit.
Digital Spit:
Oh laugh out loud, he even says "knock back" I don't know why I thought of recoil
Navigation
[0] Message Index
[#] Next page
Go to full version