PostOutdatedBlack Ops 2 Rapid Knife Script

Posts 115 of 22 · Page 1 of 2
Black Ops 2 Rapid Knife Script
Basic AHK script that allows you to knife as fast as a tac knife, with any weapon.
Since it uses a double-switch it can also be used to cancel your reload.

Code:
#SingleInstance
~g::Suspend
return

f::
send, {v down}
send, {v up}
sleep, 170
send, {g down}
sleep, 150
send, {1 down}
send, {1 up}
send, {g up}
sleep, 85
send, {1 down}
send, {1 up}
send, {1 down}
send, {1 up}

return

exit
KEYS
G - activate/deactivate (this way, if you use your grenade the knife will work normally. Just remember to re-activate it before you spawn)
F - rapid knife (Change f:: in the script to whatever your regular knife key is. Also, it's automatic, you can hold it down and knife continuously)

IN-GAME BINDINGS
V - knife (I recommend changing your in-game binding to this and then changing the f:: in the script to your regular knife key)
G - lethal equipment (you can also use it with most tactical equipment if you change the script)
1 - switch weapon

NOTE: WILL NOT WORK WITH TOMAHAWKS OR BOUNCING BETTIES
I'm not really sure why, maybe somebody with more experience could help me out here.

HOW TO USE
1. Download AutoHotKey if you haven't already: AutoHotkey
2. Copy and paste script into notepad
3. Edit keys as desired
4. Save as .ahk file (ex. rapidknife.ahk)
5. Run
6. Equip lethal
7. Good luck!

WHAT IT DOES
for those curious:
1. knife
2. wait for knife to hit
3. cancel knife ending animation with lethal equipment
4. cancel lethal equipment by switching weapon
5. cancel weapon raise animation with double-switch

This is the first macro I wrote myself, it's pretty simple but hey, gotta start somewhere. Hope you guys like it.
Seems like a useful hack, thanks for sharing!
Just an idea - Post a video for those who don't read. But this looks really cool. Nice find!
In-game, it should look something like this:


(THIS IS NOT MY VIDEO)

People have made similar scripts for previous CoD games, however my script is faster because it also cancels the weapon raise animation with a double-switch.
I have my melee as E. Would I just change the f:: to e::

?
Quote Originally Posted by Prime75 View Post
I have my melee as E. Would I just change the f:: to e::

?
no the "v" to "e"
Quote Originally Posted by ytoof View Post
no the "v" to "e"
Hah. I just noticed that when I hit submit. I'm retarded. Thanks.
Actually if you normally knife with E (i.e. your in-game binding is E), I would recommend changing your in-game binding to V and then change f:: to e:: so you can keep your normal key. Also remember to change g:: to whatever your grenade key is.
Quote Originally Posted by phale View Post
Actually if you normally knife with E (i.e. your in-game binding is E), I would recommend changing your in-game binding to V and then change f:: to e:: so you can keep your normal key. Also remember to change g:: to whatever your grenade key is.
Works much better. Thank you very much
This looks really useful! Thanks for the upload.
Thanks for this upload mate,
Hmm doesn't work for me. I can't cancel the lethal animation.
Are you using tomahawks or bouncing betties? If not, try increasing the sleep 150 or sleep 85. Also, if you're running at low framerates or have other input lag problems, they might interfere with the macro's timing.
Thanks a lot! It's fantastic! And can there be a scrypt for reload or something lika this?
Posts 115 of 22 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?