r/Tf2Scripts • • Jan 31 '19

Resolved How can I use my own networking settings with mastercomfig 7?

5 Upvotes

So long story short:

I was using autoexec.cfg config in the past and I was quite satisfied with it. Then mastercomfig 7 came out and I instantly loved it. It was based on VPKs, not on autoexec.cfg file, but it offered numerous great graphic and quality of life settings. All in user-friendly menu.

The problem is that it has some really shitty networking settings. Whatever I choose my game's super laggy. In comparison, my old autoexec offers networking settings that work great for me.

I thought that I can use both of them at the same time, but it doesn't work. How can I combine networking settings of my autoexec without sacrificing graphic and quality of life settings of mastercomfig 7?


r/Tf2Scripts • • Nov 25 '18

Satisfied Switch to primary question

5 Upvotes

i was wondering if its possible to make a script that automatically switches to my flamethrower and airblasts regardless of the weapon im using. i found this old post but i didnt want the script to switch weapons again after airblasting like the user there wanted. just a simple airblast for all weapons.

thanks


r/Tf2Scripts • • Nov 13 '18

Question Need help with a Viewmodel related script

5 Upvotes

I tried to make a script which turns off viewmodels when using the direct hit (I hate the direct hit viewmodel) and keeps viewmodel on when I use melee/shotgun.

Obviously I could just use ytterium's comp viewmodels but that doesn't work with the direct hit for whatever reason.

Here's the script:

alias unbinds "unbind mwheelup; unbind mwheeldown; unbind mouse5"

alias melee "slot3; r_drawviewmodel 1; viewmodel_fov 97"

alias secondary "slot2; r_drawviewmodel 1; viewmodel_fov 97"

alias primary "slot1; r_drawviewmodel 0; viewmodel_fov 97"

alias on "unbinds; bind mwheelup primary; bind mouse5 secondary; bind mwheelup melee"

alias off "bind mwheelup invprev; bind mwheeldown invnext"

bindtoggle l "on off"

So I was just wondering why this doesn't work and what I can do to fix it.

Thanks.


r/Tf2Scripts • • Oct 31 '18

Issue Is my Autoexec right?

5 Upvotes

I'm trying to get my autoexec.cfg to work, but absolutely none of these commands automatically exec on start. I'm using it as more as a reminder as no matter the quotation marks or anything I cannot get this to work.

Please help me fix this abomination!

` sv_allow_point_servercommand "always"

closecaption 1

cc_subtitles 0

cc_lang "clovervidiac"

cc_predisplay_time 0

"rate" "60000"

"cl_updaterate" "66"

"cl_cmdrate" "66"

"cl_interp_ratio" "1"

"cl_interp" "0.0325"

"net_graph" "1"

"viewmodel_fov" "77"

"hud_combattext_batching" "1"

"r_rimlight" "0"

"fov_desired" "90"

"net_graph" "1"

//Null Movement

bind "w" +mfwd

bind "s" +mback

bind "a" +mleft

bind "d" +mright

alias +mfwd "-back;+forward;alias checkfwd +forward"

alias +mback "-forward;+back;alias checkback +back"

alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"

alias +mright "-moveleft;+moveright;alias checkright +moveright"

alias -mfwd "-forward;checkback;alias checkfwd none"

alias -mback "-back;checkfwd;alias checkback none"

alias -mleft "-moveleft;checkright;alias checkleft none"

alias -mright "-moveright;checkleft;alias checkright none"

alias checkfwd none

alias checkback none

alias checkleft none

alias checkright none

alias none ""

// Transparent viewmodel settings

mat_motion_blur_enabled 1

mat_motion_blur_strength 0

mat_disable_bloom 1

rectangle over light materials

mat_hdr_level 0

mat_colcorrection_disableentities 1

mat_colorcorrection 0 `

My null movement script also doesn't work so I might need you guys to help me out on that one

I'm also looking for the no smoke script, as it seems I cannot open teamfortress.tv due to 502 Bad Gateway errors.

Please keep in mind I am no experienced or even amateur at any of this. I took most of this from the descriptions of random videos.

Edit: Formatting


r/Tf2Scripts • • Oct 09 '18

Answered Viewmodel script

5 Upvotes

Hi, I'm a flex main in prolander and I mostly play pyro on offense with the occasional spy. As you might know, pyro's flames disappear when you set your viewmodel_fov to 0 and disable r_drawviewmodel. However, I've found that I have much better shotgun aim when the viewmodels are on. Is there any way to change the viewmodels based on my weapon? Melee is similar to primary. Also, is there a possible way where I can toggle this to a bind?


r/Tf2Scripts • • Oct 01 '18

Request Auto-Fire Secondary Script

5 Upvotes

I am trying to make a script that when i press 2 it changes to secondary and automatically shoots once. Any ideas of what it should look like?

(To be more clear, this is the script i want:

> Click key "2"

> Changes to Secondary

> Shoots Secondary ONCE

> Goes to "Manual shooting mode" [when you need to press M1 to shoot])


r/Tf2Scripts • • Sep 26 '18

Script I wrote a script that re-executes your class config upon respawn

5 Upvotes

Sort of. After reading 100 posts saying it wasn't possible, this is what I came up with to re-execute my pyro config every life.

This goes in your pyro.cfg

alias re_exec "wait 1980; join_class sniper"

re_exec

This goes in your sniper.cfg

alias join_pyro "join_class pyro"

join_pyro

Upon death, you respawn instantly as pyro with your pyro.cfg re-executed. A wait 1980 gives you more than enough time to leave spawn without being switched. You obviously need "suicide after switching class" turned off.

For some reason that I don't understand, this script doesn't prevent you from playing sniper either. Selecting sniper manually functions normally.

The one thing that I need help with is making this toggle-able. Any ideas?


r/Tf2Scripts • • Sep 09 '18

Resolved I can't shoot/attack/zoom/build etc. while tabbed

5 Upvotes

Title.

I changed my config lately and I have no idea what script is responsible for that. Instead of shooting/attacking/zooming/building etc. I can report/kick/mute people while tabbed.


r/Tf2Scripts • • May 19 '18

Satisfied Script that hides primary weapon when I shoot and shows all other weapons when I switch to them

5 Upvotes

So I am an idiot and I accidentally lost a script that I had in place for my Scout and Spy where it checked that I had my primary weapon out (by checking that I pressed "1" on the number bar, or died with my primary out) and that when I pressed mouse1, it did an +attack; r_drawviewmodel 0 script.

Then, if I scrolled away or pressed 2 to my secondary or whatever, it would automatically do an r_drawviewmodel 1


r/Tf2Scripts • • Jan 23 '17

Satisfied Tf2 Bhop Script

5 Upvotes

I need a TF2 Bhop script that actually makes the player go faster becuase my current one is quite useless and slow.

This is my current one:

//Bhop bind space +alt_jump

alias bhop_bind "+jump; wait 2; -jump; wait 2; bhop_jump"

alias bhop_alias "alias bhop_jump bhop_bind"

alias bhop_stop "alias bhop_jump"

alias +bhop "bhop_alias; bhop_jump; spec_mode"

alias -bhop "bhop_stop"

alias +njmp "+jump; spec_mode"

alias -njmp -jump

//The wait test

alias waitTester "alias waitTest waitPositive; wait; waitTest"

alias wait "alias waitTest waitNegative"

alias waitPositive "alias +alt_jump +bhop; alias -alt_jump -bhop; echo wait enabled, bhop engaged"

alias waitNegative "alias +alt_jump +njmp; alias -alt_jump -njmp; echo wait disabled, bhop not engaged" waitTester

EDIT: Also does crouching make you go faster?


r/Tf2Scripts • • Jul 29 '16

Discussion A script to unite them all!

5 Upvotes

Hi there! I've created a framework that aims to facilitate creating and sharing of scripts. It is easy to use both for end-user and scripter.
It is early version but you can already port 90% of all tf2 scritps to it.

I want to develop this script to the point where adapting someone's script is a matter of copy-paste. For that, i need community's interest. I'm open to ideas and suggestions, and i can help porting some scripts to it (things like null-point movement or crouch-jump).


r/Tf2Scripts • • May 07 '16

Discussion I think I found a name change command

5 Upvotes

in Steam\steamapps\common\Team Fortress 2\tf\cfg\config.cfg, somewhere around line 199, I found a command. The command is name "<YOURNAMEHERE>", (for me it said name "Booty Zipperooni"). Is this how LMAOBOXers were able to change their names on the fly?


r/Tf2Scripts • • Mar 22 '16

Answered Uber pop message bind only when Im on the mediguns

5 Upvotes

As the title says,thanks!


r/Tf2Scripts • • Nov 11 '15

Satisfied A spy script to check medi gun

5 Upvotes

So I am after a script for spy that when I press num 5 on the keyboard it switches to med and then switches his weapon to medi gun so I can check quickly at the beginning of the round what he is running. Thanks in advance


r/Tf2Scripts • • Oct 04 '15

Answered Revolver Hide script

5 Upvotes

I always see proffesional spies using a script that makes only their revolvers be invisible (i.e. the viewmodel isn't drawn). Problem is that I tried to install this one, but it messed up my game, mainly that I couldn't look around with my mouse. Did I do something wrong, or do I need a better script? EDIT: So apparently reinstalling tf2 didn't solve the problem, I still can't look around with the mouse at all. Can anyone help?


r/Tf2Scripts • • Jul 14 '15

Satisfied Reverse Medigun script

5 Upvotes

Title says it all; i would like a script that automatically heals when not pressed, but stop when pressed. Too many times have I ubered, gone around a corner, and accidentally stopped ubering my pocket.

I use the top number keys to switch weapons.


r/Tf2Scripts • • May 23 '15

Script Printing text on screen Script

5 Upvotes

[EDIT] Here's a screenshot of the text on screen, you can see that it looks very clean (and -Sound Volume is not actually printed on screen, and is not visible) https://gyazo.com/c8eff006a580fd763c069005f9210f3c (Top left corner) Also note that the text is way more legible in game.

Here's a script I use to print text on my screen. You can use this in order to make menu's, or display the status of a toggle for example. The way this works is a little strange, because there's no normal way to start on a new line, without using a wait command. Because I didn't want to use a wait command, I decided to figure out a better way to do this. The way I found worked, is by using a command that returns text to the console, and letting that text appear on the screen (or in fact, there's so many spaces in front of it that it appears offscreen) in order to simulate a 'return'. The command I use is volume, which outputs "- Sound volume" and then starts the printing on a new line. All text that we want on our screen must therefore have "- Sound volume" in it (we basicly write something, and then use many spaces to print "- Sound volume" offscreen). Here's the script:

 

//================================================================================//


// Printing text on Screen
//
// Usage: "exec FileContainingMessage"
//
// 	Note: File should contain "echo Example    [Many Many spaces]   - Sound volume"
// 	"- Sound volume" is needed at the end to let the message show up, but will be printed offscreen
// 	if there are enough spaces* before it.
//	*Do not use Tabs instead of spaces.
//
// After each printed line, use NewLine to get the next text on a new line
//
// Example message: type "exec ExampleMessage" in console

alias TextOn	"developer 1"
alias TextOff	"developer 0"
alias CF_ON	"con_filter_enable 2"
alias CF_OFF	"con_filter_enable 0"
alias NewLine	"exec SPACES; volume"

// Init
developer 1
con_filter_text_out ">"
con_filter_text "- Sound volume"
con_filter_enable 2

// Other settings:
con_notifytime 8	// How long to display recent console text to the upper part of the game window
con_nprint_bgalpha 50	// Con_NPrint background alpha.
con_nprint_bgborder 5	// Con_NPrint border size.
contimes 8		// Number of console lines to overlay for debugging.


//================================================================================//

 

In order to start printing on a new line, the alias "NewLine" executes SPACES.cfg, which contains the following: (Yes, it needs to be a file. No, an alias won't work)

 

echo "                                                                                                                                                                                                                                                  - Sound volume"

 

The file referenced in the example contains the following, and should be named "ExampleMessage.cfg", you can use this example as a template.

 

// Keep in mind that there are MANY spaces after each line; scroll to the right and see...
// Every line ends with - Sound volume, in order to make it appear on the screen

echo "This is only an example message                                                                                                                                                                                                                - Sound volume"
newline																									
echo "But you can see it works                                                                                                                                                                                                                                                             - Sound volume"

 

Finally, here's a short script that will (sort of) simulate a 6-sided die in the top left screen using this printing technique.

 

// Usage: Tap Numpad 6 repeatedly to roll a D6
// 	This is not actually random.
// 	The idea is that you just tap the Numpad 6 multiple (5-20) times without looking
// 	at the top left corner.

bind KP_RIGHTARROW "Dice; newline; newline; newline; newline"
alias Dice	"Dice1"
alias Dice1	"alias Dice	Dice2;  exec Dice1"
alias Dice2	"alias Dice 	Dice3;  exec Dice6"
alias Dice3	"alias Dice	Dice4;  exec Dice2"
alias Dice4	"alias Dice 	Dice5;  exec Dice5"
alias Dice5	"alias Dice 	Dice6;  exec Dice4"
alias Dice6	"alias Dice	Dice7;  exec Dice3"
alias Dice7	"alias Dice 	Dice8;  exec Dice6"
alias Dice8	"alias Dice 	Dice9;  exec Dice5"
alias Dice9	"alias Dice 	Dice10; exec Dice2"
alias Dice10	"alias Dice	Dice11; exec Dice1"
alias Dice11	"alias Dice	Dice12; exec Dice3"
alias Dice12	"alias Dice 	Dice13; exec Dice4"
alias Dice13	"alias Dice 	Dice14; exec Dice5"
alias Dice14	"alias Dice 	Dice15; exec Dice6"
alias Dice15	"alias Dice	Dice16; exec Dice1"
alias Dice16	"alias Dice 	Dice17; exec Dice2"
alias Dice17	"alias Dice 	Dice18; exec Dice4"
alias Dice18	"alias Dice	Dice19; exec Dice3"
alias Dice19	"alias Dice	Dice20; exec Dice3"
alias Dice20	"alias Dice 	Dice21; exec Dice2"
alias Dice21	"alias Dice 	Dice22; exec Dice6"
alias Dice22	"alias Dice 	Dice23; exec Dice5"
alias Dice23	"alias Dice	Dice24; exec Dice1"
alias Dice24	"alias Dice 	Dice1;  exec Dice4"

 

This script executes a file for each side of the D6, for example, Dice6.cfg (which executes when you 'roll' a 6) contains:

 

// 6

echo "[]      []                                                                                                                                                                                                                                                  - Sound volume"
newline
echo "[]      []                                                                                                                                                                                                                                                  - Sound volume"
newline
echo "[]      []                                                                                                                                                                                                                                                  - Sound volume"

 

Using this, you can easily make the other 5 sides (Dice1.cfg, Dice2.cfg etc)

Sorry if all these different files are confusing you, but the text needs to be echoed from a CFG file, rather than an alias or a bind, because otherwise not all of the spaces will be printed on screen, which causes a message to look like this " Example - Sound volume - Sound volume" rather than " Example"

 

I hope I found a way to make this clear, if not, ask away!


r/Tf2Scripts • • Apr 12 '15

Script Jumping Script Suite

5 Upvotes

I wrote these scripts to take away any basically eliminate any reason to stop rocket jumping, accessing the console, and just focus on the experience in a chill jumping session. It includes some hud editing for the overall feel. The scripts are mostly for offline listen servers. Its about to get messy code wise, I apologize in advance.

Main Menu

http://i.imgur.com/QfjQxrY.jpg

See that Little JUMP button? It points to the alias jumpmap which is a cycle dohickey I have seen many times before on this subreddit. As always I wrote these scripts myself (except the regen one), but in no way would I call this original work.

//Jump Map Cycler
//=======================================
alias jumpmap "jumpmap1"
alias jumpmap1 "map jump_4starters_rc1; alias jumpmap jumpmap2"
alias jumpmap2 "map jump_above_rc1; alias jumpmap jumpmap3"
alias jumpmap3 "map jump_apex_b1; alias jumpmap jumpmap4"
alias jumpmap4 "map jump_BAQu_a2; alias jumpmap jumpmap5"
alias jumpmap5 "map jump_bigbutt_b1; alias jumpmap jumpmap6"
alias jumpmap6 "map jump_cube_b6; alias jumpmap jumpmap7"
alias jumpmap7 "map jump_destination; alias jumpmap jumpmap8"
alias jumpmap8 "map jump_elephant_a2; alias jumpmap jumpmap9"
alias jumpmap9 "map jump_eons_b2; alias jumpmap jumpmap10"
alias jumpmap10 "map jump_home_v2; alias jumpmap jumpmap11"
alias jumpmap11 "map jump_heavan_a3; alias jumpmap jumpmap12"
alias jumpmap12 "map jump_jurf_a2; alias jumpmap jumpmap13"
alias jumpmap13 "map jump_littleman_v4; alias jumpmap jumpmap14"
alias jumpmap14 "map jump_pagoda; alias jumpmap jumpmap15"
alias jumpmap15 "map jump_rnc_a1; alias jumpmap jumpmap16"
alias jumpmap16 "map jump_rook_beta; alias jumpmap jumpmap17"
alias jumpmap17 "map jump_sitood; alias jumpmap jumpmap18"
alias jumpmap18 "map jump_sketchy2_rc1; alias jumpmap jumpmap19"
alias jumpmap19 "map jump_soar_a4; alias jumpmap jumpmap20"
alias jumpmap20 "map jump_twist_beta; alias jumpmap jumpmap21"
alias jumpmap21 "map jump_void_b1; alias jumpmap jumpmap22"
alias jumpmap22 "map jump_yucca; alias jumpmap jumpmap1"

alias mapcycle "mapcycle1"
alias mapcycle1 "alias jumpmap jumpmap1; alias mapcycle mapcycle2"
alias mapcycle2 "alias jumpmap jumpmap2; alias mapcycle mapcycle3"
alias mapcycle3 "alias jumpmap jumpmap3; alias mapcycle mapcycle4"
alias mapcycle4 "alias jumpmap jumpmap4; alias mapcycle mapcycle5"
alias mapcycle5 "alias jumpmap jumpmap5; alias mapcycle mapcycle6"
alias mapcycle6 "alias jumpmap jumpmap6; alias mapcycle mapcycle7"
alias mapcycle7 "alias jumpmap jumpmap7; alias mapcycle mapcycle8"
alias mapcycle8 "alias jumpmap jumpmap8; alias mapcycle mapcycle9"
alias mapcycle9 "alias jumpmap jumpmap9; alias mapcycle mapcycle10"
alias mapcycle10 "alias jumpmap jumpmap10; alias mapcycle mapcycle11"
alias mapcycle11 "alias jumpmap jumpmap11; alias mapcycle mapcycle12"
alias mapcycle12 "alias jumpmap jumpmap12; alias mapcycle mapcycle13"
alias mapcycle13 "alias jumpmap jumpmap13; alias mapcycle mapcycle14"
alias mapcycle14 "alias jumpmap jumpmap14; alias mapcycle mapcycle15"
alias mapcycle15 "alias jumpmap jumpmap15; alias mapcycle mapcycle16"
alias mapcycle16 "alias jumpmap jumpmap16; alias mapcycle mapcycle17"
alias mapcycle17 "alias jumpmap jumpmap17; alias mapcycle mapcycle18"
alias mapcycle18 "alias jumpmap jumpmap18; alias mapcycle mapcycle19"
alias mapcycle19 "alias jumpmap jumpmap19; alias mapcycle mapcycle20"
alias mapcycle20 "alias jumpmap jumpmap20; alias mapcycle mapcycle21"
alias mapcycle21 "alias jumpmap jumpmap21; alias mapcycle mapcycle22"
alias mapcycle22 "alias jumpmap jumpmap22; alias mapcycle mapcycle1"

alias +mate_forward "+forward; mapcycle"
alias -mate_forward "-forward"
alias +mate_back "+back; mapcycle"
alias -mate_back "-back"
alias +mate_moveleft "+left; mapcycle"
alias -mate_moveleft "-left"
alias +mate_moveright "+right; mapcycle"
alias -mate_moveright "-right"

bind "w" "+mate_forward"
bind "a" "+mate_moveleft"
bind "s" "+mate_back"
bind "d" "+mate_moveright"

I thought I was clever using a different pointer alias to randomize the map selection until I saw recently someone did it like 3 years ago. This is what I use, but the mapcycle alias bound to the movement keys is the only salient factor to get the random effect.

Listensever.cfg

sv_cheats 1
mp_waitingforplayers_cancel 1
tf_weapon_criticals 0
mp_timelimit 0
mp_disable_respawn_times 1
sv_allow_wait_command 1
mp_tournament 0
mp_idledealmethod 0

exec jump.cfg // --- This unfortunately doesn't work

regen.cfg that I believe I got off TF2Jump.com forums somewhere

/Personal portable regen for offline jumping!
sv_cheats 1
mp_waitingforplayers_cancel 1

wait 5;ent_fire !self addoutput "targetname player_me"
wait 5;ent_fire func_regenerate addoutput "classname func_regenerate_temp"
wait 5;ent_fire trigger_hurt addoutput "classname trigger_hurt_temp"
wait 5;ent_fire info_target addoutput "classname info_target_temp"

wait 10;give info_target
wait 10;give func_regenerate
wait 10;give trigger_hurt

wait 20;ent_fire info_target addoutput "targetname mytarget"
wait 20;ent_fire func_regenerate addoutput "StartDisabled 1"
wait 20;ent_fire func_regenerate addoutput "mins -100 -100 -100"
wait 20;ent_fire func_regenerate addoutput "maxs 100 100 100"
wait 30;ent_fire func_regenerate addoutput "solid 2"
wait 30;ent_fire func_regenerate addoutput "spawnflags 1"

wait 20;ent_fire trigger_hurt addoutput "StartDisabled 1"
wait 20;ent_fire trigger_hurt addoutput "mins -100 -100 -100"
wait 20;ent_fire trigger_hurt addoutput "maxs 100 100 100"
wait 30;ent_fire trigger_hurt addoutput "solid 2"
wait 30;ent_fire trigger_hurt addoutput "spawnflags 1"
wait 30;ent_fire trigger_hurt addoutput "damage -500"

wait 30;ent_fire info_target setparent player_me
wait 33;ent_fire func_regenerate setparent mytarget
wait 35;ent_fire func_regenerate enable

wait 33;ent_fire trigger_hurt setparent mytarget
wait 35;ent_fire trigger_hurt enable

/u/sgt_scabberdaddle pointed out an excellent alternative to the complicated regen script above.

alias regen_loop "impulse 101;wait 1;regen_redirect"

alias regen_on "alias regen_redirect regen_loop;regen_loop"
alias regen_off alias regen_rediret

bind [key] regen_on

jump.cfg

volume 0.001

bind q "noclip"
bind KP_LEFTARROW "regen_rj"
bind KP_5 "exec regen.cfg"
bind KP_RIGHTARROW "jumpmap"

alias regen_rj "bind mouse1 +rj_regen"
alias +rj_regen "+attack; impulse 101"
alias -rj_regen "-attack"

The regen script and mouse1/resupply bind are off by default to preserve the integrity of the map maker's intentions. I also use some cl_minmode to eliminate hud related visual clutter. (seen below)

Default http://i.imgur.com/IGHZkui.jpg

Minmode on http://i.imgur.com/nWgSCRo.jpg

*Edited for a clearer movement definitions and added better regen script


r/Tf2Scripts • • Jan 11 '14

Issue hey it's me, the guy with pedals. I need help

5 Upvotes

hey, I installed ahk and checked the side that /u/timepatch posted. I tried editing the script that turned joystick input to movementkey input

Persistent ; Keep this script running until the user explicitly exits it.

SetTimer, WatchAxis, 5 return

WatchAxis:


GetKeyState, JoyX, JoyX  ; Get position of X axis.


GetKeyState, JoyY, JoyY  ; Get position of Y axis.


KeyToHoldDownPrev = %KeyToHoldDown%  ; Prev now holds the key that was down before (if any).

if JoyX > 70
KeyToHoldDown = Right


else if JoyX < 30
KeyToHoldDown = Left


else if JoyY > 70
KeyToHoldDown = Down


else if JoyY < 30
KeyToHoldDown = Up


else
KeyToHoldDown =

if KeyToHoldDown = %KeyToHoldDownPrev%  ; The correct key is already down (or no key is needed).


return  ; Do nothing.

; Otherwise, release the previous key and press down the new key:


SetKeyDelay -1  ; Avoid delays between keystrokes.


if KeyToHoldDownPrev   ; There is a previous key to release.


Send, {%KeyToHoldDownPrev% up}  ; Release it.


if KeyToHoldDown   ; There is a key to press down.
Send, {%KeyToHoldDown% down}  ; Press it down.
return

so this script makes Y and X axis input to arrowkey input. I only need one key to hold down and release. I discovered that my gas-pedal is Z and goes from 100 to 0 when pressed. So I tried picking lines from the script above, and ended up with this:

WatchAxis:


GetKeyState, JoyZ, JoyZ


if JoyZ < 30
KeyToHoldDown = "b"


if KeyToHoldDownPrev   ; There is a previous key to release.


Send, {%KeyToHoldDownPrev% up}


return

It doesn't do anything, can someone help me?

the site that timepath linked: http://www.autohotkey.com/docs/misc/RemapJoystick.htm

List of key names: http://www.autohotkey.com/docs/KeyList.htm#Joystick


r/Tf2Scripts • • Nov 21 '13

Script Shift + WASD[&more] Voicemenu

5 Upvotes

First crack at scripting for TF2. It's a relatively simple script, but I couldn't find anything else like it.

Link: http://pastebin.com/NKJFweFc

A quick rundown: Holding the shift key while pressing specific buttons will call the voicemenu lines. Pretty useful if youre in pubs and don't feel like yelling at your team on your mic. I find these easier to memorize than the default voice chat binds.

List of binds

  • Shift + Q = Sentry ahead!

  • Shift + W = Move up!

  • Shift + E = Activate charge!

  • Shift + A = Go Left!

  • Shift + S = Incoming!

  • Shift + D = Go Right!

  • F = Thanks!

  • Shift + F = Help!

EDIT New to reddit so I don't know if I'm formatting the list correctly. Apologies.


r/Tf2Scripts • • Oct 22 '13

Script [Complete] Vaccinator No-Wait Specific Toggle

5 Upvotes

https://gist.github.com/kbrougham/7090528

This is as 'good' as I can get it. You can't advance twice in one frame without a wait command (disabled on sv_pure), so you need different key presses to get it to work. The best I could do is make it so you can spam a key to rotate to it and stop on it.

Replace your keys as desired, more info in comments within the file.

Basically: to get to your desired specific resist, you just spam the key to get you there. Not so elegant, but it gets around the wait command issue, which is disabled in competitive.


r/Tf2Scripts • • Oct 16 '13

Satisfied can someone make me a really simple script. (im bad at scripts)

5 Upvotes

i want only the soldiers rocket launcher to be on viewmodel_fov 80. only the rocket launcher. thanks for the help!


r/Tf2Scripts • • Oct 02 '13

Issue [help] Jump server binds not working correctly

5 Upvotes

I currently am using a shiftkey to bind 1-4 to /s /t /regen on and /reset respectively but for some reason /reset does not apply when said in the server.

Script:

alias +shiftkey2 "alias 1 "say_team /s";alias 2 "say_team /t";alias 3 "say_team /regen on"; alias 4 "say /reset""
alias -shiftkey2 "alias 1 "null" ;alias 2 "null" ;alias 3 "null" ;alias 4 "null"
bind mouse4 +shiftkey2

I have another shiftkey that works near the exact same but it is for mge commands and they all work perfectly.

If it matters the servers i've tried it on are jump and jujumpIT

Also not really related but I was trying to figure out how to make the regen command toggle so when I hit it first it would say regen on and the next time it would say regen off. Not sure how well that'd work out but would be neat to try.

EDIT: I've redone the scripts to be a bit nicer, i'm thinking the reset issues is just a problem with how sourcemod handles the commands so I don't think that's fixable via scripting.

http://pastebin.com/NDked7pA

That's the final version (for now) of my mge/jump command shiftkey mess. Posted on a forum to see if it's just a bug with sourcemod that could get fixed hopefully.


r/Tf2Scripts • • Sep 02 '13

Satisfied [Request] Hotkey for muting

5 Upvotes

Hey guys.

Sometimes I'm pubbing with a couple buddies and end up on one of a group of micspam servers that they really like (who knows why). I hate figuring out who's currently spamming to mute them and/or muting everyone almost as much as I hate micspam. Is there a command for muting players? Thanks!