ULX

Author Topic: Lua Question  (Read 2870 times)

0 Members and 1 Guest are viewing this topic.

Offline kropp

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Lua Question
« 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.

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
Re: Lua Question
« Reply #1 on: February 26, 2012, 06:53:36 PM »
What guns are you using?

-MadCows
-CS:S weapons
etc,. It depends on that.
« Last Edit: February 26, 2012, 06:57:49 PM by Digital Spit »

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
Re: Lua Question
« Reply #2 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

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Lua Question
« Reply #3 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.

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
Re: Lua Question
« Reply #4 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

Offline kropp

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: Lua Question
« Reply #5 on: February 27, 2012, 05:46:54 PM »
Its happened a lot.

These are normal css weapons used in perp Btw.