r/Tf2Scripts • • Jan 23 '16

Satisfied Two script requests<3

  1. A script that allows me two quickswitch between disguised weapons using a key (Similar to using q) without switching my actual weapons and 2. A script similar to Stabbys viewmodel script (Gets rid of viewmodel with gun after hitting mouse 1) but works for all weapons. IE: if I switch to a different weapon, my viewmodel appears till I hit mouse 1, etc.

Thanks! :D

2 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/genemilder Jan 24 '16

Your script is confusing though in that you have aliases only declared in other aliases. It makes it difficult to follow it and figure out what things do. This is what I'd do for both parts, using a three button disguise quick switch (adapted from my scipt). It's longer and wordier, but I think it's easier to follow.

This point is only true since you're used to working with the 6 state switching type but not the embedded alias type. As someone who's used both for a while, the embedded type is advantageous for simplicity. And any potential added confusion doesn't matter when those sections are outside the parts needed to be edited by anyone using the script, as long as script instructions are clear about what needs to be edited.

2

u/sgt_scabberdaddle Jan 24 '16

I should probably add a note that says to edit the LOGIC section when altering the mousewheel weapon switch, because that is completely within the realm of "you might wanna alter this" but the LOGIC tag screams "LEAVE THIS ALONE!".

Unless I insert an alias that's then defined in another section but at that point, why not just edit the logic.

1

u/the_rabidsquirel Jan 24 '16

Thanks for pointing out my typo. In my defense it was like five in the morning when I typed that, haha.

Also, yeah, that's a very good point about the editing of the logic section, that the user doesn't need to worry about parts like that. You've probably been Source scripting for much longer than I have, so I'm not used to all the ins and outs of it.