Garry's Mod

Garry's Mod

[TFA] Quick Knife [Insurgency Knives]
36 条留言
IEatSand 2024 年 1 月 25 日 上午 9:21 
@caedes frequents reddit fr
MrPoker 2021 年 9 月 3 日 上午 4:15 
[[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 2021 年 9 月 3 日 上午 4:09 
I agree with the person below me
g 2021 年 6 月 24 日 上午 7:03 
@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 2021 年 6 月 1 日 下午 5:22 
caedes shut the fuck up and stop being a bitch were all human mistakes happen so fuck off
WoodenAiden 2021 年 4 月 1 日 上午 12:14 
@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  [作者] 2020 年 12 月 2 日 上午 1:47 
I will take your advice and use it accordingly in the future
Solis 2020 年 11 月 26 日 下午 6:34 
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  [作者] 2020 年 11 月 26 日 下午 2:40 
Glad you found what you were looking for ^-^
Solis 2020 年 11 月 25 日 下午 5:54 
-_- 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  [作者] 2020 年 10 月 1 日 上午 6:25 
Got me there @Caedes. Join the Discord http://discord.thelegendofwolf.com and let's start a search
Solis 2020 年 9 月 30 日 下午 7:37 
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  [作者] 2020 年 9 月 30 日 上午 2:50 
I highly doubt it was from an addon.
Woflje  [作者] 2020 年 9 月 30 日 上午 2:47 
Cannot help you with that @Caedes.
Solis 2020 年 9 月 28 日 下午 9:01 
Please post the original picture this was before you edited it or find which addon its from.
Woflje  [作者] 2019 年 9 月 9 日 上午 5:03 
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 2019 年 9 月 5 日 下午 1:55 
It occured on every use.
Woflje  [作者] 2019 年 9 月 5 日 下午 12:24 
@Bread, does this occur more often? Also after switching from a few weapons?
Woflje  [作者] 2019 年 9 月 5 日 下午 12:23 
@ShykeHz, sorry, I pulled the image from google, I don't know if it's from a game or addon
bre 2019 年 9 月 5 日 上午 5:59 
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.
Catgirlbebop 2019 年 1 月 29 日 上午 3:07 
What's the kninfe in the picture above?
Woflje  [作者] 2018 年 7 月 3 日 上午 3:58 
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 2018 年 7 月 2 日 下午 3:45 
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  [作者] 2018 年 5 月 19 日 上午 1:45 
Never heard of it. Do you mean to say that mod includes the same kind of quickknife idea?
datæ 2018 年 5 月 18 日 下午 3:06 
what
SeverinNyx 2018 年 5 月 18 日 下午 2:45 
I Just Realized This Is From The Unreal Tournament Killing Floor Mod Right?
Duck(bro) 2018 年 5 月 16 日 上午 2:45 
Jaaa! TATATATATATATATATATATATATATATATATATATATATATATATATATATATATA
MattMX 2018 年 5 月 12 日 下午 2:36 
Love it
Woflje  [作者] 2018 年 5 月 11 日 上午 2:34 
Thankyou! I missed out on the GetString() part.
I will update it soon.
datæ 2018 年 5 月 10 日 下午 6:43 
"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
Count Dooky 2018 年 5 月 9 日 上午 6:29 
alright
Woflje  [作者] 2018 年 5 月 9 日 上午 3:14 
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.
Count Dooky 2018 年 5 月 8 日 下午 5:25 
I can't bind that key, how can i do it?
Woflje  [作者] 2018 年 5 月 7 日 上午 11:37 
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 2018 年 5 月 6 日 下午 12:57 
[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 2018 年 5 月 6 日 下午 12:40 
der be errors already