The Game Modding Community - Since 2001

Sharky's Netgraph Switcher

A Config Script for Team Fortress 2

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

  • 2y
    Sharky! avatar
    Sharky! Joined 2y ago
    Offline
    194 points Ranked 19730th
    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
  • 2y
    HaivoN avatar
    HaivoN Joined 4y ago
    Offline
    5,079 points Ranked 992nd
    12 medals 2 rare
    • Returned 1000 times Medal icon
    • 8-14 Entries! GameBanana’s Christmas Giveaway 2017 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
    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! Joined 2y ago
Offline
194 points Ranked 19730th
I did the thingy

Submitter

Sharky! avatar
Sharky! Joined 2y ago
Offline
194 points Ranked 19730th

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

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 1,419 Views
  • 2 Posts
  • 2y Submitted

Scores

  • Not yet rated
Sign up to access this!

Yo, buddy. Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Interested? Sign up now!

Already a Bananite? Login

bcp.crwdcntrl.net tracking pixel