Insurgency: Modern Infantry Combat

Insurgency: Modern Infantry Combat

Not enough ratings
Binding Different Smoke Grenade Colors To Individual Keys
By Wolf
This guide will show you how to set up your number pad so you can instantly have a different color smoke simply by pressing a different keyboard button.

It can be useful at times to confuse the enemy, i.e. mimic their colors or make them think you have more then one player in an area by throwing different color smokes, and on some bright maps you may find the Yellow smoke better, etc etc.
   
Award
Favorite
Favorited
Unfavorite
Installation
Note: Special thanks to http://insurgencymod.blogspot.com/2011/11/insurgency-smoke-script.html and to http://inslegacy.wordpress.com/2008/07/03/custom-smoke-grenade-colors/

This guide is an improved version which has also been optimized so you'll have fewer commands to enter into console.

1. Start Insurgency

2. Enable the developers console in Options > Keyboard > Advanced...

3. Press ~ to open the console

4. Enter this command to allow for custom colored smoke: ins_player_smokecolor 0

5. Copy and paste these commands into the console one at a time and press <Enter> for each

bind "KP_HOME" "ins_player_smokecolor_b 0;ins_player_smokecolor_g 1;ins_player_smokecolor_r 1;echo YELLOW Smoke"

bind "KP_UPARROW" "ins_player_smokecolor_b 1;ins_player_smokecolor_g 1;ins_player_smokecolor_r 1;echo WHITE Smoke"

bind "KP_PGUP" "ins_player_smokecolor_b 0.6;ins_player_smokecolor_g 0.6;ins_player_smokecolor_r 0.6;echo DEFAULT Smoke"

bind "KP_LEFTARROW" "ins_player_smokecolor_b 1;ins_player_smokecolor_g 0;ins_player_smokecolor_r 0;echo BLUE Smoke"

bind "KP_5" "ins_player_smokecolor_b 1;ins_player_smokecolor_g 1;ins_player_smokecolor_r 0;echo CYAN Smoke"

bind "KP_RIGHTARROW" "ins_player_smokecolor_b 0;ins_player_smokecolor_g 1;ins_player_smokecolor_r 0;echo GREEN"

bind "KP_END" "ins_player_smokecolor_b 0;ins_player_smokecolor_g 0;ins_player_smokecolor_r 0;echo BLACK Smoke"

bind "KP_DOWNARROW" "ins_player_smokecolor_b 0;ins_player_smokecolor_g 0;ins_player_smokecolor_r 1;echo RED Smoke"

bind "KP_PGDN" "ins_player_smokecolor_b 1;ins_player_smokecolor_g 0;ins_player_smokecolor_r 1;echo PURPLE Smoke"
Usage
1. Join an Insurgency server

2. Press a numpad key.

3. Pull pin.

4. Extend arm.

5. Throw smoke.

6. Enjoy the colors :P
Tips
Should you ever forget what key does what color, and you want to know before you throw your only smoke, simply press the desired numpad key and check console to see what color your smoke will appear as. You'll see something like "YELLOW Smoke", "GREEN Smoke", etc logged in the console somewhere near the bottom.
How It Works
Insurgency allows you to change the color of your smoke with these commands:

ins_player_smokecolor_r <number>
ins_player_smokecolor_g <number>
ins_player_smokecolor_b <number>

The <number> must be in the range of [0, 1] and is otherwise a RGB color model. What this means is you take any RGB color, which are typically in the range of [0, 255] and divide each color component by 255.

For example the RGB for the color orange is 255, 127, 0

so the insurgency version is 255/255 = 1, 127/255 = 0.49803921568, 0/255 = 0

and then issue these commands:

ins_player_smokecolor 0 <-- to enable custom smoke colors.

ins_player_smokecolor_r 1
ins_player_smokecolor_g 0.49803921568
ins_player_smokecolor_b 0

and the next smoke grenade you throw will be orange.

Note: Insurgency is weird in the sense that on some maps the colors are darker then on others, and some colors tend to go black as the smoke builds up. If this is a problem for you then try increasing the RGB values to be closer to 255 and they should get brighter, i.e. instead of 127 for the green color component of orange, maybe try 140.
5 Comments
JOSEFO Mx 12 Mar, 2018 @ 4:10pm 
just this part works :

ins_player_smokecolor 0 <-- to enable custom smoke colors.

ins_player_smokecolor_r 1
ins_player_smokecolor_g 0.49803921568
ins_player_smokecolor_b 0
theli 22 Dec, 2017 @ 11:33am 
i fix it
theli 22 Dec, 2017 @ 11:26am 
unknown kp_rightarrow
RasmusG5 5 Dec, 2015 @ 7:16am 
~console wont open can button chance
unknownow 23 Sep, 2013 @ 10:48am 
very good knowledge