Quake3: bind 2 weapon on 1 swapping key

Here is how it works:
//======================
//FOUR WEAPON KEY FOR 8 WEAPONS
//======================
set wgroupareset "set w_groupb vstr w_groupb1; set w_groupc vstr w_groupc1;set w_groupd vstr w_groupd1"
set wgroupbreset "set w_groupa vstr w_groupa1; set w_groupc vstr w_groupc1;set w_groupd vstr w_groupd1"
set wgroupcreset "set w_groupa vstr w_groupa1;set w_groupb vstr w_groupb1;set w_groupd vstr w_groupd1"
set wgroupdreset "set w_groupa vstr w_groupa1;set w_groupb vstr w_groupb1; set w_groupc vstr w_groupc1"
set w_groupa1 "weapon 5;weapon 9; set w_groupa vstr w_groupa2; vstr wgroupareset" // BFG
set w_groupa2 "weapon 9;weapon 5; set w_groupa vstr w_groupa1; vstr wgroupareset" // Rocket Launcher
set w_groupb1 "weapon 4;weapon 8; set w_groupb vstr w_groupb2; vstr wgroupbreset" // Plasmagun
set w_groupb2 "weapon 8;weapon 4; set w_groupb vstr w_groupb1; vstr wgroupbreset" // Grenade Launcher
set w_groupc1 "weapon 1;weapon 3; set w_groupc vstr w_groupc2; vstr wgroupcreset" // Shotgun
set w_groupc2 "weapon 3;weapon 1; set w_groupc vstr w_groupc1; vstr wgroupcreset" // Fist
set w_groupd1 "weapon 2;weapon 6; set w_groupd vstr w_groupd2; vstr wgroupdreset" // Lightening Gun
set w_groupd2 "weapon 6;weapon 2; set w_groupd vstr w_groupd1; vstr wgroupdreset" // Machine Gun
// Initialization
set w_groupa vstr w_groupa1; set w_groupb vstr w_groupb1; set w_groupc vstr w_groupc1;set w_groupd vstr w_groupd1
And then, bind your weapon keys onto these macro:
//===============
//weapon bindings
//===============
bind MOUSE2 "weapon 6"
bind j "vstr w_groupd;cg_fov 125;cg_drawgun 0"
bind SHIFT "weapon 7;cg_fov 125;cg_drawgun 0"
bind , "weapon 1;cg_fov 125;cg_drawgun 1"
bind ] "weapon 7;+zoom;cg_drawgun 0"
bind p "vstr w_groupb;cg_fov 125;cg_drawgun 0"
bind i "vstr w_groupc;cg_fov 125;cg_drawgun 1"
bind ENTER "vstr w_groupa;cg_fov 125;cg_drawgun 0"

0 comments:

Post a Comment

| More

Twitter Updates