Counter-Strike 2

Counter-Strike 2

View Stats:
PoiZon Mar 30, 2024 @ 9:35am
command for weapon return
Is there any command that can be used for key bind to return any current weapon/item back instead of opening buy menu?
For ex- I have AK purchased by mistake. Instead of going to buy menu, i want to return using a key.
Last edited by PoiZon; Mar 30, 2024 @ 9:36am
< >
Showing 1-9 of 9 comments
T I U N A I Mar 30, 2024 @ 9:58am 
f
onemeow Mar 30, 2024 @ 10:00am 
No
vee Mar 30, 2024 @ 10:10am 
You can make a "refund all" bind that sells everything or assuming you have F5 bound to buy a M4 you could make Ctrl+F5 a "sell back M4" bind but you can't make a "sell weapon I'm currently holding" bind
vee Mar 30, 2024 @ 11:17am 
fiddled with it a little and I came up with a workaround that allows you to hold the ALT key and then refund whatever gun or utility is in slot1-5 by pressing the corresponding key.

// REFUND WEAPON alias "refund_0" "sellback 32; sellback 33; sellback 35" //sell equipment alias "refund_1" "sellback 2; sellback 3; sellback 4; sellback 5; sellback 6" //sell pistols alias "refund_2" "sellback 8; sellback 9; sellback 10; sellback 11; sellback 12" //sell mid-tier alias "refund_3" "sellback 14; sellback 15; sellback 16; sellback 17; sellback 18" //sell rifles alias "refund_4" "sellback 26; sellback 27; sellback 28; sellback 29; sellback 30" //sell grenades alias "refund_5" "sellback 34" //sell taser alias +modify_sell "exec modify_refund" alias -modify_sell "exec modify_default" bind "alt" "+modify_sell"
add that to your autoexec and create 2 new config files in the cfg folder (...\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg)

Name them:   modify_refund.cfg   and   modify_default.cfg

modify_refund.cfg content:
bind "1" "refund_2; refund_3" bind "2" "refund_1" bind "3" "refund_5" bind "4" "refund_4" bind "5" "refund_0"

modify_default.cfg content:
bind "1" "slot2; slot1" bind "2" "slot2" bind "3" "slot3" bind "4" "slot4" bind "5" "slot5"
Last edited by vee; Mar 31, 2024 @ 1:45am
PoiZon Nov 4, 2024 @ 6:07am 
Originally posted by vee:
fiddled with it a little and I came up with a workaround that allows you to hold the ALT key and then refund whatever gun or utility is in slot1-5 by pressing the corresponding key.

// REFUND WEAPON alias "refund_0" "sellback 32; sellback 33; sellback 35" //sell equipment alias "refund_1" "sellback 2; sellback 3; sellback 4; sellback 5; sellback 6" //sell pistols alias "refund_2" "sellback 8; sellback 9; sellback 10; sellback 11; sellback 12" //sell mid-tier alias "refund_3" "sellback 14; sellback 15; sellback 16; sellback 17; sellback 18" //sell rifles alias "refund_4" "sellback 26; sellback 27; sellback 28; sellback 29; sellback 30" //sell grenades alias "refund_5" "sellback 34" //sell taser alias +modify_sell "exec modify_refund" alias -modify_sell "exec modify_default" bind "alt" "+modify_sell"
add that to your autoexec and create 2 new config files in the cfg folder (...\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg)

Name them:   modify_refund.cfg   and   modify_default.cfg

modify_refund.cfg content:
bind "1" "refund_2; refund_3" bind "2" "refund_1" bind "3" "refund_5" bind "4" "refund_4" bind "5" "refund_0"

modify_default.cfg content:
bind "1" "slot2; slot1" bind "2" "slot2" bind "3" "slot3" bind "4" "slot4" bind "5" "slot5"
That’s really helpful. Thanks a lot
vee Mar 4 @ 10:49am 
Originally posted by Keev:
refunding any weapon rebinds cycle grenades to 4, how can i prevent that
you change the bind "4" in the modify_default.cfg to whatever else you want on 4 other than cycle grenades
Kawi Mar 4 @ 10:50am 
Originally posted by vee:
You can make a "refund all" bind that sells everything or assuming you have F5 bound to buy a M4 you could make Ctrl+F5 a "sell back M4" bind but you can't make a "sell weapon I'm currently holding" bind
FR ?
mam1aS Mar 4 @ 10:55am 
Bind Q “quit ak-47”
Try it
Keev Mar 4 @ 6:32pm 
Originally posted by vee:
Originally posted by Keev:
refunding any weapon rebinds cycle grenades to 4, how can i prevent that
you change the bind "4" in the modify_default.cfg to whatever else you want on 4 other than cycle grenades
worked, thanks
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Mar 30, 2024 @ 9:35am
Posts: 9