Sharky's Netgraph Switcher

A Config Script for Team Fortress 2

Attention Gamer! We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Sharky! points.
  • Post: Give Sharky! your thoughts on this Script.
  • Vote: Help Sharky! win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Interested?

Sign up

Already a Bananite? Login

65 lines | 3 kb | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
net_graph 0
//net_graphheight
//net_graphmsecs
//net_graphpos
//net_graphproportionalfont
//net_graphshowinterp
//net_graphshowlatency
//net_graphsolid
//net_graphtext
//net_scale

//a guide on what all these commands do can be found here: https://developer.valvesoftware.com/wiki/TF2_Network_Graph
//I have left them commented out for the sake of not making your life any more complicated, but you can uncomment them if you'd like :)

clear
echo "WARNING:"
echo "Sharky's net_graph config is still in beta."
echo "Please report any problems to me at http://gamebanana.com/members/1518413"
echo ""
echo "================================================="
echo "Thank you for using Sharky's net_graph config."
echo "================================================="
echo "You can the commands that come with this config by typing 's_netg_commands' in the console."
echo ""

alias null ""

alias s_netg_commands "clear; s_netg_commands_list"
alias s_netg_commands_list "echo s_netg_commands: Shows all the commands in console; sncl2"
alias sncl2 "echo s_netg_onscoreboard_true: Shows netgraph when viewing the scoreboard (default); sncl3"
alias sncl3 "echo s_netg_onscoreboard_false: Shows netgraph constantly (not recommended); sncl4"
alias sncl4 "echo s_netg_binds: Shows new binds for this config"

alias s_netg_binds "clear; echo tab: Shows Sharky's Netgraph Scoreboard, unless s_netg_onscoreboard is set to false; snb2"
alias snb2 "echo f12: Switches between netgraph modes in acsending order (0-4); snb3"
alias snb3 "echo f7+tab: If s_netg_onscoreboard is set to false, will cycle through netgraph modes"

alias s_netg0 "net_graph 0" //0 = no graph and no next
alias s_netg1 "net_graph 1" //1 = text only
alias s_netg2 "net_graph 2" //2 = basic graph and text
alias s_netg3 "net_graph 3" //3 = graph with legend and text with a bit more info
alias s_netg4 "net_graph 4" //4 = full graph and all text

alias s_netgraph s_netg1 //set to net_graph 1 by default
alias s_to0 "alias s_netgraph s_netg0; alias s_netg_switch s_to1"
alias s_to1 "alias s_netgraph s_netg1; alias s_netg_switch s_to2"
alias s_to2 "alias s_netgraph s_netg2; alias s_netg_switch s_to3"
alias s_to3 "alias s_netgraph s_netg3; alias s_netg_switch s_to4"
alias s_to4 "alias s_netgraph s_netg4; alias s_netg_switch s_to0"

alias s_selectgraph "alias s_netgraph net_graph"
alias +s_netg "+showscores; s_netgraph"
alias -s_netg "-showscores; net_graph 0"

alias s_netg_onscoreboard_true "alias +s_netg "+showscores; s_netgraph"; alias -s_netg "-showscores; net_graph 0"; bind f7 abuse_report_queue; alias s_netg_switch s_to2; alias s_netgraph s_netg1"
alias s_netg_onscoreboard_false "alias +s_netg +showscores; alias -s_netg -showscores; alias +s_netg_toggle "bind tab s_netg_onoff_toggle"; alias -s_netg_toggle "bind tab +s_netg"; bind f7 +s_netg_toggle"

alias s_netg_on "s_netgraph; alias s_netg_onoff_toggle s_netg_off"
alias s_netg_off "s_netg0; alias s_netg_onoff_toggle s_netg_on"
alias s_netg_onoff_toggle s_netg_on

alias s_netg_switch s_to2

bind f12 s_netg_switch
bind tab +s_netg
Copy and paste this into autoexec.cfg

For those who don't know this file will normally be found in:
C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\cfg

Here's a guide to installing scripts if you need more information.

Most instructions are in the cfg file itself and ingame. However, here are some of the basic stuff just in case you're too lazy to look at what you're putting into your tf2 folder:

- This config is a work in progress, some things may not work as best as possible.
- When you launch up your game a message thanking you for using my config should appear in the console. If this message does not appear, you have not installed the config correctly.
- This config is made to not conflict with any of your other configs, alias-wise. You don't need to worry about changing alias names.
- This config uses one of my new ideas of having a command system built into it; you don't have to use it, but it's there.

Basic commands:
- s_netg_commands
- s_netg_onscoreboard_true / s_netg_onscoreboard_false
- s_netg_binds
(If you wanna know what they do just type "s_netg_commands" into the console)

Oh, I forgot to say what the config does. I'm an idiot.
So basically all this does is allow you to switch in between net_graph modes with the press of a button (f12 in this case). By default, the graph is set to show up only when you view the scoreboard but you can make it toggleable by typing s_netg_onscoreboard_false into the console.

Hope you enjoy. Leave any questions down in the comments.
Thanks :)

Posts

  • 1y
    Sharky! avatar
    Sharky! Offline
    Member Joined 1y
    194 points Ranked 18604th
    Posted by HaivoN

    Let's just say this is, umm, poorly optimised. You also can't use quotes inside an alias.

    Yes, it is poorly optimised. As stated several times, it's a work in progress.

    And also, you can nest quotes.

    I code when I'm bored
  • 1y
    HaivoN avatar
    HaivoN Offline
    Member Joined 3y
    4,356 points Ranked 1069th
    11 medals 1 rare
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • Reached 1,000 Points Medal icon
    • Gamefiler of the Month, January 2016 Medal icon
    Let's just say this is, umm, poorly optimised. You also can't use quotes inside an alias.
    asd фыв

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Credits

Author
Sharky!
Sharky! Offline
Member Joined 1y
194 points Ranked 18604th
I did the thingy

Submitter

Sharky! avatar
Sharky! Offline
Member Joined 1y
194 points Ranked 18604th

Sharky!
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Stats

Posts
2
Views
1,242
Date Added
1y
bcp.crwdcntrl.net tracking pixel