Upvote Upvoted 7 Downvote Downvoted
Reverse sniper script
1
#1
6 Frags +

Basically what I'm looking for is a rebind so that you only fire when releasing the button, rather than pressing. Is it possible to write such a script for sniper that doesn't use wait?

My current stopgap measure is to bind -attack to mouse4, and quickly hit that after shooting. It works but it's a bit of a pain. See below.

// ========================
alias +negedge "+attack2; -attack; bind mouse1 +negattack"
alias -negedge -attack2

alias +negattack "-attack"
alias -negattack "+attack; bind mouse1 +attack"

bind mouse2 +negedge
bind mouse4 -attack

bind 1 "weapon1; r_drawviewmodel 0; bind mouse2 +negedge"
bind 2 "weapon2; r_drawviewmodel 1; bind mouse2 +attack2; bind mouse1 +attack"
bind 3 "weapon3; r_drawviewmodel 1; bind mouse2 +attack2; bind mouse1 +attack"

Basically what I'm looking for is a rebind so that you only fire when releasing the button, rather than pressing. Is it possible to write such a script for sniper that doesn't use wait?

My current stopgap measure is to bind -attack to mouse4, and quickly hit that after shooting. It works but it's a bit of a pain. See below.

// ========================
alias +negedge "+attack2; -attack; bind mouse1 +negattack"
alias -negedge -attack2

alias +negattack "-attack"
alias -negattack "+attack; bind mouse1 +attack"

bind mouse2 +negedge
bind mouse4 -attack


bind 1 "weapon1; r_drawviewmodel 0; bind mouse2 +negedge"
bind 2 "weapon2; r_drawviewmodel 1; bind mouse2 +attack2; bind mouse1 +attack"
bind 3 "weapon3; r_drawviewmodel 1; bind mouse2 +attack2; bind mouse1 +attack"
2
#2
-6 Frags +

I'm sorry for not being of any help, but why would you want to shoot only when you release your button?

I'm sorry for not being of any help, but why would you want to shoot only when you release your button?
3
#3
9 Frags +
kirbyI'm sorry for not being of any help, but why would you want to shoot only when you release your button?

tfc

[quote=kirby]I'm sorry for not being of any help, but why would you want to shoot only when you release your button?[/quote]
tfc
4
#4
7 Frags +

TFC

TFC
5
#5
-3 Frags +
kirbyI'm sorry for not being of any help, but why would you want to shoot only when you release your button?

Releasing the button is a valid way to do things. It's like charging a shot, except just purely preference.

Unfortunately, there's no way without wait (unless you get a macro/hotkey program). Wait should never have been banned :( (I'd rather have valve fix exploits surrounding it instead of banning it to prevent exploits).

[quote=kirby]I'm sorry for not being of any help, but why would you want to shoot only when you release your button?[/quote]
Releasing the button is a valid way to do things. It's like charging a shot, except just purely preference.

Unfortunately, there's no way without wait (unless you get a macro/hotkey program). Wait should never have been banned :( (I'd rather have valve fix exploits surrounding it instead of banning it to prevent exploits).
6
#6
0 Frags +

Yeah, I understand that's how the class worked in TFC. I've barely played the game so I can't say I understand the preference. If it works out for you though, then by all means do it.

Yeah, I understand that's how the class worked in TFC. I've barely played the game so I can't say I understand the preference. If it works out for you though, then by all means do it.
7
#7
0 Frags +

Honestly, I kinda miss it from TFC. But the simple fact of the matter is that it wont work correct (delay) since you cannot use the wait command.

Honestly, I kinda miss it from TFC. But the simple fact of the matter is that it wont work correct (delay) since you cannot use the wait command.
8
#8
3 Frags +
ClankMy current stopgap measure is to bind -attack to mouse4, and quickly hit that after shooting. It works but it's a bit of a pain. See below.

what about binding it to your movement / jump / crouch keys when you have rifle out?

[quote=Clank]My current stopgap measure is to bind -attack to mouse4, and quickly hit that after shooting. It works but it's a bit of a pain. See below.
[/quote]

what about binding it to your movement / jump / crouch keys when you have rifle out?
9
#9
2 Frags +

this is the suggestion above, haven't tried it out yet though.
how it should work is once you release mouse1 moving in any direction will stop you from firing another shot. as soon as you release your movement key it will return to normal movement.

// ========================
alias +negedge "+attack2; -attack; bind mouse1 +negattack"
alias -negedge -attack2

alias +negattack "-attack"
alias -negattack "+attack; bind mouse1 +attack; negmove"

[b]my new stuff[/b]
alias negmove "bind w +negf; bind a +negl; bind s +negb; bind d +negr"

alias +negf "+forward; -attack"
alias -negf "-forward; negreset"
alias +negl "+moveleft; -attack"
alias -negl "-moveleft; negreset"
alias +negb "+back; -attack"
alias -negb "-back; negreset"
alias +negr "+moveright; -attack"
alias -negr "-moveright; negreset"

alias negreset "bind w +forward; bind a +moveleft; bind s +back; bind d +moveright"

bind mouse2 +negedge
bind mouse4 -attack

bind 1 "weapon1; r_drawviewmodel 0; bind mouse2 +negedge"
bind 2 "weapon2; r_drawviewmodel 1; bind mouse2 +attack2; bind mouse1 +attack"
bind 3 "weapon3; r_drawviewmodel 1; bind mouse2 +attack2; bind mouse1 +attack"
this is the suggestion above, haven't tried it out yet though.
how it should work is once you release mouse1 moving in any direction will stop you from firing another shot. as soon as you release your movement key it will return to normal movement.
[code]// ========================
alias +negedge "+attack2; -attack; bind mouse1 +negattack"
alias -negedge -attack2

alias +negattack "-attack"
alias -negattack "+attack; bind mouse1 +attack; negmove"

[b]my new stuff[/b]
alias negmove "bind w +negf; bind a +negl; bind s +negb; bind d +negr"

alias +negf "+forward; -attack"
alias -negf "-forward; negreset"
alias +negl "+moveleft; -attack"
alias -negl "-moveleft; negreset"
alias +negb "+back; -attack"
alias -negb "-back; negreset"
alias +negr "+moveright; -attack"
alias -negr "-moveright; negreset"

alias negreset "bind w +forward; bind a +moveleft; bind s +back; bind d +moveright"

bind mouse2 +negedge
bind mouse4 -attack


bind 1 "weapon1; r_drawviewmodel 0; bind mouse2 +negedge"
bind 2 "weapon2; r_drawviewmodel 1; bind mouse2 +attack2; bind mouse1 +attack"
bind 3 "weapon3; r_drawviewmodel 1; bind mouse2 +attack2; bind mouse1 +attack"

[/code]
10
#10
8 Frags +

just ask Robin to make a sniper rifle that shoots when you let go of the mouse button; I mean they obviously really like making new weapons and weapons that appeal to people who enjoyed other game's interpretations of the weapon.(Original/AWPer Hand)

just ask Robin to make a sniper rifle that shoots when you let go of the mouse button; I mean they obviously really like making new weapons and weapons that appeal to people who enjoyed other game's interpretations of the weapon.(Original/AWPer Hand)
11
#11
1 Frags +

My medic config is setup to only heal when I'm not pressing mouse 1. I can see how that could be useful for sniping as well.

My medic config is setup to only heal when I'm not pressing mouse 1. I can see how that could be useful for sniping as well.
12
#12
0 Frags +
thinkMy medic config is setup to only heal when I'm not pressing mouse 1. I can see how that could be useful for sniping as well.

can i have a link to that?

[quote=think]My medic config is setup to only heal when I'm not pressing mouse 1. I can see how that could be useful for sniping as well.[/quote]
can i have a link to that?
13
#13
1 Frags +

Idk about his config, but mine does the same (heals only when you let go of mouse1)

alias set_normal_attack "alias +automedigun +attack; alias -automedigun -attack"
alias set_medigun_attack "alias +automedigun -attack; alias -automedigun +attack"

alias +automedigun "+attack"
alias -automedigun "-attack"

alias medigun "slot2; set_medigun_attack;r_drawviewmodel 0;viewmodel_fov 70"

alias syringegun "-attack;slot1; set_normal_attack;r_drawviewmodel 0;viewmodel_fov 70"

alias bonesaw "-attack;slot3; set_normal_attack;r_drawviewmodel 1;viewmodel_fov 86"

bind "MOUSE1" "+automedigun"
bind "1" "syringegun"
bind "2" "medigun"
bind "3" "bonesaw"
Idk about his config, but mine does the same (heals only when you let go of mouse1)

[code]alias set_normal_attack "alias +automedigun +attack; alias -automedigun -attack"
alias set_medigun_attack "alias +automedigun -attack; alias -automedigun +attack"

alias +automedigun "+attack"
alias -automedigun "-attack"

alias medigun "slot2; set_medigun_attack;r_drawviewmodel 0;viewmodel_fov 70"

alias syringegun "-attack;slot1; set_normal_attack;r_drawviewmodel 0;viewmodel_fov 70"

alias bonesaw "-attack;slot3; set_normal_attack;r_drawviewmodel 1;viewmodel_fov 86"

bind "MOUSE1" "+automedigun"
bind "1" "syringegun"
bind "2" "medigun"
bind "3" "bonesaw"[/code]
14
#14
4 Frags +

The medic autoheal script won't work for this because with medic, you need to constantly hold the button, whereas with sniper, holding the button will cause you to zoom in and out constantly. I do think this can be accomplished without wait commands, but it's going to take multiple aliases to function properly. I'll see what I can whip up when I get home (in 10-12 hours).

The medic autoheal script won't work for this because with medic, you need to constantly hold the button, whereas with sniper, holding the button will cause you to zoom in and out constantly. I do think this can be accomplished without wait commands, but it's going to take multiple aliases to function properly. I'll see what I can whip up when I get home (in 10-12 hours).
15
#15
0 Frags +
nixnytewhat about binding it to your movement / jump / crouch keys when you have rifle out?hanbrolosnip

Thanks. I added in a line so that mouse5 (replacing mouse4 in the script) now also resets mouse1 so I can unzoom without firing (dreamt about it last night). Gonna try it out now.

Khakijust ask Robin to make a sniper rifle that shoots when you let go of the mouse button; I mean they obviously really like making new weapons and weapons that appeal to people who enjoyed other game's interpretations of the weapon.(Original/AWPer Hand)

That would be amazing. Hopefully they won't put it in a salvaged crate or something.

[quote=nixnyte]what about binding it to your movement / jump / crouch keys when you have rifle out?[/quote]
[quote=hanbrolo]snip[/quote]
Thanks. I added in a line so that mouse5 (replacing mouse4 in the script) now also resets mouse1 so I can unzoom without firing (dreamt about it last night). Gonna try it out now.

[quote=Khaki]just ask Robin to make a sniper rifle that shoots when you let go of the mouse button; I mean they obviously really like making new weapons and weapons that appeal to people who enjoyed other game's interpretations of the weapon.(Original/AWPer Hand)[/quote]
That would be amazing. Hopefully they won't put it in a salvaged crate or something.
16
#16
2 Frags +

Alright so I've got 3 different versions (the other attempts make you continually go one direction if you press multiple buttons or just crash TF2 entirely)

1) Works but everytime you change direction, it -attacks (messes up SMG bad)
2) Also works but if you change weapons it makes you stop moving whatever direction you're holding (messes with movement)
3) Manually press either mouse2 or mouse5 everytime after firing; mouse5 is also a "reset" button if you're still firing or aren't sure where you are in the script.

Leaving #3 here, works fine, going to play with it for a couple weeks. Already feel like I'm better because I'm not twitching when I try to shoot, but I'm also hugely inconsistent as sniper so who knows.

// =======================================
// Sniper negative edge script - Jan 07, '13
// ========================
alias +negedge "+attack2; -attack; bind mouse1 +negattack"
alias -negedge "-attack2; bind mouse2 +negedge2"
alias +negedge2 "+attack2; -attack"
alias -negedge2 "-attack2; bind mouse1 +attack; bind mouse2 +negedge"

alias +negattack "-attack"
alias -negattack "+attack; bind mouse1 +attack"

bind mouse2 +negedge
bind mouse5 "-negedge2; -attack"
// =======================================

bind 1 "weapon1; r_drawviewmodel 0; bind mouse2 +negedge; -attack"
bind 2 "weapon2; r_drawviewmodel 1; bind mouse2 +attack2; -attack; -attack2; bind mouse1 +attack"
bind 3 "weapon3; r_drawviewmodel 1; bind mouse2 +attack2; -attack; -attack2; bind mouse1 +attack"

Alright so I've got 3 different versions (the other attempts make you continually go one direction if you press multiple buttons or just crash TF2 entirely)

1) Works but everytime you change direction, it -attacks (messes up SMG bad)
2) Also works but if you change weapons it makes you stop moving whatever direction you're holding (messes with movement)
3) Manually press either mouse2 or mouse5 everytime after firing; mouse5 is also a "reset" button if you're still firing or aren't sure where you are in the script.

Leaving #3 here, works fine, going to play with it for a couple weeks. Already feel like I'm better because I'm not twitching when I try to shoot, but I'm also hugely inconsistent as sniper so who knows.



// =======================================
// Sniper negative edge script - Jan 07, '13
// ========================
alias +negedge "+attack2; -attack; bind mouse1 +negattack"
alias -negedge "-attack2; bind mouse2 +negedge2"
alias +negedge2 "+attack2; -attack"
alias -negedge2 "-attack2; bind mouse1 +attack; bind mouse2 +negedge"

alias +negattack "-attack"
alias -negattack "+attack; bind mouse1 +attack"

bind mouse2 +negedge
bind mouse5 "-negedge2; -attack"
// =======================================

bind 1 "weapon1; r_drawviewmodel 0; bind mouse2 +negedge; -attack"
bind 2 "weapon2; r_drawviewmodel 1; bind mouse2 +attack2; -attack; -attack2; bind mouse1 +attack"
bind 3 "weapon3; r_drawviewmodel 1; bind mouse2 +attack2; -attack; -attack2; bind mouse1 +attack"
17
#17
0 Frags +
smakersThe medic autoheal script won't work for this because with medic, you need to constantly hold the button, whereas with sniper, holding the button will cause you to zoom in and out constantly. I do think this can be accomplished without wait commands, but it's going to take multiple aliases to function properly. I'll see what I can whip up when I get home (in 10-12 hours).

there's actually just an option that you only have to click the target once built into the game.
Sure, it's lazy mode, but it works.

[quote=smakers]The medic autoheal script won't work for this because with medic, you need to constantly hold the button, whereas with sniper, holding the button will cause you to zoom in and out constantly. I do think this can be accomplished without wait commands, but it's going to take multiple aliases to function properly. I'll see what I can whip up when I get home (in 10-12 hours).[/quote]
there's actually just an option that you only have to click the target once built into the game.
Sure, it's lazy mode, but it works.
18
#18
0 Frags +

is this code very helpful? i don't find it hard sniping the normal way. plus i use my ring finder on my right click, middle on my scroll and index on left click (don't ask me why). i think it would be harder for me to do this.

is this code very helpful? i don't find it hard sniping the normal way. plus i use my ring finder on my right click, middle on my scroll and index on left click (don't ask me why). i think it would be harder for me to do this.
19
#19
0 Frags +
DrPloxosmakersThe medic autoheal script won't work for this because with medic, you need to constantly hold the button, whereas with sniper, holding the button will cause you to zoom in and out constantly. I do think this can be accomplished without wait commands, but it's going to take multiple aliases to function properly. I'll see what I can whip up when I get home (in 10-12 hours).there's actually just an option that you only have to click the target once built into the game.
Sure, it's lazy mode, but it works.

I'm pretty sure the native TF2 autoheal technically double clicks targets, therefore uber flashes become really inefficient.

[quote=DrPloxo][quote=smakers]The medic autoheal script won't work for this because with medic, you need to constantly hold the button, whereas with sniper, holding the button will cause you to zoom in and out constantly. I do think this can be accomplished without wait commands, but it's going to take multiple aliases to function properly. I'll see what I can whip up when I get home (in 10-12 hours).[/quote]
there's actually just an option that you only have to click the target once built into the game.
Sure, it's lazy mode, but it works.[/quote]

I'm pretty sure the native TF2 autoheal technically double clicks targets, therefore uber flashes become really inefficient.
20
#20
0 Frags +
thinkI'm pretty sure the native TF2 autoheal technically double clicks targets, therefore uber flashes become really inefficient.

it's definitely inefficient, but it's a feature designed for pub healing.

[quote=think]
I'm pretty sure the native TF2 autoheal technically double clicks targets, therefore uber flashes become really inefficient.[/quote]
it's definitely inefficient, but it's a feature designed for pub healing.
21
#21
0 Frags +
DrPloxosmakersThe medic autoheal script won't work for this because with medic, you need to constantly hold the button, whereas with sniper, holding the button will cause you to zoom in and out constantly. I do think this can be accomplished without wait commands, but it's going to take multiple aliases to function properly. I'll see what I can whip up when I get home (in 10-12 hours).there's actually just an option that you only have to click the target once built into the game.
Sure, it's lazy mode, but it works.

Yeah, I've used that option. Indeed it does suck.

What I meant was that the medic autoheal script is constantly sending the +attack command and only stopping when you click. Trying to use that for sniper wouldn't work because you need to issue +attack2, but then immediately issue -attack2 to prevent the sniper from scoping and unscoping repeatedly.

[quote=DrPloxo][quote=smakers]The medic autoheal script won't work for this because with medic, you need to constantly hold the button, whereas with sniper, holding the button will cause you to zoom in and out constantly. I do think this can be accomplished without wait commands, but it's going to take multiple aliases to function properly. I'll see what I can whip up when I get home (in 10-12 hours).[/quote]
there's actually just an option that you only have to click the target once built into the game.
Sure, it's lazy mode, but it works.[/quote]


Yeah, I've used that option. Indeed it does suck.

What I meant was that the medic autoheal script is constantly sending the +attack command and only stopping when you click. Trying to use that for sniper wouldn't work because you need to issue +attack2, but then immediately issue -attack2 to prevent the sniper from scoping and unscoping repeatedly.
Please sign in through STEAM to post a comment.