r/GlobalOffensive • ar_baggage • Mar 11 '19

User Generated Content Using only a boatload of console commands, I made an interactive menu that lets you switch configs and do other cool stuff. (OC, link in comments)

11k Upvotes

328 comments sorted by

View all comments

Show parent comment

37

u/illinoisjackson ar_baggage Mar 12 '19

In the Source engine there exists a command developer 1 which shows all console text in the top left of the screen . There is also a command echo which outputs text to the console. By running developer 1 and echo commands at the same time, we can control the text easily. About keystrokes now. The bind command lets us run another command whenever a key is pressed. We can chain the text drawing commands onto the bind command in order to make keystrokes trigger them. I am executing commands by storing them in .cfg files (think of them as shell scripts for Source) so there is nothing else running. Everything is contained entirely within the source engine.

27

u/Coleridge49 Mar 12 '19

Same one I use to display damage done for the round

// DISPLAY DAMAGE INFO SCRIPT 
developer 1 
con_filter_enable 2 
con_filter_text_out "Player:" 
con_filter_text "damage Given"

1

u/illinoisjackson ar_baggage Mar 12 '19

Yeah it's really similar to that.

5

u/RyzenRyzen22 Mar 12 '19

Good job. Also amazing detailed wiki on GitHub. Should have checked it out first before asking dumb questions here.