Search
Username:
Password:
Register or Reset Password
Remove the ads!
Ultimate weapon changing
Added by...
Brought to you by...
Author(s): xxxj2kxxx
Category: CS:S > Action Scripts
Notes/Usage Instructions:

//=============================
//Ultimate weapon changing by J2K
//=============================


This script will bind mouse4 to get out your knife when held, and when released, it will cycle from pistol to primary weapon. This sets up your quickchange.

It gets out your pistol when crouched or walking, then switches to your primary weapon when mouse4 is released. This avoids the sheathing noise of the knife when you're sneaking around.
Script Code:
//Weapon categories setup
alias qrifle "use weapon_m4a1; use weapon_ak47; use weapon_galil; use weapon_sg552; use weapon_aug; use weapon_famas; use weapon_m249;"
alias qshotgun "use weapon_m3; use weapon_xm1014;"
alias qsniper "use weapon_awp; use weapon_scout; use weapon_sg550; use weapon_g3sg1;"
alias qsmg "use weapon_mp5navy; use weapon_mac10; use weapon_ump45; use weapon_p90; use weapon_tmp;"
alias qpist "use weapon_deagle; use weapon_usp; use weapon_glock; use weapon_p228; use weapon_fiveseven; use weapon_elite;"
alias qknife "use weapon_knife;"
alias qprim "qrifle; qsniper; qsmg; qshotgun;"

//The weapon changing
alias +run "qknife;"
alias -run "qpist; qprim;"
alias +run2 "qpist;"
alias -run2 "qprim;"
alias +mode2 "+speed; bind mouse4 +run2;"
alias -mode2 "-speed; bind mouse4 +run;"
alias +mode3 "+duck; bind mouse4 +run2;"
alias -mode3 "-duck; bind mouse4 +run;"

//The necessary binds for script
bind mouse4 +run
bind shift +mode2
bind ctrl +mode3
Added: 2 years ago
Feedback (5)
.
3.14159265358979323846…Y2M
Posted 2 months ago
This script, I do not really see the point of. I believe that it is awkward to have all of these binds to do this when you can do it yourself with default controls after a bit of practice, however you have once again presented it in a way that I must say is amazing. Very nice work on the html, the comments, and the aliases.
.
Scripting & Tutorial MasterY2M
Posted 1 year ago
Yeah it used to be glock18, and i think "buy glock18" still works in css... strange that they changed it. Thanks for pointing it out, i fixed it now.
GrimReaper .
Fear the ReaperY2M
Posted 1 year ago
It just didn't select pistols.
I got it working now. But the script seems fine, and there were no errors in console.

//Weapon categories setup
alias qpist "slot2"
alias qknife "slot1"
alias qprim "slot3"


EDIT:
I always used Glock as a pistol, and it didn't work because it's "glock" not "glock18". And the console gives no error if use command is wrong.
OK now, 10.
.
Scripting & Tutorial MasterY2M
Posted 1 year ago
Shift and Control change what mouse4 does gr1m, while holding shift and control, pressing mouse4 will only go to pistol, then back to primary when released. This saves you giving away your position with the sheathing sound of the knife while trying to be quiet.

Any chance you could up that 8 to a 10 now i clarified that?
GrimReaper .
Fear the ReaperY2M
Posted 1 year ago
MOUSE4 only brings the knife out. SHIFT and CTRL don't seem to do anything, other than their default function.
Add Feedback
Provide constructive feedback. What is "constructive"?
You must login or register to access this!
Assessment
The community's verdict.
User Rating [+]
9.6/10
bScore
9.58/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This script in a nutshell...
Impractical & Detailed
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.
Brought to you by...
Sabotage Studios
Originality, Creativity, Simplicity
Membership: On Request
Primary Skills: ?
Inception: 2 years ago
Vote for Studio
Like this script? Vote Sabotage Studios for one or more monthly awards.
You must login or register to access this!
Related Scripts
Want more? Find related scripts.