Quick knife code?

C++ Got ya down? Half-Life 2 Coding Related.
Post Reply
punkrock1246
Polygon
Polygon
Posts: 20
Joined: Thu Jan 17, 2008 11:31 pm

Quick knife code?

Post by punkrock1246 »

I was wondering if someone could make me a quick knife code for C:SS.
For exampleI have a Creative Fatal1ty gaming mouse and it has a third mouse button on the top. I was wondering if i could get a script so that when i press that third mouse button it will instantly switch to my knife, stab and then switch back to my gun.
My PC (Built by me.):
Sagitta Gaming Case
HIS ATI HD 3850 Graphics card.
AMD 5200+ Processer
Western Digital Hard drive.
ECS A770M-A Motherboard
2 Gig Ram (soon to be 4)
skidz
Obsidian Gold
Obsidian Gold
Posts: 3228
Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:

Post by skidz »

Not sure how to do that myself, w0rf0x knows a fair amount about console scripts.
ScarT^
Vertex
Vertex
Posts: 6
Joined: Sat Jun 30, 2007 1:53 pm
Contact:

Post by ScarT^ »

Pretty simple

Code: Select all

bind "<key>" "slot 3; wait; wait; wait; +attack; wait; wait; wait; slot 1;"
Didn't bother to test this ingame, but if it doesn't attack, add more waits after "slot 3", if it doesn't change back after "+attack;" add more waits after that ;)
Post Reply