Garry's Mod

Garry's Mod

[TFA] Quick Knife [Insurgency Knives]
36 Comments
IEatSand 25 Jan @ 9:21am 
@caedes frequents reddit fr
MrPoker 3 Sep, 2021 @ 4:15am 
[[TFA] Quick Knife [Insurgency Knives]] lua/autorun/server/quickknife.lua:51: attempt to index local 'ply' (a nil value)
1. lastWeapon - lua/autorun/server/quickknife.lua:51
2. unknown - lua/autorun/server/quickknife.lua:39

Timer Failed! [Simple][@lua/autorun/server/quickknife.lua (line 39)]
Also please update
MrPoker 3 Sep, 2021 @ 4:09am 
I agree with the person below me
tryna strike a chord 24 Jun, 2021 @ 7:03am 
@Caedes bruh this is a free workshop item for a video game ... chill man this aint like youre reviewing an apple iphone or something
Zombot 1 Jun, 2021 @ 5:22pm 
caedes shut the fuck up and stop being a bitch were all human mistakes happen so fuck off
WoodenAiden 1 Apr, 2021 @ 12:14am 
@Caedes Calm your ass down. Who cares that the knife was taken from CoD? You're just some loser behind a keyboard wishing you could get laid, my guy..
Woflje  [author] 2 Dec, 2020 @ 1:47am 
I will take your advice and use it accordingly in the future
Caedes 26 Nov, 2020 @ 6:34pm 
Now I wish I hadn't. And in the future, cite your references better. It's a matter of professionalism. And no. It's not something that's just nice to have. It's an obligation you have to those who use your product.
Woflje  [author] 26 Nov, 2020 @ 2:40pm 
Glad you found what you were looking for ^-^
Caedes 25 Nov, 2020 @ 5:54pm 
-_- So you actually took the knife model from @#$%ing "Call of Duty". A million first person shooters you could have used, and you chose the most overrated, uninspired one out there.
Woflje  [author] 1 Oct, 2020 @ 6:25am 
Got me there @Caedes. Join the Discord http://discord.thelegendofwolf.com and let's start a search
Caedes 30 Sep, 2020 @ 7:37pm 
YOU'RE the one who said it might be from an addon. So don't dismiss that as a theory. Next time, take better notes of where you get your source material.
Woflje  [author] 30 Sep, 2020 @ 2:50am 
I highly doubt it was from an addon.
Woflje  [author] 30 Sep, 2020 @ 2:47am 
Cannot help you with that @Caedes.
Caedes 28 Sep, 2020 @ 9:01pm 
Please post the original picture this was before you edited it or find which addon its from.
Woflje  [author] 9 Sep, 2019 @ 5:03am 
That's bad.. It's a bad code to begin with.
When I've a little bit more experience with lua, I might be able to improve it.
[bre] 5 Sep, 2019 @ 1:55pm 
It occured on every use.
Woflje  [author] 5 Sep, 2019 @ 12:24pm 
@Bread, does this occur more often? Also after switching from a few weapons?
Woflje  [author] 5 Sep, 2019 @ 12:23pm 
@ShykeHz, sorry, I pulled the image from google, I don't know if it's from a game or addon
[bre] 5 Sep, 2019 @ 5:59am 
I'm also getting script errors.

[Quick Knife [Insurgency Knives]] lua/autorun/server/quickknife.lua:51: attempt to index local 'ply' (a nil value)
1. lastWeapon - lua/autorun/server/quickknife.lua:51
2. unknown - lua/autorun/server/quickknife.lua:39

Timer Failed! [Simple][@lua/autorun/server/quickknife.lua (line 39)]


One button press, 60 fps, standing completely still in spawn.
Shyke 29 Jan, 2019 @ 3:07am 
What's the kninfe in the picture above?
Woflje  [author] 3 Jul, 2018 @ 3:58am 
I have adjusted the timers in the code to be very close to its actions.
Meaning the timer has a very narrow time frame for changing weapons.
One should always press the knife button only once.
This also happens when the game doesn't run smoothly.
Landfighter777 2 Jul, 2018 @ 3:45pm 
So I've been getting this weird bug when trying to use the knives:


[Quick Knife [Insurgency Knives]] lua/autorun/server/quickknife.lua:43: attempt to index global 'ply' (a nil value)
1. attack - lua/autorun/server/quickknife.lua:43
2. unknown - lua/autorun/server/quickknife.lua:37

Timer Failed! [Simple][@lua/autorun/server/quickknife.lua (line 37)]

[Quick Knife [Insurgency Knives]] lua/autorun/server/quickknife.lua:47: attempt to index global 'ply' (a nil value)
1. loose - lua/autorun/server/quickknife.lua:47
2. unknown - lua/autorun/server/quickknife.lua:38

Timer Failed! [Simple][@lua/autorun/server/quickknife.lua (line 38)]

[Quick Knife [Insurgency Knives]] lua/autorun/server/quickknife.lua:51: attempt to index local 'ply' (a nil value)
1. lastWeapon - lua/autorun/server/quickknife.lua:51
2. unknown - lua/autorun/server/quickknife.lua:39

Timer Failed! [Simple][@lua/autorun/server/quickknife.lua (line 39)]

I don't know what's fully causing it.
Woflje  [author] 19 May, 2018 @ 1:45am 
Never heard of it. Do you mean to say that mod includes the same kind of quickknife idea?
datæ 18 May, 2018 @ 3:06pm 
what
SeverinNyx 18 May, 2018 @ 2:45pm 
I Just Realized This Is From The Unreal Tournament Killing Floor Mod Right?
Duck(bro) 16 May, 2018 @ 2:45am 
Jaaa! TATATATATATATATATATATATATATATATATATATATATATATATATATATATATA
MattMX 12 May, 2018 @ 2:36pm 
Love it
Woflje  [author] 11 May, 2018 @ 2:34am 
Thankyou! I missed out on the GetString() part.
I will update it soon.
datæ 10 May, 2018 @ 6:43pm 
"Once I've found out how to put ConVars into the script you should be able to use any knife you want."
someconvarname = CreateConVar("qk_knife", "weapon_name" (or number), {FCVAR_ARCHIVE}, "Description)")

then you just make variable using someconvarname:GetString()

thats the manual way atleast, you can also use concommand.Add which creates new console command that runs a function, just make said function grab weapon class and do your thing from there
Nod for Ass 9 May, 2018 @ 6:29am 
alright
Woflje  [author] 9 May, 2018 @ 3:14am 
get in the console with ` (the key next to the 1)
Then type:

bind f Knife (mind the capital K)

You will lose your flashlight bind with this. Bind it with any other key.
Nod for Ass 8 May, 2018 @ 5:25pm 
I can't bind that key, how can i do it?
Woflje  [author] 7 May, 2018 @ 11:37am 
Hmm strange.. It works fine for me. I'll take a look after my exams.
This is the first time I actually scripted something from scratch >.<
Asura 6 May, 2018 @ 12:57pm 
[Quick Knife [Insurgency Knives]] lua/autorun/server/quickknife.lua:43: attempt to index global 'ply' (a nil value)
1. attack - lua/autorun/server/quickknife.lua:43
2. unknown - lua/autorun/server/quickknife.lua:37

Timer Failed! [Simple][@lua/autorun/server/quickknife.lua (line 37)]


[Quick Knife [Insurgency Knives]] lua/autorun/server/quickknife.lua:47: attempt to index global 'ply' (a nil value)
1. loose - lua/autorun/server/quickknife.lua:47
2. unknown - lua/autorun/server/quickknife.lua:38

Timer Failed! [Simple][@lua/autorun/server/quickknife.lua (line 38)]

[Quick Knife [Insurgency Knives]] lua/autorun/server/quickknife.lua:51: attempt to index local 'ply' (a nil value)
1. lastWeapon - lua/autorun/server/quickknife.lua:51
2. unknown - lua/autorun/server/quickknife.lua:39

Timer Failed! [Simple][@lua/autorun/server/quickknife.lua (line 39)]
Asura 6 May, 2018 @ 12:40pm 
der be errors already