[Bolt]Throwable Knives 
27 comments Simple script, not done before. As you expect (title is really obvious), with this script you will be able to throw your knife and damage or kill your enemy.
If friendly fire is off, you won't damage yourself and your teammates. If ff is on, you will.
You can change damage per hit. 75 by default.
You can change if your knife is stripped, when you throw it. It's true by default (you'll lose your knife).
What Yates said. I tested and weapon won't be stripped from player, if it's his only weapon.
I get inspirated by
Livia's object method of treating players(
Extending native functions) and I made similar one. This script needs my ObjectPlayer.lua to work!
How to install this script? Just unpack zip file to your sys/lua/autorun folder




I get inspirated by



How to install this script? Just unpack zip file to your sys/lua/autorun folder

edited 3×, last 19.12.13 10:12:17 pm

Comments
27 commentsLog in!
You need to log in to be able to write comments!Log in
@
Jedediastwo: On 49 line,
attack on

if p:Weapon() == 50 then
, change the value ID of the weapon to 69. Furthermore you must also replace the attack2
hook with 
OnAttack2
function since machetes don't have a special secondary attack unlike knives. Thank you, guys. If you have suggestions or ideas for similar script that doesn't change gameplay so much, pm me or post it here.
Does it instantly get trown after clicking or is there a delay? If there is no delay, you might want to add at least a 0.3 to 0.5sec because it will be too strong imo, you just trow swap to deagle and you get a 1 shot kill.