How can I find this info in the console?

How can I find this info in the console? - People Walking Inside Well-lit Building

Is there a way to know in the console when you die and when a round starts or ends? Can I get info for shots fired, hit, and headshots on a single round?



Best Answer

Yes, of course you can. There are certain keyword that appear in the console when you shoot/kill/hit and enemy player. For this, you can use filters in the console. Here is a guide for it.

Where to Enter Commands: config/autoexec/valve.rc or console

Commands:

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

To create a bind for quick access:

bind "Key" "displaydamage"

//Displaydamage - Switch Script by 3st
alias displaydamage "displaydamage_off"
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; clear; alias displaydamage displaydamage_on"

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

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.




Pictures about "How can I find this info in the console?"

How can I find this info in the console? - Person Holding Can With Blue and White Knit Sweater
How can I find this info in the console? - Close-Up Photograph of a Can
How can I find this info in the console? - Pour yourself a cold one



Where can I view console log?

Steps to Open the Console Log in Google ChromeBy default, the Inspect will open the "Elements" tab in the Developer Tools. Click on the "Console" tab which is to the right of "Elements". Now you can see the Console and any output that has been written to the Console log.

What is %s in console log?

Description. String substitution tokens, "%s", can be used in console.log, console.info, console.debug, console.warn and console.error.

How do I check my console output?

Look for Developer Tools or Simply Tools menu in all major browsers. If you are using Google Chrome the press Cntrl+shift+j to see console. In Firefox, press Ctrl+Shift+I and click on Console to view the console on Firefox. Show activity on this post.

What is console info in JavaScript?

The console.info() method outputs an informational message to the Web console. In Firefox, a small "i" icon is displayed next to these items in the Web console's log. Note: This feature is available in Web Workers.



There's more to CONSOLE than .log( ) | Things you didn't know console could do!!




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Darya Sannikova, Anna Shvets, Tima Miroshnichenko, Brett Jordan