Skip to content

Commit

Permalink
refactor the buy menu to facilitate all weapons
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefanos Kalantzis committed Jun 18, 2017
1 parent 31afa66 commit 8234320
Show file tree
Hide file tree
Showing 11 changed files with 172 additions and 56 deletions.
24 changes: 17 additions & 7 deletions 01-autoexec.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,23 @@ con_enable 1
echo Loading Config... (1/2);

// ########## Load External Configs ##########################################################################################
exec my/02-performance.cfg
exec my/03-hud.cfg
exec my/04-viewmodels.cfg
exec my/05-crosshairs.cfg
exec my/06-binds.cfg
exec my/07-misc.cfg
exec my/08-buy-menu.cfg
alias exec-performance "exec my/10-performance.cfg"
alias exec-hud "exec my/20-hud.cfg"
alias exec-viewmodels "exec my/30-viewmodels.cfg"
alias exec-crosshairs "exec my/40-crosshairs.cfg"
alias exec-binds "exec my/50-binds.cfg"
alias exec-misc "exec my/60-misc.cfg"
alias exec-buy-menu "exec my/70-buy-menu.cfg"
alias exec-default-binds "exec my/71-default-binds.cfg"
alias exec-buy-binds "exec my/72-buy-binds.cfg"

exec-performance
exec-hud
exec-viewmodels
exec-crosshairs
exec-binds
exec-misc
exec-buy-menu

echo Config Loaded! (2/2);

42 changes: 0 additions & 42 deletions 08-buy-menu.cfg

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 1 addition & 7 deletions 06-binds.cfg → 50-binds.cfg
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
// disable HUD fading
unbind i;
exec-default-binds

// mouse
bind mwheeldown +jump;
bind mwheelup +jump;
bind mouse5 lastinv;
bind mouse4 +voicerecord;

// some defaults
bind tab +score;
bind f +lookatweapon;
bind e +use;

// clear blood / ned / bullet decals. Helps with FPS and visibility.
bind shift "+speed;r_cleardecals";
bind ctrl "+duck;r_cleardecals";
Expand Down
File renamed without changes.
46 changes: 46 additions & 0 deletions 70-buy-menu.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
alias +shop exec-buy-binds;
alias -shop exec-default-binds;

bind alt +shop;

// neds
alias buy-molly "buy incgrenade";
alias buy-decoy "buy decoy";
alias buy-flash "buy flashbang";
alias buy-he "buy hegrenade";
alias buy-smoke "buy smokegrenade";

// pistols
alias buy-duels "buy elite";
alias buy-p250 "buy p250";
alias buy-tec9_57 "buy tec9; buy fiveseven; buy cz75a";
alias buy-deagle "buy deagle; buy revolver";

// heavy
alias buy-nova "buy nova";
alias buy-xm1014 "buy xm1014";
alias buy-mag7 "buy mag7; buy sawedoff";
alias buy-m249 "buy m249";
alias buy-negev "buy negev";

// smgs
alias buy-mp9_mac10 "buy mp9; buy mac10";
alias buy-mp7 "buy mp7";
alias buy-ump45 "buy ump45";
alias buy-p90 "buy p90";
alias buy-bizon "buy bizon";

// rifles
alias buy-m4_ak "buy m4a1; buy m4a1_silencer; buy ak47";
alias buy-famas_galil "buy famas; buy galil";
alias buy-aug_sg "buy aug; buy sg553";
alias buy-awp "buy awp";
alias buy-scout "buy ssg08";
alias buy-scar "buy scar20; buy g3sg1";

// gear
alias buy-vest "buy vest";
alias buy-helmet "buy vesthelm";
alias buy-zeus "buy taser";
alias buy-defuser "buy defuser";

46 changes: 46 additions & 0 deletions 71-default-binds.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
bind tab +score;

// row 1
bind 0 slot10;
bind 1 slot1;
bind 2 slot2;
bind 3 slot3;
bind 4 slot4;
bind 5 slot5;
bind 6 slot6;
bind 7 slot7;
bind 8 slot8;
bind 9 slot9;

// row 2
// q: is overwritten in 50-binds.cfg
bind w +forward;
bind e +use;
bind r +reload;
bind t +spray_menu;
bind y messagemode;
bind u messagemode2;
unbind i; // not CSGO default, disable HUD fading.
unbind o;
unbind p;

// row 3
bind a +moveleft;
bind s +back;
bind d +moveright;
bind f +lookatweapon;
bind g drop;
// h: is overwritten in 50-binds.cfg
unbind j;
unbind k; // this is the CSGO default for toggling voicerecord.
unbind l;

// row 4
bind z radio1;
bind x radio2;
bind c radio3;
unbind v;
bind b buymenu;
unbind n;
bind m teammenu;

62 changes: 62 additions & 0 deletions 72-buy-binds.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// ,---,---,---,---,---,---,---,---,---,---,---,---,---,-------,
// | | 1 | 2 | 3 | 4 | 5 | | 7 | 8 | 9 | 0 | | | |
// |---'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-----|
// | | | W | E | R | T | Y | U | I | O | P | | | |
// |-----',--',--',--',--',--',--',--',--',--',--',--',--'| |
// | | A | S | D | | | | J | K | | | | | |
// |----,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'---'----|
// | | | Z | X | C | | B | N | M | | | | |
// |----'-,-',--'--,'---'---'---'---'---'---'-,-'---',--,------|
// | | | alt | | | | |
// '------' '-----'--------------------------'------' '------'

// layout groups
// 1-5 : neds (1, 2, 3, 4, 5)
// 7-0 : gear (7, 8, 9, 0)
// w-t : pistols (w, e, r, t)
// y-p : heavy (y, u, i, o, p)
// j-k, b-m : smg (j, k && b, n, m)
// a-d, z-c : rifles (a, s, d && z, x, c)

// neds
bind 1 buy-molly;
bind 2 buy-decoy;
bind 3 buy-flash;
bind 4 buy-he;
bind 5 buy-smoke;

// gear
bind 7 buy-vest
bind 8 buy-helmet
bind 9 buy-zeus
bind 0 buy-defuser

// pistols
bind w buy-duels;
bind e buy-p250;
bind r buy-tec9_57;
bind t buy-deagle;

// heavy
bind y buy-nova;
bind u buy-xm1014;
bind i buy-mag7;
bind o buy-m249;
bind p buy-negev;

// smg
bind j buy-mp9_mac10;
bind k buy-mp7;
bind b buy-ump45;
bind n buy-p90;
bind m buy-bizon;


// rifles
bind a buy-m4_ak;
bind s buy-famas_galil;
bind d buy-aug_sg;
bind z buy-scout";
bind x buy-awp;
bind c buy-scar;

0 comments on commit 8234320

Please sign in to comment.