r/Tf2Scripts • u/bapreal • Jul 29 '22
Question what value for the "wait" command is 1 second?
what value for the "wait" command is 1 second?
r/Tf2Scripts • u/bapreal • Jul 29 '22
what value for the "wait" command is 1 second?
r/Tf2Scripts • u/main_thing2 • May 29 '22
Thanks to this gamebanana guide, it showed me that it was possible to add attributes to the player via the console.
sv_cheats 1
ent_create trigger_add_or_remove_tf_player_attributes spawnflags 1 add_or_remove 0 model *10 targetname attr1 attribute_name "damage bonus" value 10100 duration 999999
ent_create trigger_add_or_remove_tf_player_attributes spawnflags 1 add_or_remove 0 model *10 targetname attr1 attribute_name "maxammo primary increased" value 1000 duration 999999
ent_create trigger_add_or_remove_tf_player_attributes spawnflags 1 add_or_remove 0 model *10 targetname attr1 attribute_name "maxammo secondary increased" value 1000 duration 999999
ent_create trigger_add_or_remove_tf_player_attributes spawnflags 1 add_or_remove 0 model *10 targetname attr1 attribute_name "maxammo grenades1 increased" value 1000 duration 999999
ent_create trigger_add_or_remove_tf_player_attributes spawnflags 1 add_or_remove 0 model *10 targetname attr1 attribute_name "damage applies to sappers" value 999999 duration 999999
ent_create trigger_add_or_remove_tf_player_attributes spawnflags 1 add_or_remove 0 model *10 targetname attr1 attribute_name "fire rate bonus" value 0.25 duration 999999
ent_create trigger_add_or_remove_tf_player_attributes spawnflags 1 add_or_remove 0 model *10 targetname attr1 attribute_name "heal on hit for rapidfire" value 250 duration 999999
ent_create trigger_add_or_remove_tf_player_attributes spawnflags 1 add_or_remove 0 model *10 targetname attr1 attribute_name "critboost on kill" value 10 duration 999999
ent_create trigger_add_or_remove_tf_player_attributes spawnflags 1 add_or_remove 0 model *10 targetname attr1 attribute_name "Projectile speed increased" value 1.5 duration 999999
ent_create trigger_add_or_remove_tf_player_attributes spawnflags 1 add_or_remove 0 model *10 targetname attr1 attribute_name "move speed bonus" value 2 duration 999999
ent_create trigger_add_or_remove_tf_player_attributes spawnflags 1 add_or_remove 0 model *10 targetname attr1 attribute_name "ammo regen" value 800 duration 999999
ent_fire attr1 starttouchNote: Add this to a cfg file as this is too long to type into the console. Then, exec SCRIPTNAME. If you do not want to make a cfg file you have to copy each line into the console one by one. Also look down at the floor for this script to work. (So the triggers will spawn at your feet and start). DO NOT FORGET TO NOT SHOOT BEFORE DOING THESE COMMANDS
Then type, ent_remove_all attr1 into the console. (To not overload the game with entities)
This script was actually made to emulate a valve rocket launcher without plugins.
Have fun!
r/Tf2Scripts • u/Error_Detected666 • Mar 19 '22
After some Trial and Error (ha), and lots of visits to the TF2 Wiki, I finally finished my very first major script. It essentially makes it so when I scroll up I build a Sentry, when I scroll down I build a dispenser, when I scroll up while holding CTRL I build a Tele Entrance, and when I do the same but scrolling down I build a Tele Exit.
bind MWHEELUP SentryTele
alias SentryTele Sentry
alias Sentry "destroy 2 0; build 2 0"
alias TeleEntrance "destroy 1 0; build 1 0"
bind MWHEELDOWN DispTele
alias DispTele Dispenser
alias Dispenser "destroy 0 0; build 0 0"
alias TeleExit "destroy 1 1; build 1 1"
bind CTRL +toggleState
alias +toggleState "alias SentryTele TeleEntrance;alias DispTele TeleExit"
alias -toggleState "alias SentryTele Sentry; alias DispTele Dispenser"
r/Tf2Scripts • u/Schneemand • Feb 22 '22
As the title says, "disguiseteam" is not a real command.
When you have the disguise kit out, the game just looks for a button with the LITERAL "disguiseteam" text bound to it. bind [KEY] "disguiseteam; echo" doesn't work since the key is not bound to exactly "disguiseteam". Entering it in the console also doesn't do anything.
However, this means that using it as an alias is completely safe since you're not overriding any real functionality by doing so, only adding functionality that can be removed by just resetting the alias. (alias disguiseteam "")
The alias I chose for it is alias disguiseteam slot4, which I bind to a button I can then use to select the disgguise kit AND to change the disguise team when the disguise kit is out. This works with concise diguise menu, but I don't think it's flawless on default, since if you bind it to 4, it might run into some conflicts with the menu selection. (Can't select Demoman.)
r/Tf2Scripts • u/[deleted] • Nov 18 '21
To preface, I am using mastercomfig. Here is my existing autoexec. My bind to ctrl isn't changing from the time I had it set to a single bind, so I don't know if the null movement script is interfering with it in any way.
cl_crosshair_scale 32
//mp_decals 200
bind 7 slot7
bind 8 slot8
bind 9 slot9
bind 0 slot10
bindtoggle MOUSE5 r_drawviewmodel 0
tf_simple_disguise_menu "1"
alias voicetoggle "voicetoggleon"
alias voicetoggleon "+voicerecord; alias voicetoggle voicetoggleoff"
alias voicetoggleoff "-voicerecord; alias voicetoggle voicetoggleon"
bind "v" "voicetoggle"
echo "Toggle Voice Communications Script Loaded Properly"
unbind w
unbind s
unbind a
unbind d
bind w +mfwd
bind s +mback
bind a +mleft
bind d +mright
bind "ctrl" "crand; mrand"
alias chat1 "say example1"
alias chat2 "say example2"
alias chat3 "say example3"
alias chat4 "say example4"
alias chat5 "say example5"
alias chat6 "say example6"
alias chat7 "say example7"
alias chat8 "say example8"
alias chat9 "say example9"
alias chat10 "say example10"
alias chat11 "say example11"
alias chat12 "say example12"
alias chat13 "say example13"
alias chat14 "say example14"
alias chat15 "say example15"
alias mrand1 "alias crand chat1; alias mrand mrand2"
alias mrand2 "alias crand chat2; alias mrand mrand3"
alias mrand3 "alias crand chat3; alias mrand mrand4"
alias mrand4 "alias crand chat4; alias mrand mrand5"
alias mrand5 "alias crand chat5; alias mrand mrand6"
alias mrand6 "alias crand chat6; alias mrand mrand7"
alias mrand7 "alias crand chat7; alias mrand mrand8"
alias mrand8 "alias crand chat8; alias mrand mrand9"
alias mrand9 "alias crand chat9; alias mrand mrand10"
alias mrand10 "alias crand chat10; alias mrand mrand11"
alias mrand11 "alias crand chat11; alias mrand mrand12"
alias mrand12 "alias crand chat12; alias mrand mrand13"
alias mrand13 "alias crand chat13; alias mrand mrand14"
alias mrand14 "alias crand chat14; alias mrand mrand15"
alias mrand15 "alias crand chat15; alias mrand mrand1"
mrand1
//null movement, tried to add mrand, unable to test because bind for ctrl isn't changing
alias checkfwd; alias checkback; alias checkleft; alias checkright
alias +mfwd "-back; +forward; alias checkfwd +forward; mrand"
alias +mback "-forward; +back; alias checkback +back; mrand"
alias +mleft "-moveright; +moveleft; alias checkleft +moveleft; mrand"
alias +mright "-moveleft; +moveright; alias checkright +moveright; mrand"
alias -mfwd "-forward; checkback; alias checkfwd"
alias -mback "-back; checkfwd; alias checkback"
alias -mleft "-moveleft; checkright; alias checkleft"
alias -mright "-moveright; checkleft; alias checkright"
Any ideas?
r/Tf2Scripts • u/WhiteMagicalHat • Sep 14 '21
I don't really understand exactly what I've been doing wrong, but I've been unable to make the medic inverse heal script (where you're always healing with the medigun out and press m1 to stop, but not always attacking) with the crosshair switcher. Any advice would be appreciated. Currently the only thing in any class cfg file is the null movement script
r/Tf2Scripts • u/theGarbs • Sep 05 '21
Simple question :)
r/Tf2Scripts • u/sushi_ct • Aug 15 '21
Is it possible to make cfg files that only work in demos?
r/Tf2Scripts • u/sushi_ct • Aug 04 '21
Hello, am new here and if possible to help, here is my problem. I have 9 auto execs, one for each class. After picking a class it works but when i switch the keys to the class don't change, they just mush with each other.
example:
bind mouse2 +uber //medic lol
alias +uber "slot2; dropitem; +attack2; spec_prev"
alias -uber "-attack2; say_team uber used"
now if i go spy and press mouse2 to bring my dr out it says "uber used"
Not using mastercomfig.
r/Tf2Scripts • u/[deleted] • Jun 25 '21
I like to see all viemodels while playing casual but in competetive I disable them on some weapons. r_drawviemodels 0/1 works only on weapons that I selected to see. Also if I just put out vpk file of this script I have to reinstall it all over again.
note: I looked it up but it seems like no one ever asked this question anywhere.
r/Tf2Scripts • u/Buiibuiibuii • Jun 16 '21
i play 6s and i need two scripts but i can get them to work no matter what i need a on mouse 2 when playing med it says in team chat uberused or something like that and i need a on mouse 4 say in team chat medic down across all classes (btw i use mastercomfig i know it fucks with huds editing so it might with scripts idk just thought i would say)
r/Tf2Scripts • u/KitFlix • Jun 15 '21
There's an advanced option for "fast weapon switch" and when I plug in my controller while using mouse and keyboard, it disables it. All I need is the command that goes with it, so I can put it in my autoexec so I can play without unplugging my controller
r/Tf2Scripts • u/zombieking26 • Jun 04 '21
I want to use a Vaccinator script, but it requires autohotkey, a third party program. Is there any chance that using it would result in a ban? Thanks in advance!
r/Tf2Scripts • u/redditposts_explorer • May 29 '21
Is there a script where the in the chat it automatically says ie. UBERCHARGE READY when uber is 100% or ie. UBERCHARGE USED immediately after using uber?
r/Tf2Scripts • u/talktailshep • May 02 '21
i also wanna know where things like tf_dingaling, cl_interp, fov_desired and tf_use_min_viewmodels are
r/Tf2Scripts • u/[deleted] • Apr 25 '21
title. If it can also say_team Sapping Enemy Base! tahtd be cool. thanks in advance
r/Tf2Scripts • u/Uganda-Forever • Mar 06 '21
So i need a viewmodel fov bind without the min viewmodels, one set to 90 and the other to 125 I’m not familiar with actually using scripts and stuff and don’t really know how to setup them. Thank you!
r/Tf2Scripts • u/talktailshep • Jan 13 '21
if i put stop into console after i start the game it doesnt stop anything. but if im in a game and i put stop it tells me i completed a demo and cant record another so i stop it. i use comanglias maxframes if that helps
r/Tf2Scripts • u/[deleted] • Dec 07 '20
Hello, I'm trying to bind two actions with one key. While I've had some success, I can't seem to make the toggle button work with more than one command. Here's my code:
bind "ALT" "+building;+teleporter"
bind "MOUSE3" "engi"
alias engi sentry
alias sentry "destroy 2 0; build 2 0"
alias dispenser "destroy 0 0; build 0 0"
alias +building "alias engi dispenser"
alias -building "alias engi sentry"
bind "r" "tele"
alias tele entrance
alias entrance "destroy 1 0; build 1 0"
alias exit "destroy 1 1; build 1 1"
alias +teleporter "alias tele exit"
alias -teleporter "alias tele entrance" What this does is use ALT as a toggle that allows me to quickly switch between buildings while held. The sentry/dispenser code works fine, but the teleporter code gets stuck on the exit even after I've released the ALT key. The strange part (hah) is that when I switch the "+building" and "+teleporter" binds for my ALT key, the teleporter works fine, but the sentry/dispenser code gets stuck on the dispenser. Is there any way to fix this?
r/Tf2Scripts • u/kirk7899 • Dec 07 '20
After the smismass update my game will always crash with yttrium's competitive view models installed. I also have mastercomfig's comp quality preset.
r/Tf2Scripts • u/[deleted] • Nov 25 '20
After i install them can i delete them to see my weapons?
r/Tf2Scripts • u/CragscleftTF • Oct 31 '20
So the goal is to record gameplay sorta like a lock-on drone would do where you circle around the player model to record from different angles. I've tried using thirdperson_mayamode and thirdperson_platformer but it doesn't affect anything. I can go thirdperson but that's it. Do you know if there's anything to do or is it only possible with a sourceTV demo?
Sorry for posting on this subreddit, feel free to downvote/delete if you think it doesn't belong here.
r/Tf2Scripts • u/[deleted] • Oct 23 '20
I have the lastinv default button bound to something else, but I want that same button to still be able to close my taunt menu (usually done with the lastinv key or Q), how do i do that without also switching to the last weapon?
r/Tf2Scripts • u/[deleted] • Oct 21 '20
https://gamebanana.com/effects/5026 this is a mod that makes the kills icons more consistent but it doesn't updated to the jungle inferno so I want to know how to update it?