r/tf2scripthelp • • Mar 05 '13

Resolved Vaccinator - Chat Binds & Uber Switching (x-post from /r/tf2scripts, sort of)

3 Upvotes

Hey there, /r/tf2scripthelp! I posted the following to /r/tf2scripts before I realized it was the wrong sub, sort of. So here's my problem:


I've been making chat binds for when I pop uber, with the text cycling. That's worked find for the Medigun, the Kritzkrieg, and the Quick-Fix, but I'm running in to a problem or seven with my Vaccinator script.

Whenever I run it, I switch to explosive resistance automatically (I think I know where that messed up, though) and pressing +attack3 (mouse5) cycles between Bullet and Fire resistance chat binds, completely omitting Explosive. In addition, I never leave Explosive resistance.

I've rewritten the code quite a few times and I'm totally stuck. Any ideas?

The script can be found here.


As a quick summary:

Vaccinator-specific chat binds & switcher. Chat swapping works, but I can only use the Bullet or Fire lines, and I cannot switch off of Explosive resistance. I'm totally baffled - any tips?

Thanks!


r/tf2scripthelp • • Sep 05 '26

Question Weapon Slot Specific Configuration?

2 Upvotes

Is there a way to have it so that certain configs like sensitivity or viewmodel_fov are tied to the weapon slots itself rather than having them on the weapon switch bind?

So the problem is for example I've been using this bind on soldier.cfg

bind "1" "slot1; sensitivity 3.75; tf_use_min_viewmodels 0; viewmodel_fov 90"

bind "2" "slot2; sensitivity 3.75; tf_use_min_viewmodels 1; viewmodel_fov 70"

Which is basically:
Press 1 on keyboard to switch to slot 1 (rocket launcher), disable minimal viewmodel, set viewmodel_fov to 90.
And:
Press 2 on keyboard to switch to slot 2 (shotgun), enable minimal viewmodel, set viewmodel_fov to 70.

Has an issue where if I press the "previously used weapon" (lastinv) bind instead, it wouldn't change the viewmodel_fov, sensitivity, or viewmodel.
So I'm just wondering if there's a way to have either previously used weapon work similarly as the 123 binds, or to have those things just be tied to the weapon slots themselves instead.

Oh also, is it possible to have it so that the sniper rifle sets a specific mouse sensitivity while zoomed but not while unzoomed?


r/tf2scripthelp • • Aug 05 '26

Issue the resupply button doesn't work with loadout B

2 Upvotes

as the title says

the resupply button works perfectly fine with the other loadout except for loadout B

at first I thought the problem was related to the F2 button "hardcoded" to the contractor or whatever chatgpt said

but when I used the arrow keys I still had the same problem

EDIT:
it seems that issues only occurs when playing demoman

the resupply button works with other classes no matter the loadout

but not when using loadout B for demoman


r/tf2scripthelp • • Apr 10 '26

Issue unexpected timing with wait command

2 Upvotes

I was using the wait command in a script to measure 1.25 seconds, but I ran into an issue. I had manually set my max framerate to 120, and since "wait" is supposed to delay command execution for a number of frames equal to its argument, I expected "wait 150" to work. In actuality, "wait 150" was too short, and I got better results with "wait 216".

I decided to test wait timing at 30fps with this command:

echo PING; wait 30; echo PONG

and at 60fps with this command:

echo PING; wait 60; echo PONG

I recorded the results with a millisecond timer:

https://www.youtube.com/watch?v=GCIq3Eh2mXk

https://www.youtube.com/watch?v=bONSoAR7S8E

(These were recorded on a self-hosted LAN server, but the timing seems consistent on Valve servers too)

The commands should print PONG about 1 second after PING, but instead it comes ~300ms later at 30FPS and ~467ms later at 60FPS. This means "wait 30" waited 9 frames at 30FPS, and "wait 60" waited 28 frames at 60FPS. Its length seems to scale based on my framerate, but not in the way I expected.

This leads me to ask, am I misunderstanding something about the wait command? Can anyone else replicate this?

EDIT: I decided to measure the duration of a "wait 300" command at several different framerates using the same method, here are my results:

https://www.desmos.com/calculator/mnmpzwvaon

If anyone can make sense of this, let me know.

EDIT 2: I think I figured it out; it's both framerate and tickrate dependent. See my post on the wiki for more details:

https://wiki.teamfortress.com/wiki/Talk:Scripting#.22wait.22_function_-_inaccurate_description_of_behavior.3F


r/tf2scripthelp • • Apr 10 '26

Question net_graph question: How to show the PRECISE lerp number?

2 Upvotes

i was wondering about this cuz i see a lot of people when they have net_graph enabled, it shows their precise lerp value, down to the decimal, like 15.2, 30.3, and 33.0 ms, but my net_graph only shows 15.0, 30.0, and 30.0 ms for the respective interp values. I don't mean to be a stickler for tenths of a ms, but why does this happen? does this affect my connection at all, or is it just to do with net_graph itself?


r/tf2scripthelp • • Oct 01 '24

Issue How do I make a resupply bind that doesn’t change my loadout?

2 Upvotes

I’ve been trying to make a resupply bind that doesn’t change my loadout but whenever I press the bind it goes to my first loadout.


r/tf2scripthelp • • Sep 22 '24

Issue I have an autoexec.cfg, and a reset.cfg, and individual class.cfgs. For some reason my class.cfgs seem to randomly reset, does anyone know why?

2 Upvotes

Okay so I have my class .cfgs set up like this:

exec reset
[class specific binds]

For example, in reset.cfg, I have bind g +taunt. But in sniper.cfg, I want to use g for quick Huntsman tauntkill attempts, so I have bind g "taunt 0"

For some reason, sometimes I'll be playing Sniper, and then my g button will bring up the taunt menu, as if it were set to +taunt instead of "taunt 0". I have to go into console and exec sniper to get it to reset.

Same thing happens to Engineer. In reset.cfg, I have a certain button set to a "Nice shot" voice command bind home "voicemenu 2 6". But for Engineer, I have it set to bind home "voicemenu 2 7"; this is Engineer's "Good job" voice command, which is unusually quiet, so I use this voice command to mask me moving/building stuff. However for some reason sometimes when I'm in the middle of playing Engi it'll change to the "Nice shot" voice command, as if it went to the reset.cfg, and again I have to go into console and exec engineer to get it to work again. I do not change class or die, it just seems to happen in the middle of a life. I have exec reset at the very beginning of my class.cfgs, so it happens before any class specific rebindsm and no other exec is anywhere else in there.

For clarity this is the entirety of my sniper.cfg if it helps -

exec reset

sniper_respawn_default

alias item_preset_a "alias sniper_respawn load_itempreset 0;load_itempreset 0"
alias item_preset_b "alias sniper_respawn load_itempreset 1;load_itempreset 1"
alias item_preset_c "alias sniper_respawn load_itempreset 2;load_itempreset 2"
alias item_preset_d "alias sniper_respawn load_itempreset 3;load_itempreset 3"

alias sniper_respawn_default ""

bind g "taunt 0"

bind del sniper_respawn

Has anyone experienced this? Any idea what's up?


r/tf2scripthelp • • Sep 04 '24

Question How do I change my lerp?

2 Upvotes

I can't find a tutorial that shows me it with pictures


r/tf2scripthelp • • Aug 27 '24

Question Need help with spy script!

2 Upvotes

Whenever I hit "q" to do a quickswap, it always defaults to sapper and knife. Is there a way to make quickswap work as intended or at the very least swap from pistol to knife?

This is my spy.cfg.

unbind mouse1

exec config
exec custom

unbind mouse2
bind mouse2 +attack2
bind mwheelup "+jump"
bind mwheeldown "+jump"
hud_combattext_batching_window .5
unbind n

slot3
r_drawviewmodel 1
knife_vm_mode

// replace [KEY] with the your Keybinds for the sapper♥♥♥♥♥♥♥ambassador/watch

bind "2" +equip_sap // Key/button for sapper
bind "3" +equip_knife // Key/button for knife
bind "1" +equip_amby // Key/button for ambassador
bind "mouse2" "+watch;spec_prev" // Key for watch (mouse2 default)

//re-bind mouse1

alias knife_vm_mode "bind mouse1 +viewmodel_knife" // binds mouse1 to turn viewmodel on when attacking (for knife knife)
alias amby_vm_mode "bind mouse1 +viewmodel_amby" // binds mouse1 to turn viewmodel off when attacking (for amby)
alias sap_vm_mode "bind mouse1 +viewmodel_sap" // binds mouse 1 to turn viewmodel on when attacking and off when not (for sapper)

// causes viewmodel to go off or on when you shoot

alias +viewmodel_knife "+attack;r_drawviewmodel 1;spec_next" // attacks, turns viewmodel on
alias -viewmodel_knife "-attack;r_drawviewmodel 1" // finishes atack, turns viewmodel on again as safeguard

alias +viewmodel_amby "+attack;r_drawviewmodel 0;spec_next" // attacks, turns viewmodel off
alias -viewmodel_amby "-attack;r_drawviewmodel 0" // finishes attack, turns viewmodel off again as a safeguard

alias +viewmodel_sap "+attack;r_drawviewmodel 1;spec_next" // shows sapper when sapping
alias -viewmodel_sap "-attack;r_drawviewmodel 0" // hides sapper when mouse1 released

// Equip item, turn vm on/off, set vm toggle for attack

alias +equip_knife "slot3;r_drawviewmodel 1" // Equips knife, turns viewmodels on
alias -equip_knife "knife_vm_mode;r_drawviewmodel 1" // Sets viewmodels to turn ON when stabbing (makes sure it stays on)

alias +equip_amby "slot1" // Equips amby
alias -equip_amby "amby_vm_mode" // Sets viewmodels to turn OFF when shooting

alias +equip_sap "slot2;r_drawviewmodel 1" // Equips sapper, turns viewmodels on
alias -equip_sap "sap_vm_mode" // Sets viewmodels to turn on while firing, and off when not

alias +watch "+attack2;r_drawviewmodel 1" // watch up/cloak on/secondary attack + viewmodels on
alias -watch "-attack2;r_drawviewmodel 1" // viewmodels on again as safeguard

bind Q quickswap


r/tf2scripthelp • • Aug 23 '24

Question How can i toggle mouse2 for heavy's minigun?

2 Upvotes

I recently enjoyed playing heavy but my right click kinda broke, probably because i been holding it down too hard but it's not entirely broken and i can still click it but it made heavy unplayable since i can't rev up for long periods, can anyone help me to toggle my mouse2 for heavy so i don't have to hold it down and break my mouse even further?


r/tf2scripthelp • • Aug 18 '24

Resolved tf2 crashes after creating autoexec, all the classes, and reset configs

2 Upvotes

i have no idea what im doing but i tried doing what one post said (to create autoexec.cfg, all the class ones, etc, etc...) and once i did that the game would just crash once i picked a class. no error warning or anything else, it just closes. i did have this line of code in every single one of them though:

map_background preload_room; wait 10; disconnect

i do have things in my custom folder that have to do with viewmodels (like horsie's and all of my classes have viewmodel mods.) can anyone help?


r/tf2scripthelp • • Aug 14 '24

Question Is there a script that allows you to hide vie model or change view model using the mouse button?

2 Upvotes

I was watching this video and I saw that when he shot out particles from the flame thrower using his mouse button. It changes his fob because it hides the particles and when he releases the button it became normal. How do you get this bind??? The link: https://youtu.be/G7p-NsU9eWw?si=Mve1QVvl3xix-VGP Time stamp: 5:34-5:36


r/tf2scripthelp • • Aug 10 '24

Question Script that taunts then teleports in spawn

2 Upvotes

Recently in a casual match, in spawn, I saw this demo execute his primary taunt, then halfway though it, teleport to his side and repeat this over and over again. It was honestly pretty funny and I've been trying to replicate it.
However, I can't seem to get close to the speed that he did it at, which leads me to believe this might be an exploit/external script, does anyone know more about this or know of a way to implement this using the console?

For reference this is what I came up with:

alias taunt_spam ts_start

alias ts_start "alias taunt_spam ts_stop; alias ts ts_loop; ts_loop"
alias ts_stop "alias ts; alias taunt_spam ts_start"
alias ts_loop "taunt; wait 200; join_class random; wait 109; join_class demoman; wait 192; ts"

If the latter two wait commands are used with any lower values, the script starts being inconsistent and some taunts might be skipped (tested on local server). The first wait command needs a value of 200 to cutoff the taunt at the correct time.


r/tf2scripthelp • • May 23 '24

Question Help with heavy bind

2 Upvotes

alias toggle "enable"

alias enable "alias toggle disable; +attack2"

alias disable "alias toggle enable; -attack2"

alias ptoggle "penable"

alias penable "alias ptoggle pdisable; +attack"

alias pdisable "alias ptoggle penable; -attack"

alias b bind mouse1 ptoggle

alias d bind mouse2 toggle

alias c bind mouse1 +attack

alias e bind mouse2 +attack2

alias f bind mouse2 "+attack2"

b;d

bind 1 "slot1;b;d"

bind 2 "slot2;c;f"

bind 3 "slot3;c;e"

How do I make so after throwing a lunchbox item it uses the slot specific bind?


r/tf2scripthelp • • May 21 '24

Issue My script doesn't work like this should.

2 Upvotes

alias autoalt "startalt"

alias startalt "+attack2;alias autoalt stopalt"

alias stopalt "-attack2;alias autoalt startalt"

bind mouse2 "autoalt"

This is script is supposed to make so I can toggle reving up.
But instead I can only rev up but not unrev.
Idk why.


r/tf2scripthelp • • Apr 20 '24

Resolved Issues with overlapping attack commands

2 Upvotes

So I've been working on a bit of an unorthodox pyro layout, shown below:

alias "+flamethrower" "slot1; +attack; viewmodel_fov 0.1"
alias "-flamethrower" "-attack"
alias "+airblast" "slot1; +attack2; viewmodel_fov 0.1"
alias "-airblast" "-attack2"
alias "+punch" "slot2; +attack; viewmodel_fov 75"
alias "-punch" "-attack"
alias "+axe" "slot3; +attack; viewmodel_fov 75"
alias "-axe" "-attack"
bind mouse1 "+flamethrower"
bind mouse2 "+airblast"
bind mouse4 "+punch"
bind q "+axe"
bind 1 "+attack2"             

Essentially, the idea is to eliminate the need for dedicated weapon switch bindings and have them tied to my attacks directly. So, mouse1 will switch to my flamethrower and attack as soon as possible, mouse2 will switch to my flamethrower and airblast as soon as possible, mouse4 with my secondary, and q with melee. It helps make it easier to be aggressive with degreaser switch speed for how my brain works.

There's just one problem. If, for example, I am currently pressing mouse4 to fire a flare, but while the button is still pressed, I hit mouse1 to start flaming, I will switch to my primary but not fire until I let go of the button and press it again. It really throws me off when it happens. I could commit to trying to press, release, press and hold, but that defeats the purpose of not having weapon switch binds. I'm wondering if there's any more complicated scripting I could do that would help defeat this problem, or if it's just a skill issue and I need to get used to letting go of one before pressing another.


r/tf2scripthelp • • Apr 19 '24

Issue My game text and texture are blurry at 1280x600 resolution

2 Upvotes

After the 64bits update and the end of dxlevel 80/81, the game texture and in-game texts were completely blurred. Before the update, I played at 1280x600 resolution with -dxlevel 81 in launch options, and the text wasn't blurred, but after this update, it's no longer possible to play at the same resolution without it getting blurry (something that doesn't happen with dx81), however It always happens with any other. I play at 1280x600 resolution due to how it is more "stretched" than other resolutions, and I got used to playing at it a long time ago, so, if possible, I would like to know how I can play at 1280x600, with -dxlevel at 90/95/98, without the texture becoming unreadable. Also, my computer is a potato so keep this in mind. Thank you to everyone who read until the end, I will leave below the commands I use in my autoexec.cfg and launch options.

launch options> -dxlevel 98 -w 1280 -h 600 -full -noborder -high -novid -console -nohltv -precachefontchars -noquicktime (the game textures and text becomes blurry with this dxlevel)

my cfg:

////////// GUSTIN'S AUTOEXEC 2023-CURRENTLY \\\\\\\\\\
>>> BINDS <<<
// FAST SWITCH LOADOUT //
bind "LEFTARROW" "load_itempreset 0"
bind "UPARROW" "load_itempreset 1"
bind "RIGHTARROW" "load_itempreset 2"
bind "DOWNARROW" "load_itempreset 3"
tf_respawn_on_loadoutchanges 1
// EUREKA EFFECT //
bind "h" "eureka_teleport 0"
bind "j" "eureka_teleport 1"
// GENERAL BINDS //
bind "F3" "say ( ͡° ͜ʖ ͡°)"
bind "-" "say_team spy base"
bind "=" "say_team passou spy"
bind "7" "cl_trigger_first_notification"
bind "8" "cl_decline_first_notification"
>>> SETTINGS <<<
// MOUSE OPTIONS //
m_rawimput 0
// SOUND OPTIONS //
tf_dingaling_lasthit_pitchmaxdmg 100
tf_dingaling_lasthit_pitchmindmg 100
tf_dingaling_pitchmaxdmg 100
tf_dingaling_pitchmindmg 100
// NETWORK OPTIONS //
cl_cmdrate 66
cl_interp 0
cl_interp_ratio 1
cl_interp 0
cl_lagcompensation 1
cl_pred_optimize 2
cl_smooth 0
cl_smoothtime 0.01
cl_updaterate 66
rate 60000
net_compresspackets_minsize 1200
net_compresspackets 0
net_graph 1
// MISC OPTIONS //
fps_max 0
fov_desired 90
viewmodel_fov 95
hud_fastswitch 1
cl_autoreload 1
hud_combattext 1
hud_combattext_batching 1
hud_combattext_healing 1
tf_remember_activeweapon 0
tf_sniper_fullcharge_bell 1
tf_simple_disguise_menu 1
cl_autorezoom 1
tf_medigun_autoheal 1
hud_medichealtargetmarker 1
hud_medicautocallers 1
hud_medicautocallersthreshold 75
tf_enable_glows_after_respawn 1
hud_freezecamhide 1
tf_spectate_pyrovision 0
tf_romevision_opt_in 0
tf_hud_target_id_disable_floating_health 0
tf_scoreboard_ping_as_text 1
tf_use_min_viewmodels 1
tf_spec_xray_disable 1
cl_jiggle_bone_framerate_cutoff 0
r_drawtracers_firstperson 0
cl_hud_minmode 1
// SHADOWS //
r_shadowmaxrendered 0
r_shadowrendertotexture 0
r_shadows 0
nb_shadow_dist 0
// WATER //
r_waterdrawreflection 0
r_waterdrawrefraction 1
r_waterforceexpensive 0
r_waterforcereflectentities 0
// RAGDOLLS AND GIBS //
cl_ragdoll_fade_time 0
cl_ragdoll_forcefade 1
cl_ragdoll_physics_enable 0
g_ragdoll_fadespeed 9999
g_ragdoll_lvfadespeed 9999
ragdoll_sleepaftertime 0
cl_phys_props_enable 0
cl_phys_props_max 0
props_break_max_pieces 0
r_propsmaxdist 0
// FACIAL EXPRESSIONS //
r_eyes 0
r_flex 0
r_teeth 0
// PERFORMANCE //
[mat commands]
mat_mipmaptextures 0
mat_compressedtextures 1
mat_managedtextures 0
mat_antialias 1
mat_aaquality 0
mat_colorcorrection 0
mat_disable_bloom 1
mat_disable_fancy_blending 1
mat_disable_lightwarp 1
mat_filterlightmaps 1
mat_filtertextures 1
mat_forceaniso 0
mat_hdr_level 0
mat_autoexposure_max 0
mat_autoexposure_min 0
mat_bloomscale 0
mat_bloom_scalefactor_scalar 0
mat_debug_postprocessing_effects 0
mat_debugdepth 0
mat_postprocessing_combine 0
mat_non_hdr_bloom_scalefactor 0
mat_bufferprimitives 1
mat_framebuffercopyoverlaysize 0
mat_hdr_enabled 0
mat_hdr_manual_tonemap_rate 0
mat_picmip 1
mat_reducefillrate 1
mat_reduceparticles 1
mat_specular 0
mat_bumpmap 0
mat_phong 0
mat_trilinear 0
mat_motion_blur_enabled 0
mat_vsync 0
[r commands]
r_rimlight 0
r_worldlights 0
r_worldlightmin 0.0001
r_lod -1
r_rootlod 2
r_3dsky 0
r_3dnow 1
r_ambientboost 0
r_ambientfactor 0
r_ambientmin 0
r_cheapwaterstart 1
r_cheapwaterend 1
r_decals 0
r_dynamic 0
r_entityclips 0
r_flashlightdepthtexture 0
r_forcewaterleaf 1
r_lightaverage 0
r_occlusion
r_pixelfog 1
r_propsmaxdist 0
r_renderoverlayfragment 0
[other commands]
fog_enable 0


r/tf2scripthelp • • Apr 18 '24

Question How do I show damage only in Hud.

2 Upvotes

Basically, I have Quakehud and decided to have my damage number on hud and not on the enemy I am firing (having it in between health and ammo or above ammo counter), but the damage counter on enemy is still on as well as the damage number on hud. Any advice?


r/tf2scripthelp • • Dec 28 '23

Issue I need help with a battle engi bind

2 Upvotes

I've been playing a lot of battle engineer and the classic { bind "MOUSE5" "destroy 2 0; build 2 0" } really isn't ergonomic and i cant find a way to equip my shotgun.

is there any way to make the bind

  1. destroy previous buildings (destroy 2 0)

  2. open a new sentry build plan (build 2 0)

  3. and then attempt to place it several times (???)

  4. and then pull out the shotgun (???)
    also no lastinv bc i tend to not always have my primary out when hitting the bind.


r/tf2scripthelp • • Oct 30 '23

Question Movement binds to not move at full speed?

2 Upvotes

I want to bind keys to walk forwards/backwards/left/right, but not at full movement speed (as if I was pushing the analog stick on a controller only halfway). How do I do that?


r/tf2scripthelp • • Sep 25 '23

Resolved Eureka Effect Scripting Issues

2 Upvotes

Eureka Effect Scripting Issues

I was trying to use a script earlier, and It worked fine. Due to the fact it uses alias and such, it stops working after you shut the game down. So I tried to put said script into my "engineer.cfg" config file, and when I try and use the script, in the console it says

Unknown Command: +teleport

Unknown Command -teleport

in a repeating order. Anyone know the remedy for this?

If interested this is the script I'm using

bind b +teleport

alias +teleport slot3

alias -teleport Teleport_To_Spawn

alias Teleport_To_Spawn "eureka_teleport"

alias Teleport_To_Exit "eureka_teleport 1"

bind mouse3 +toggleTeleport

alias +toggleTeleport "alias -teleport Teleport_To_Exit"

alias -toggleTeleport "alias -teleport Teleport_To_Spawn"

I'm quite new to scripting, and mods in general for TF2. So be nice?

Update: I assume that I couldn’t use the scripts because of old “b” and “mouse3” binds. Ones that were used for this script before I realized I needed to put the script in my “engineer.cfg” files. I assume these binds were linked to the aliases that weren’t there before, and were overriding my “engineer.cfg” script binds. That being I have no idea if this is true, since I had to do life stuff right after making this post. (will attempt fix tomorrow)


r/tf2scripthelp • • Aug 27 '23

Issue "unknown command +rocketjump" when trying to run script

2 Upvotes

here's the code:

alias +rocketjump "+jump; +duck; wait; +attack"

alias -rocketjump "-jump; -attack; wait; wait; wait; -duck"

bind "MOUSE4" "+rocketjump"

I've added this into an autoexec.cfg and verified that its a cfg file but when i get in game i just get "unknown command +rocketjump" in the console


r/tf2scripthelp • • Jul 23 '23

Question How do I make a console command repeat every second?

2 Upvotes

I can't really find an answer and I'm pretty new to this. I'm trying to repeat a console command (impulse 101) every tick. How can I do this? Reminder: I am very new so please type the entire script out. Also, am I find just putting it in .cfg or should I place it in autoexec?


r/tf2scripthelp • • Jul 23 '23

Question What's the best time to set for wait commands?

2 Upvotes

I'm currently trying to make a quickswap script for medic. I press MOUSE5, I automatically switch over to my crossbow, fire off a shot, and then immediately switch back to the medigun. The switch-to and back works perfectly, however, there's been an inconsistency as to whether or not I shoot the crossbow at all. Sometimes, the script works as intended and other times, it just switches to the crossbow and back without shooting.

I'm not particularly sure, but I think it has to do with my FPS. On tr_walkway, for example, I get about 500+ frames in the spawn room, and the script doesn't work. When my fps dips to around the 300 fps range though, then the script works as intended.

Is there a "best value" to set for wait commands or is it purely dependent on my FPS?

Here's the script for reference:

//Crossbow, shoot, medigun

alias csm "slot1; wait 115; +attack; wait 115; slot2; -attack"

bind "MOUSE5" "csm"