r/tf2scripthelp • • Feb 08 '15

Answered Changing the quality of viewmodels

5 Upvotes

Since i recently started using cris' cfg again, but i also like to see some viewmodels, i was wondering if there is a command and/or script for changing just the viewmodelquality.


r/tf2scripthelp • • Apr 30 '14

Question How to spawn a Level 3 blue(I'm on red team) sentry? I got the blue part working, but not the level3

5 Upvotes

bind 9 "ent_create obj_sentrygun; ent_fire !picker setteam 3; Upgrade"

alias Upgrade "ent_fire TFObject AddOutput !picker Starting Upgrade Level 3"

https://developer.valvesoftware.com/wiki/Obj_sentrygun I have no clue how to use these KeyValues, or Flags!


r/tf2scripthelp • • Dec 10 '13

Answered Name changing command?

5 Upvotes

I'm making a toggle to switch between two names, as I am part of two teams and therefore have two tags... I have no problems creating the toggle itself, I just need to know (if there is) a command to change steam names.

Cheers


r/tf2scripthelp • • May 03 '13

Answered Help with Advanced Video Settings

5 Upvotes

Hey, so I've been recently having the issue of not being able to save advanced video settings, meaning my framerate goes down pretty hard from the start of the game when I don't remember to change my settings. I've already google searched it, and apparently the problem was with -dxlevel in launch options, but all I have there is -novid currently (I did attempt to put -dxlevel 81, but since I play on a mac where something something dxlevel doesn't work, I've removed it). So I've decided the easiest way for my video settings is to simply put them in my autoexec.cfg file, but I don't know the console/cfg commands for them. If anyone could get any input onto this, that would be lovely. Thanks in advance.

tl;dr: adv vidya settings not saving, need console/cfg commands for them instead

Edit: Found what I needed. Model Quality is changed with "r_rootlod" with 0 being high quality and 2 being low. "mat_queue_mode" changes it to multicore processing, 2 being enabled. Just editing this so others can see. Thanks to everyone who helped C:


r/tf2scripthelp • • Apr 30 '13

Answered How to remove blood and reduce violence?

5 Upvotes

I love tf2, but my parents don't. Is there any way I can reduce the violence a bit? Thanks for the help.


r/tf2scripthelp • • Oct 16 '23

Resolved Help with a crouch-jump script (and possibly missing files?)

4 Upvotes

Hey all, I havent done any scripting before so please excuse my ignorance. (Ill start by saying I have mastercomfig installed, for whatever that affects) Here's my problem. I tried to make a crouch jump bind with this script:

alias +cjump "+jump;+duck"

alias -cjump "-jump;-duck"

bind space +cjump

and saved it under Team Fortress 2\tf\cfg as autoexec.txt

but now when I boot up the game I get this in console:

'overrides/game_overrides.cfg' not present; not executing.

'app/game_overrides.cfg' not present; not executing.

'app/game_overrides.cfg' not present; not executing.

'overrides/class.cfg' not present; not executing.

'app/class.cfg' not present; not executing.

'app/class.cfg' not present; not executing.

and when I press space to execute the bind I get this:

Unknown command: +cjump

Unknown command: -cjump

I also read somewhere about placing the script in Team Fortress 2\tf\custom\my_custom_stuff\cfg but the my_custom_stuff file doesnt exist on my computer.

plz help Ive been banging my head against a wall for so long.


r/tf2scripthelp • • Feb 18 '23

Resolved mouse2 switch to medigun script doesn't work

4 Upvotes

it works when i copy and paste it line by line into the console, but it resets every time i restart the game or join a server.

here's what i have in my medic cfg file:

//uber

alias "+uber" "slot2;+attack2"

unbind "mouse2"

alias "+uber" "slot2;+attack2"

alias "-uber" "-attack2;"

bind "mouse2" +uber

i copied this from habib's config years ago, and it's never really worked for me and i forgot about it until now.


r/tf2scripthelp • • Jul 15 '21

Issue how to make a script to fire once, then switch to melee

4 Upvotes

i want to make a script for medic that will fire one crossbow shot, then switch to melee. however, every time i press MOUSE3 to run the script, it will either (a) continuously autofire the crossbow as though i had only bound MOUSE3 to +attack, or (b) do absolutely nothing except switch to the melee. i have tried using -attack as well as +/- variations of aliases as well as even trying toggles. my current script is as follows:

bind MOUSE3 melee

alias melee "run; stop"

alias run "+attack"

alias stop "-attack; slot3"


r/tf2scripthelp • • Mar 20 '21

Question how to Give myself any item on any class in offline mode

4 Upvotes

I want to be a Scout with the pain train in offline mode so I can test some payload timings and whatnot. I know it's possible in general because I remember watching Star give Jerma a Valve rocket launcher in his server in an old video (though that might've been a server plugin)

I looked through this list and found use (Use a particular weapon Arguments: <weapon_name>) and give (Give item to player. Arguments: <item_name>). Can either of these be useful for my goal, or will I need something else?


r/tf2scripthelp • • Mar 19 '21

Wrong section Script to fix hitreg?

4 Upvotes

Whenever I am meleeing as a medic I find that while the hit sound happens, no damage is dealt for some reason which is REALLY annoying. cl_interp doesn't seem to fix the issue. Is there anything I can do in terms of scripts to make it so my medic melee hits 100% of the time?


r/tf2scripthelp • • Mar 14 '21

Question How to get a script to execute when you join a server?

4 Upvotes

I might just be dumb, but I've been googling for hours and I have no idea beyond just wait; ping until something happens, but I'd like to find a more elegant solution if possible.


r/tf2scripthelp • • Mar 06 '21

Question How do I remove an alias?

4 Upvotes

I was messing around with aliases and I made one and now, I don't know how to remove it. Can someone help me?


r/tf2scripthelp • • Feb 26 '21

Meta Wiki: "you can't change hitsounds using a script"

4 Upvotes

What does it mean by this? Because I use a script to switch between my hitsounds and it works fine and I know that I'm not the only one. So it must mean something else that I don't get.

Edit: and I just noticed the tf_dingaling section of the wiki doesn't include the commands I use to do so.

Edit 2: I also noticed that where tf_dingaling_effect is mentioned, it calls 0 the default/custom hitsound, even though you can customise them all.


r/tf2scripthelp • • Dec 17 '20

Issue Toggle viewmodel binds not working

4 Upvotes

I'm currently trying to set up a viewmodel toggle bind, in my autoexec I have bind "pgup" "r_drawviewmodel 1" and bind "pgdn" "r_drawviewmodel 0" ive put them in my other files (class files, bind file etc) yet it just doesnt seem to work, but when I do the command in game I works just fine!


r/tf2scripthelp • • Dec 05 '20

Question Why is mat_reducefillrate causing precache errors?

4 Upvotes

From this post.

To be clear, I'm not talking about the warning below (which still appears):

Warning: Table ParticleEffectNames is full, can't add <particle>

I'm talking about the error below:

Attemped to precache unknown particle system "<particle>"!

Context: So I've heard online that console errors tend to reduce fps. I have not fact checked this rumor of course, but I still wanted to get rid of them. For a while, I was trying fixes that ultimately were not working. Then I learned that TF2 stores some graphics cvars in the Registry (Keys Computer\HKEY_USERS<id of some sort>\Software\Valve\Source\tf\Settings and Computer\HKEY_CURRENT_USER\Software\Valve\Source\tf\Settings specifically), so I start setting each convar to 0 and running tr_walkway_rc2 to check whether the precache errors stopped. Eventually I set mat_reducefillrate to 0, and the precache errors stopped.

Currently I am looking through the source code leak of 2020 to figure out why that cvar would cause them.

I have looked through, but there is no comments on mat_reducefillrate, so I'll probably have to look through the 2013 SDK.

EDIT 12/5/2020 8:47PM: I'm blind. There is some more stuff than a flag and cvar, but I still don't see any line of code that could cause it.

EDIT 12/5/2020 12PM: This happens with and without mastercomfig.


r/tf2scripthelp • • Dec 02 '20

Answered In the past, I remember there was a command that allowed you to look for a string of text in the Console and display it on the top Left of the GUI in Yellow Text, Does anyone know what that is

4 Upvotes

it was a command that allowed you to look for a string in the console, which then puts it on the top left of the gui as yellow text

Thanks


r/tf2scripthelp • • Nov 21 '20

Resolved Issues with no explosions script

4 Upvotes

Have downloaded many versions of it and none of them have worked, not using mastercomfig, have installed them into my custom HUD, and have tried using VPKs and TXTs, cannot get it to work and have been trying for multiple days. Any help would be appreciated

Issue has been fixed, was caused by custom crosshairs' scripts changing explosions


r/tf2scripthelp • • Nov 10 '20

Resolved Spys disguise auto weapon auto switches to the weapon im holding automatically

4 Upvotes

Yeah basically what the title said. Whenever i disguise as lets say medic and i disguise right? then to hold out my knife i press 3 then boom my disguises held weapon switches to bonesaw (this goes for any class) my spy.cfg is this

//spy settings

//Made with cfg.tf - custom Team Fortress 2 config generator

exec binds

viewmodel_fov 70

alias e_scout "disguise 1 -1; playgamesound scout.yes01"

alias e_sniper "disguise 2 -1; playgamesound sniper.yes03"

alias e_soldier "disguise 3 -1; playgamesound soldier.yes04"

alias e_demoman "disguise 4 -1; playgamesound demoman.yes01"

alias e_medic "disguise 5 -1; playgamesound medic.yes03"

alias e_hwguy "disguise 6 -1; playgamesound heavy.yes03"

alias e_pyro "disguise 7 -1; playgamesound pyro.moveup01"

alias e_spy "disguise 8 -1; playgamesound spy.yes02"

alias e_engineer "disguise 9 -1; playgamesound engineer.yes03"

alias a_scout "disguise 1 -2; playgamesound scout.no02"

alias a_sniper "disguise 2 -2; playgamesound sniper.no01"

alias a_soldier "disguise 3 -2; playgamesound soldier.no02"

alias a_demoman "disguise 4 -2; playgamesound demoman_no03"

alias a_medic "disguise 5 -2; playgamesound medic.no01"

alias a_hwguy "disguise 6 -2; playgamesound heavy.no03"

alias a_pyro "disguise 7 -2; playgamesound pyro.no01"

alias a_spy "disguise 8 -2; play vo\spy_no03"

alias a_engineer "disguise 9 -2; play vo\engineer_no01"

alias dropdisguise "echo DISGUISE_DROP;disguise 8 -2"

bind KP_END e_scout

bind KP_DOWNARROW e_soldier

bind KP_PGDN e_pyro

bind KP_LEFTARROW e_demoman

bind KP_5 e_hwguy

bind KP_RIGHTARROW e_engineer

bind KP_HOME e_medic

bind KP_UPARROW e_sniper

bind KP_PGUP e_spy

bind "kp_slash" "dropdisguise; slot10"

alias +f_disg "bind KP_END a_scout; bind KP_DOWNARROW a_soldier; bind KP_PGDN a_pyro; bind KP_LEFTARROW a_demoman; bind KP_5 a_hwguy; bind KP_RIGHTARROW a_engineer; bind KP_HOME a_medic; bind KP_UPARROW a_sniper; bind KP_PGUP a_spy"

alias -f_disg "bind KP_END e_scout; bind KP_DOWNARROW e_soldier; bind KP_PGDN e_pyro; bind KP_LEFTARROW e_demoman; bind KP_5 e_hwguy; bind KP_RIGHTARROW e_engineer; bind KP_HOME e_medic; bind KP_UPARROW e_sniper; bind KP_PGUP e_spy"

bind KP_SLASH +f_disg


r/tf2scripthelp • • Sep 01 '20

Issue Help with a medigun alert toggle.

4 Upvotes

I'm trying to make a script which will broadcast a message to chat alerting people of what medigun I'm using. I only have one free key, being the zero key.

This current script doesn't work; it gets stuck on the vaccinator setting, and can't look back around to the uber message.

//medigun binds

//the bind to say you have just used your charge

bind "0" medigunswap

alias medigunswap "ubercurrentmed"

alias ubercurrentmed "usingkritz; alias medigunswap kritzcurrentmed"

alias kritzcurrentmed "usingquickfix; alias medigunswap quickfixmed"

alias quickfixmed "usingvax; alias medigunswap vaxmed"

alias vaxmed "usinguber; alias medigunswap ubercurrentmed"

alias usinguber "say_team >MEDIGUN ROTATED: SWITCHED TO UBER<;"

alias usingkritz "say_team >MEDIGUN ROTATED: SWITCHED TO KRITZKRIEG<;"

alias usingquickfix "say_team >MEDIGUN ROTATED: SWITCHED TO QUICK-FIX<;"

alias usingvax "say_team >MEDIGUN ROTATED: SWITCHED TO VACCINATOR<;"


r/tf2scripthelp • • Aug 21 '20

Meta Update: Moderator Applications are Open!

Thumbnail self.tf2scripts
4 Upvotes

r/tf2scripthelp • • Aug 11 '20

Question Anyone know the command to change crosshair?

4 Upvotes

For example is there a command to change my crosshair to a crosshair 7 (the cross)? Thanks.


r/tf2scripthelp • • Jul 04 '20

Question Is there a way to check what slot the player is holding?

4 Upvotes

Is there a way to find out if the player is holding anything in slot1 or slot2? I attempting to write a script in which it is needed to be known what slot the player is holding out.


r/tf2scripthelp • • Jun 23 '20

Question Is this a good idea for making weapon-specific binds?

4 Upvotes

So I was thinking of making weapon-specific binds for heavy fists to say something but I thought I could just make it so when the slot number is pressed.

I'm fairly new to source scripting so I wanted to come here to make sure this is correct.

alias +jh "bind mouse1 say X; +attack"
alias -jh "-attack"


// This is the default for the other slots
alias +d "bind mouse1 +attack"
alias -d "-attack"

bind 1 "+d"
bind 2 "+d"
bind 3 "+jh"

Any help would be appreciated, thanks!


r/tf2scripthelp • • Jun 04 '20

Issue I've tried to get custom controls for spy, but haven't had it work at all. So far, I've seen my script do nothing in game.

4 Upvotes

https://imgur.com/a/2fcj2LL here's an image of what I've done, and I've seen no progress. the untitled text document has >exec reset I've tried putting .cfg on the end of the files but that hasn't helped, and I can't figure out why it won't work. I also tried without the quotes in the script, which didn't work. I won't be able to respond to this post for a bit since I'm going to be after this post. I'll respond in the morning.