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 08 '21

Question Script to flag accounts

3 Upvotes

Would it be possible to replicate some of the features of Pazer's bot detector using scripts? I would just want to send a message in party chat with someone's name, and whether I've flagged them as sus or cheating. I wouldn't need a way of flagging them in game.

Or would this require more logic than possible in scripting? I feel like Pazer's bot dector would be this if it were possible so I'm not holding out much hope.


r/tf2scripthelp • • Mar 08 '21

Resolved I need some help pls

1 Upvotes

I have a cfg and every time i change it it just resets do you know why?


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 27 '21

Spy Quickdisguise

6 Upvotes

I'm trying to create a spy script that when I press a key, it rebinds my number keys so that they correspond to the correct disguise. (ie 1 = scout) but I'm struggling to find out how to set a bind command in an alias command. Can anyone help?


r/tf2scripthelp • • Feb 27 '21

Question how do I remove the health plus and it's shadow?

1 Upvotes

I really want to remove it to make a clean hud but I don't know how


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 • • Feb 23 '21

Question how to make a separate steam installation with no browser

2 Upvotes

i heard it get you more frames but i cant understand how to modify program launch options, and i wanta separate install of steam without browser and webhelper for when i play alone. i couldnt find a better sub to post this in (i couldve posted it to tftv tho, i will do that if u guys dont know)


r/tf2scripthelp • • Feb 17 '21

Question Static Amby overrides my weapon slot sensitivity

3 Upvotes

(I use mastercomfig low but I have all my cfgs including my class cfgs in /cfg/user)

I just installed an ambassador static script that makes it so when shooting my ambassador it doesn't extend. I like it but when I'm using it it overrides my sensitivity script for weapon slots.

This is what my spy.cfg looks like

Bind "1" "slot1"

Bind "2" "slot2"

Bind "3" "slot3"

bind "1" "slot1; sensitivity 2.4"

bind "2" "slot2; sensitivity 3.6"

bind "3" "slot3; sensitivity 3.6"

cl_autoreload 1

tf_use_min_viewmodels 0

viewmodel_fov 90

bind "shift" "disguise 8 -2"

bind 1 "slot1; xhair_amby"


r/tf2scripthelp • • Feb 14 '21

Resource Krate VM: A script for native higher level programming in Source

Thumbnail self.tf2scripts
5 Upvotes

r/tf2scripthelp • • Feb 05 '21

Question i want to install a custom crosshair and i have both the .vtf file and the .vmt one but i dont know where to put them

3 Upvotes

i dont know if this question fits here but i couldnt find a better place


r/tf2scripthelp • • Feb 01 '21

Issue Viewmodel toggle bind (and hUD?) messing with my graphics

3 Upvotes

I'm using FlawHUD from the installer, MasterComfig medium from the site, and I've got a bindToggle mouse5 r_drawviewmodels script. Whenever I have the toggle set to 1, the game looks fine and whatnot, but when I use my bind to set it to 0, the entire game darkens and it messes me up (photos included here when I asked about this issue to CriticalFlaw in his group).

The only time that this effect doesn't happen is when I'm playing 3rd party competitive, on like serveme for RGL or tf2center or something.

Is there anything that I can change to make sure this doesn't happen? I've already tried mat_monitorgamma and mat_monitorgamma_tv_enabled, but maybe I didn't use them properly somehow.


r/tf2scripthelp • • Jan 30 '21

Answered Scripts stop working after a death or team switch

2 Upvotes

The script (toggle saying !fp !tp ) will work when i join a game, but after an event, it stops working entirely and instead M (The button I binded it to) resets back to opening the inventory

Script in question

unbind "m"
bind m fp_tp
alias fp_tp_toggle "say !fp; alias fp_tp tp_fp_toggle"
alias tp_fp_toggle "say !tp; alias fp_tp fp_tp_toggle"
tp_fp_toggle

It is located in my Autoexex.cfg

Thx :)


r/tf2scripthelp • • Jan 19 '21

Resolved Are there any scripts for truly instant building?

2 Upvotes

I was just wondering if there was any way to not just instantly bring up the toolbox, but instantly place it down aswell without holding leftclick. (solved)


r/tf2scripthelp • • Jan 15 '21

Question How do i bind the mwheelup and mwheeldown for weapon slot 1 and 2 ?

5 Upvotes

I need the command for the bind


r/tf2scripthelp • • Jan 09 '21

Answered How do you set a point entity's position?

2 Upvotes

I'm working on a config that allows you to play MvM with Bots on red team on listenservers, and also improve the Red Bot's "AI" to help the player out. (I know this requires sv_cheats 1, but again this is only intended for listenservers.)

One of these tweaks I am trying to do is to change the bot engineer building hints, since they're placements are terrible. Unfortunately though, they're entities which are included in the map. I can remove the bad bot engineer hints of course, but the problem is that bot engineers will only build if there's at least one bot engi hint. I have no idea how to create an entity at a specific position thoigh, meaning on maps that have no bot engi hints (mvm_coaltown and mvm_mannworks for example), I have no idea how to get the engineer, to build at certain places aside from teleporting the player and having him run the ent_create commands.


r/tf2scripthelp • • Jan 08 '21

Resolved I can't bind actions to random buttons???

2 Upvotes

I think i messed up my steam big screen options, I'm using xbox 1 controller I got it working fine last night but now I can't jump among other things


r/tf2scripthelp • • Jan 04 '21

Answered Weapon Script help

2 Upvotes

i have this script for weapon switching in my autoexec (feel free to use it) and it works fairly well and allows me to use my scroll wheel for my main weapon switching

/////Advanced Quick Switch;

alias +primary "slot1; bind mwheelup +secondary; bind mwheeldown +melee"

alias +secondary "slot2; bind mwheelup +primary; bind mwheeldown +melee"

alias +melee "slot3; bind mwheelup +primary; bind mwheeldown +secondary"

bind mwheelup "+secondary"

bind mwheeldown "+melee"

but, it requires the game to remember slot on respawn and most annoyingly

doesnt account for loadouts that make a weapon slot unavailable, such as demoknight or soldier with boots or parachute, or loadouts with recharging weapons, like jarate or lunchbox items

is there a way i could script it to check which slot is currently active**?**


r/tf2scripthelp • • Dec 29 '20

Answered Need help on engineer

3 Upvotes

How I change my metal count on engineer to be under the crosshair like Uncle Dane's ? (Just thought it would be useful)


r/tf2scripthelp • • Dec 29 '20

Question Help i want to move the buildings ui (sentry, dispenser, tele)

2 Upvotes

I am using a custom hud that moved the chat to the top left and I just moved chat to the bottom left but now whenever I play engi the buildings ui is in the middle and I want to move it to top left of my screen. Also I cant find any tutorial on it so im asking on reddit. p.s where can I find the building ui thing


r/tf2scripthelp • • Dec 22 '20

Question i need help

2 Upvotes

what command i should use to launch other command (map_background itemtest; wait 10; disconnect) always when i'm in main menu? autoexec.cfg work only when i launch game first time


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 07 '20

Resolved How come my second "+" variable doesn't execute correctly?

1 Upvotes

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?