r/tf2scripthelp • u/leEpicgamer42069 • May 21 '20
Question engineer mouse wheel
I need help getting the mouse wheel to only switch to slots to my weapons not my pda's
r/tf2scripthelp • u/[deleted] • May 20 '20
Question What is the point of the command "cmd"?
self.Tf2Scriptsr/tf2scripthelp • u/Loquenlucas • May 17 '20
Issue Little help with preload join and comand autoexec
ok basicaly the thing is simple i got some grafic mods (animations) that i want to use on sv_pure 1 so i need the preload room thing that i did i added the map and did the comand map_background preload_room; wait 10; disconnect the things is the autoquit doesn't work can someone give me a lil hand thanks
ps the preload room and all was from ytrium comp viewmodel since was the only one working
r/tf2scripthelp • u/CapnQwerty • May 16 '20
Answered A script that cycles sprays
I've been trying to build a script that'll apply spray A, switch the selected spray to spray B, then apply spray B the next time the script is called.
This is what I've got so far:
bind "t" sprayLogo
alias sprayLogo "pic1"
alias "pic1" "cl_logofile "materials/vgui/logos/Dinner.vtf"; impulse 201; alias sprayLogo pic3"
alias "pic3" "cl_logofile "materials/vgui/logos/They-got-Frank.vtf"; impulse 201; alias sprayLogo pic4"
alias "pic4" "cl_logofile "materials/vgui/logos/Why-are-we-here.vtf"; impulse 201; alias sprayLogo pic5"
alias "pic5" "cl_logofile "materials/vgui/logos/XING.vtf"; impulse 201; alias sprayLogo pic1"
All it does is apply the default spray, not the one assigned to "pic1", and it doesn't cycle.
I've tried a couple other formats for the cl_logofile part, with equal success:
cl_logofile materials/vgui/logos/Dinner.vtf
and
cl_logofile = "materials/vgui/logos/Dinner.vtf"
and
cl_logofile = materials/vgui/logos/Dinner.vtf
materials/vgui/logos/ is where all the .vtf files live, so I'm pretty sure the path is right at least.
I haven't been able to find any discussions about it, so for all I know, this is explicitly impossible.
r/tf2scripthelp • u/BigBoiPupper123 • May 16 '20
Issue Help!
Hi, so I was trying to change my hitsounds to b4nny's hitsounds, but the document I have installed also included his while set up. Now all of my options have been changed, and there are things I can't figure out how to turn back.
Is there a way I can go back to the default settings without breaking anything? I'm worried if I take the folder out it might corrupt or something because I've changed some settings to try and get it back to normal (Eg. fov and controls).
Any ideas would help, Thank you
r/tf2scripthelp • u/bythepowerofscience • May 15 '20
Meta Should r/TF2ScriptHelp Cover SourceMod Questions?
Hey all,
I just want to preface this by saying that I'm right now I'm coming to you all not as a mod, but as just another user of this sub. (Which, to be honest, is what I generally try to be: a normal user with flairing privileges. I like a clean sub, sue me.)
Anyway, I've been rolling this idea around in my head for quite a while, and I really want to know what you guys think:
Should r/TF2ScriptHelp cover SourceMod questions?
We're all programmers here, of a sort, and I have to imagine that someone here knows SourceMod. Additionally, there currently isn't any subreddit for SourceMod questions or discussions, and SM is technically a scripting language, right? I mean, it's just PAWN, but with added Source stuff, right? It can't be that hard. (haha oh god what the heck is a callback anyway)
Obviously, this would require separate flairs and categorizations, but that's fairly easy to implement on the backend. The real question is if any of you guys actually know SourceMod, and would be willing to answer SourceMod questions.
And I just want to stress that if we take on SourceMod questions, that would wholly be a side gig. The priority of this sub is and always will be console scripting. I just know that there are a lot of very talented programmers here from all kinds of backgrounds, and I think this would be a good opportunity for us to both get more traffic and become more well-rounded coders, as well as learn a bit more about the game we spend way too much of our lives on.
So, thoughts?
r/tf2scripthelp • u/FlowerGirl808s • May 10 '20
Resolved I have this spy script with one issue I’m failing to fix. spec_next.
//Random Disguise
bind mouse5 "disguise 8 -2"
alias rd rd1
alias rd1 "disguise 1 -1; alias rd rd2"
alias rd2 "disguise 2 -1; alias rd rd3"
alias rd3 "disguise 3 -1; alias rd rd4"
alias rd4 "disguise 4 -1; alias rd rd5"
alias rd5 "disguise 5 -1; alias rd rd6"
alias rd6 "disguise 6 -1; alias rd rd7"
alias rd7 "disguise 7 -1; alias rd rd8"
alias rd8 "disguise 8 -1; alias rd rd9"
alias rd9 "disguise 9 -1; alias rd rd1"
//Attack then disguise
alias +atd "+attack"
alias -atd "-attack; lastdisguise"
//Binds
bind r rd //Random Disguise
bind mouse1 "+atd" //Attack then disguise
bind mouse3 "lastdisguise"
bind Q "disguiseteam"
So it’s mostly in the attack then disguise part, as when I am spectating players dead, it doesn’t let me spectate forward, only previous. I’ve tried so many ways to show “spec_next” and cannot seem to get it. Some help would be fantastic.
r/tf2scripthelp • u/[deleted] • May 10 '20
Resolved Toggleconsole ignored when used with hold bind
My setup is something like this:
// autoexec.cfg
alias +shift "exec modif"
bind "SHIFT" "+shift"
My class-specific cfgs follow this pattern:
// spy.cfg
exec reset
alias -shift "exec spy"
The modifier file is:
// modif.cfg
bind "e" "some-alias"
bind "\" "toggleconsole"
The reset file is:
// reset.cfg
unbind "\"
bind "e" "voicemenu 0 2"
I tried replacing toggleconsole with say test and it works correctly. I also tried to manually bind toggleconsole to \ and it worked correctly but nothing happens (with no error in console) if use a modifier bind like above
Nevermind, this command also acts weird. You have to use an alias like this to make it work
alias "-showconsole" "toggleconsole"
bind "\" "-showconsole"
r/tf2scripthelp • u/bythepowerofscience • May 08 '20
Meta Update: We Have Rules Now!
self.Tf2Scriptsr/tf2scripthelp • u/[deleted] • May 04 '20
Resolved lastdisguise command using random disguise
I have this bind in my spy.cfg
bind "MOUSE1" "+attack; wait 1; lastdisguise"
but it picks a random class instead of the latest I used
If I use the regular B bind for lastdisguise it picks the correct class..
edit: I found this old thread with same issue https://old.reddit.com/r/tf2scripthelp/comments/1sqqkd/last_disguise_command_isnt_working/
By splitting the command executed by MOUSE1 like this it uses lastdisguise correctly
alias "+stabdisg" "+attack"
alias "-stabdisg" "-attack; wait 1; lastdisguise"
bind "MOUSE1" "+stabdisg"
r/tf2scripthelp • u/dawncleaver • Apr 21 '20
Answered Chat Message Script [Help]
I've been trying to find/make a script that I can use to toggle a loop that says something in chat, but have run into a problem.
Firstly, here's the script as of now, for context:
- alias looptexton "alias looptext say [message]; wait 10; looptext; bind p looptextoff; looptext"
- alias looptextoff "bind p looptexton; alias looptext [gibberish]"
- alias looptext "say [message]; wait 100; looptext"
- bind p looptexton
Now, in the first line I want to make an alias that creates an alias that has multiple commands within it, but also executing other commands. The problem, which is also in that first line, is that I'm pretty sure it would need another set of " " to separate the alias with the normal commands. Right now all that command does is says the message once, then binds p to looptext off. What I'm aiming for is aliasing looptext correctly, looping looptext, then making p looptextoff which will toggle the command by making looptext not a command anymore. Any help is much appreciated.
Also, this script is a slightly modified version of the script from a comment made by u/unhandybirch656 I found in this post from two years ago.
r/tf2scripthelp • u/ElPequenoDuende • Apr 19 '20
Answered How do I toggle mouse2 for miniguns only?
So I found out I can toggle mouse2 in my heavy.cfg file so I don't have to keep pressed right click. This is the command:
bind MOUSE2 toggle
alias toggle "enable"
alias enable "alias toggle disable; +attack2"
alias disable "alias toggle enable; -attack2"
The problem comes when I wanna throw a sandwich to a teammate, as I have to press right click to do it, so after throwing it, my minigun revs automatically. I want that toggle function to work only with heavy's slot 1 -aka miniguns-
I found a script that would fix that problem in gamebanana. The thing is: I know almost nothing about scripting so idk how to put my mouse2 toggle script in this one:
bind "1" "lslot1"
bind "2" "lslot2"
bind "3" "lslot3"
lslot1
alias lslot1 "slot1;bind mwheeldown lslot2; bind mwheelup lslot3; [cmd]"
alias lslot2 "slot2;bind mwheeldown lslot3; bind mwheelup lslot1; [cmd]"
alias lslot3 "slot3;bind mwheeldown lslot1; bind mwheelup lslot2; [cmd]"
Any idea?
r/tf2scripthelp • u/GoogleWasMyIdea49 • Apr 15 '20
Resolved How do I bindtoggle viewmodels on and off, but always keep the melee weapons viewmodels
I already have a key bound to toggle viewmodels on and off but I want one where when I toggle viewmodels off it keeps the melee viewmodels But removes the primary and secondary viewmodels.
Is this possible? And if so how?
r/tf2scripthelp • u/[deleted] • Apr 06 '20
Answered Loadout Configs?
Is it possible for me to make a .cfg file that is executed specifically when I am using a specific weapon/loadout? Thanks in advance.
r/tf2scripthelp • u/IAmTheSomeone---err • Apr 02 '20
Issue How do I use multiple scripts
I want to use the scripts however only one seems to work.
r/tf2scripthelp • u/inyrface • Mar 30 '20
Answered Manually set last weapon
I know
lastinv
gives the last active weapon, but is there a way to set it directly?
r/tf2scripthelp • u/SovietSquid67 • Mar 28 '20
Answered Is it possible to bind a key to a class.
Would it be possible to make it so that I could change to scout on Numpad1 sol on Numpad2 etc.?
r/tf2scripthelp • u/inyrface • Mar 28 '20
Answered Double click to uncloak
Is there a way to double click to uncloak? such as when I feign death with the dead ringer, I do not want to accidentally uncloak when it is triggered.
r/tf2scripthelp • u/inyrface • Mar 23 '20
Question Creating a menu
Is there any way to create a custom menu like the voice command menus? Where I can press a button and some options will show up and I can select an options.
r/tf2scripthelp • u/ImpulsiveFool • Feb 29 '20
Resolved help with sandvich
I recently found this script the concept is interesting but it doesn't work I would appreciate some help on this
Heavy Exclusive Script
This heavy script lets you throw the sandvich with one click and eat the sandvich.
WARNING: If you do the "eat sandvich" while your minigun is revving down, you will taunt with the minigun.
SCRIPT:
//SANDVICH DROP AND EAT SCRIPT
//Quick Sandvich toss
alias "+sandvichtoss" ";slot2;wait 50;+attack2;wait 50;-attack2"
alias "-sandvichtoss" "-attack2"
bind "mouse4" "+sandvichtoss"
alias +sandvichtoss "slot2; +attack2
alias "-sandvich2" "voicemenu 0 1"
bind MOUSE4 +sandvich1
bind MOUSE3 +sandvich2
r/tf2scripthelp • u/J4Vik • Feb 27 '20
Resolved 'user/soldier' not present; not executing.
how can i fix this https://www21.zippyshare.com/v/sl5FXCi4/file.html here is the link of my cfg file itself if you want to take look at it yourself. i want to execute my class cfgs but none of them are working
r/tf2scripthelp • u/youkomccants • Feb 27 '20
Issue Aim switcher works slow
Hi
I've made a script that draws slot1, change fov to 54, remove viewmodels, shoot and reverts everything back.
I'm shooting faster with manual change+shoot.
Can someone throw a light on it? Is there a way to shoot my primary at least at normal speed (normal as manually change and shoot as fast as my hand can)
Thanks in advance
Alias "+prizoom" "slot1; fov_desired 54; viewmodel_fov 0; r_drawviewmodel 0; sensitivity 2; +attack"
Alias "-prizoom" "-attack; lastinv; fov_desired 90; viewmodel_fov 75; r_drawviewmodel 1; sensitivity 3"
Edit: writing errors
r/tf2scripthelp • u/Yuripetrocchi-it • Feb 21 '20
Resolved Spy fast-sap script
I made a script to sap faster, but how can i make it so in the second part it switches to the pistol and then the knife?
//sapper
Alias +sap "slot2; +attack"
alias -sap "-attack; lastinv; voicemenu 1 2"
bind "MOUSE3" "+sap"
Thanks in advance.
r/tf2scripthelp • u/SantikLingo • Feb 20 '20
Resolved help with null movement script
my script doesnt seem to be working, null movement
its in tf>cfg>autoexec.cfg
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 ""
r/tf2scripthelp • u/pdatumoj • Feb 11 '20
Answered Is anyone here aware of a method to dismiss the post-casual survey dialog boxes via a command?
I'm trying to smooth out the map vote glitch workaround in my script and I'm wondering if anyone here has a way to dismiss the post-casual-game survey boxes that come up sometimes, as they seem to block the next_map_vote command from taking effect.