////////////////////////////////////////////// // STEALTH MODE NVG script - Toggle/////////// ////////////////////////////////////////////// // generated by mr_fitz, do not moLLify // Binds: 1 // // place this file in your q3ut2 folder // // MUST INCLUDE THE LINE: // // exec nvg.cfg // // in your autoexec.cfg in q3ut2 folder to activate or cut and paste all // the uncommented lines in this script into your autoexec.cfg file ////////////////////////////////////////////// // DESCRIPTION//////////////////////////////// ////////////////////////////////////////////// //this script switches to NVG "optimized mode" by selecting: //night vision goggles; //adjusting gamma to rather dark so NVG contrast is good; //a white crosshair for contrast against the green NVG and dark players ////////////////////////////////////////////// //THESE MAKE IT TOGGLE THINGS SIMULTANEOUSLY// ////////////////////////////////////////////// set sm_00 "set sm_f vstr sm_01; r_gamma 1.500000; ut_itemuse; cg_crosshairRGB 0_1_0_1; ut_echo STEALTH MODE OFF" set sm_01 "set sm_f vstr sm_00; r_gamma 0.500000; ut_itemuse; cg_crosshairRGB 1_1_1_1; ut_echo STEALTH MODE ON" vstr sm_00 /////////////////////////////////////////////// //HERE IS WHERE YOU BIND IT ALL TO ONE KEY///// /////////////////////////////////////////////// bind X "vstr sm_f" //delete key toggles "stealth mode" on and off /////////////////////////////////////////////// //STUFF YOU NEED TO KNOW/////////////////////// /////////////////////////////////////////////// //item_use cannot be scripted to operate specifically on the NVGs //thus, pressing the DEL key (the bind above)will turn on whatever item is "current", e.g. silencer - that may be why your gun is so loud... //you may have situations where the settings get all backwards/out of sync //SOLUTION - a) before using the DEL key (in this case) make sure the NVG is the "current" item; //b) after each death when stealth mode was ON - toggle it OFF while you wait to respawn to keep the toggle in sync //c) if b) doesn't work and toggle gets out of sync, press your usual item_use key to resynchronize //you may have to fiddle with the gamma settings and the crosshair to produce settings that work best with your video card //the crosshair turns green when off - what? yours were something else, why? - see crosshair reference below to substitute cg_crosshairRGB 0_1_0_1 in the line above to the colour you prefer. ////////////////////////////////////////////// //VARIABLES OF INTEREST - see next too//////// ////////////////////////////////////////////// //bind y gear "GLAASUR" //DE, m4,no secondary, no grenades, nvg (slot 5), silencer, vest //if you already have 'y' bound to some other function choose a different key - this is a useful bind to switch to your nvg weaponset //r_gamma "0.500000" //dark screen //ut_itemuse //uses the "current" item - gear cvar slot 5 is default "current" //cg_crosshairRGB "1_1_1_1" //white crosshair //these are for refernce only - as you can see they are commented out /////////////////////////////////////////////// //Gear Selection Guide///////////////////////// //for reference only - from utscripts.net////// /////////////////////////////////////////////// //WHY? cause it is useful to have a bind that sets //you up with your "NVG gear" - because if you pick //NVG you will have to give up another favourite item. // //1:sidarm // F=Berreta // G=DE //2:primary // Z=sr-8 // N=PSg1 // M=G36 // K=HK69 // L=M4 //3:secondary // H=spas // I=MP5 // j=UMP //4:grenades // A=nothing // O=HE // P=Flash // Q=Smoke //5:items // A=nothing // X=ammo // V=laser // U=silance // T=medkit // S=NVG // W=helm // R=vest //6:items // A=nothing // X=ammo // V=laser // U=silance // T=medkit // S=NVG // W=helm // R=vest //7:items // A=nothing // X=ammo // V=laser // U=silance // T=medkit // S=NVG // W=helm // R=vest //Examples: //Baretta/G36/Spas/Kelvar/Silancer = FMHARUA //DE/m4/mp5/Kelvar/Medi = GLIARTA //DE/SR-8/Ump/Kelvar/Helmet = GZJARWA //Baretta/G36/mp5/Kelvar/Smoke = FMIQRAA ///////////////////////////////////////////////// //CROSSHAIR COLOUR REFERENCE GUIDE/////////////// ///////////////////////////////////////////////// //1_1_1_1 = WHITE //0_0_0_1 = BLACK //1_0_0_1 = RED //0_1_0_1 = GREEN //0_0_1_1 = BLUE //what is the fourth place holder for - not certain, "visible" yes or no perhaps