Counter-Strike: Global Offensive

933 ratings
How to: Display Damage directly in game (without having to open console) - WORKS IN COMPETITIVE MATCHMAKING!
By 3st
In Global Offensive you are able to see the damage you dealt and received once you die by opening the console. In this guide I am going to show you how to display the damage information directly in game, right above your radar without having to open the console. I also will explain how it works and post a little script that enables you to switch it on and off.
Rate  
Favorite
Favorited
Unfavorite
What is this all about?
In Global Offensive you are able to see the damage you dealt and received once you die by opening the console. In this guide I am going to show you how to display the damage information directly in game, right above your radar without having to open the console. I also will explain how it works and post a little script that enables you to switch it on and off.

Preview of the final result:


How it's done
To show the damage you simply have to enter the following commands (all of them) into your config/autoexec/valve.rc or console:

The Commands

developer "1"
con_filter_text "Damage"
con_filter_text_out "Player:"
con_filter_enable "2"


How does it work?
It’s pretty easy!
Normally you would find all this damage related information in your console:



Now all we have to do is to display this information directly in game. To do so you could go the cheap way and use the "developer" command (enter 'developer "1"' to your console). It will work in terms of displaying the damage information in the top left corner of the screen right above the radar. However, there will be a lot of unnecessary information inside and outside of the console:



Therefore you have to use the “con_filter”-commands. They filter out the information regarding the damage dealt and received and get sure only those will be displayed outside the console:



The final result.
Switch Script
As I mentioned before setting "developer" to "1" will display a lot of unnecessary information inside and outside of your console (see screenshot #2 above). We already got rid of the information outside the console by using the con_filter-commands. However, there still are all kinds of awkward information inside the console, which can be rather annoying while working in it. The only workaround for this problem I could think of is to switch the damage display on and off.

To do so I created a little script. Feel free to use it:


bind "Key" "displaydamage"

//Displaydamage - Switch Script
alias displaydamage "displaydamage_on"
alias displaydamage_on "con_filter_text Damage; con_filter_text_out Player:; con_filter_enable 2; developer 1; alias displaydamage "displaydamage_off""
alias displaydamage_off "con_filter_enable 0; developer 0; alias displaydamage "displaydamage_on""


Just copy it into your *.cfg and replace "Key" with a key of your choice.

Note: Usually it will be sufficient to switch developer from 1 to 0 once you have set the remaining CVARs to the values above. Nevertheless, my solution here might come in handy if you use more than one con_filter.
Extra: Creating an autoexec.cfg
If you do not have an autoexec.cfg or valve.rc or any other way to execute scripts in game don't panic. You have two choices: If you do not want to use the switch script you can go the easy way and simply enter "The Commands" from above into your console in game.

If you want to use the script you will have to create an autoexec.cfg.

Step 1:
Go to your Windows desktop, click your right mouse button and create a new text file.

Step 2:
Open it and copy my script from above into it. Be sure to replace "Key" with a key of your choice. I myself use "KP_HOME" - it's the 7 on the keyboard's numpad.

Step 3:
Write "host_writeconfig" in the last row of your text file.

Once you did this your text file should look this way:



Step 4:
Save the text file as "autoexec.cfg". Use quotation marks ("") to get sure you don't end up with a autoexec.cfg.txt.

Step 5:
Copy your new autoexec.cfg to your Counter-Strike Global Offensive "cfg" directory. Depending on where you installed Steam this might be C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg.

That's it. You're done!
FAQ
Is this cheating?
No. It's just a script.

Will it work in Competitive Matchmaking?
Yes.

When will the damage be displayed?
It will be displayed once you are dead or the round is over.

Could this be made into a real time damage display?
No.

How do I remove the damage display?
Enter developer 0 into console. If you want to set all values back to how they were also enter:

con_filter_text ""
con_filter_text_out ""
con_filter_enable "0"


It's writting all my console informations and not only the damage. What did I do wrong?
Sounds like the con_filter commands are not set up right. Just check again if you set them to the values above. Should work then! :)

Is it possible to only display the damage given?
No Problem: You just have to set the con_filter_text to "Damage Given" instead of just "Damage". When you are using the script it has to be

alias displaydamage_on "con_filter_text Damage Given; con_filter_text_out Player:; con_filter_enable 2; developer 1; alias displaydamage "displaydamage_off""

- everything else stays the same. :)

Is there a way to move it from upper-left to another positon?
No.
Final Words
Have fun! And if you like this guide comment it and give it five stars. :)

You could also check out my recent Workshop contribution:


Nuke Protest Sticker
239 Comments
< >
Winged Kicker Jul 26 @ 2:23pm 
how do u turn it off
Jamiboy Jul 12 @ 11:53pm 
I'd like this to be automated that every round I die I receive the info. What is the autoexec.cfg line to have this automated every round. Also is there a way to add longer duration? Thanks, I'm loving it.
scarlet johanson™ Jul 12 @ 7:57pm 
how do i take it off?
Fairsky Jun 29 @ 6:04am 
@drunken militia: if you hit multiple enemies, only the one tht killed you will be displayed, and you can see only the damage you did to him. It's not that hard to understand, even for a noob like me.
PenGuiNNka <3 Jun 16 @ 2:03pm 
I can make sure that the damage is always displayed?
drunken militia Jun 14 @ 10:14am 
@3st i think, you can consider, did you hit him half or less, cause after death damage is displayed instantly. and that is a necessary info.
3st  [author] Jun 14 @ 7:31am 
@drunken militia: You can tell your teammates that the last enemy is low. This can win your team the game sometimes.
drunken militia Jun 14 @ 6:38am 
why do You need this anyway? what is the point of thinking what would'be if i would ... etc. If You are dead, You are dead, end of round. more and more useless idiotic tutorials
n 0 v a Jun 10 @ 3:33pm 
https://www.reddit.com/r/GlobalOffensive/comments/34opmp/2_very_useful_commands_for_your_exec/

That's where I got the bind part, apparently it works but I don't see how.
n 0 v a Jun 10 @ 3:32pm 
So there's no way to set it to 2 values at the same time? Maybe with a bind? (if so, I would bind it to MOUSE1"