RSS Feed

Need a pistol script

#  Feb 27, 2009 at 1:13 AM
Join Date:
Oct 27, 2007
Post Count:
3093
 
NULLNAME 79381
Loading...
Steam ID: NULLNAME
Clan: {TF2F}
King LagSquigMember
 
I've searched, though not super hard.
What I'm looking for in a pistol script:

I want to be able to hold mouse2 when my scattergun is out and have it switch to the pistol, unload bullets, reload, and switch back when i release mouse2.  I had one configured like this but it put auto-reload on my FAN....so I had to take it off.  THe one on FPSB would be perfect except it doesn't wait for the clip to finish reloading before it switches to the scattergun; so it ends up not reloading.  Also, if I manually switch to the scattergun, it'll switch me back to the pistol once.

And yeah, I know, I'm a damn cheater because I don't want to break my Deathadder (they're already supposed to be fragile).
#  Feb 27, 2009 at 1:20 AM
Join Date:
Oct 26, 2007
Post Count:
5209
 
sishgupta 79293
Loading...
Specialty: Demoman
Steam ID: Album
GamerTag: sishgupta
Clan: {TF2F} Community
Admins AllPerson of the YearSponsorSquigMember
 
// AutoPistol
//=========================================================
alias +apistol "alias repeat_function +repeat; +repeat"  // While held down, starts the repeater function and sets it to repeat.
alias -apistol "alias repeat_function stoprepeating"     // When released, repeat_function is disabled through the stoprepeating alias.
alias repeat_function "+repeat"                          // So long as this alias holds, +attacks and waits will continue to fire.
alias +repeat "+attack; wait 2; -repeat"                 // Repeater function attacks, waits, goes to -repeat.
alias -repeat "-attack; wait 2; repeat_function"         // Stops attack, waits, fires another repeat_function.
alias stoprepeating ""
//=========================================================

//pistol quickswitch attack
//=========================================================
alias +quickpistol "slot2; +apistol"
alias -quickpistol "-apistol; wait; lastinv"
//=========================================================
bind mouse2 +quickpistol
#  Feb 27, 2009 at 1:22 AM
Join Date:
Oct 26, 2007
Post Count:
5209
 
sishgupta 79293
Loading...
Specialty: Demoman
Steam ID: Album
GamerTag: sishgupta
Clan: {TF2F} Community
Admins AllPerson of the YearSponsorSquigMember
 
btw they are fragile cuz they are built like shit.

feels like i could snap a deathadder in half with my bare hands...
#  Feb 27, 2009 at 4:05 AM
Join Date:
Oct 21, 2007
Post Count:
2690
 
teamchuckles 78952
Loading...
Specialty: Scout
Steam ID: teamchuckles!
Clan: { }
King ScoutSquigMember
 
You don't want a pistol script that's going to automatically reload and then switch back to Scatter. Then you'll just have to press it again if you need to fire more shots. Album's script is fine if you insist on having your Scattergun/Last Inventory out as soon as you release your mouse2 button, but just in case, here is the one I use, it's the one on fpsbanana but I took some stuff out so that the pistol comes up when I press my mouse5 button, and stays out until I switch back to my Scattergun. It doesn't fire unless I hold the button down, so if someone turns the corner that's not far enough to reload before you reach it, I can let go and save my ammo for a second, and when I get to the corner I don't have to pull out my pistol again and get a couple extra shots in the amount of time it would've taken to switch back to pistol. Both have their advantages, I suppose... pick your poison? It also doesn't use +reload so there will be no problems with autoreload on your FaN.

alias "+rs" "alias reps +rsse;+rsse"
alias "+rsse" "slot2;-reload;+attack;wait 3;-rsse"
alias "-rsse" "-attack;wait 3;reps"
alias "reps" "+rsse"
alias -rs "alias reps none"
alias none ""
bind "mouse2" "+rs"
#  Feb 27, 2009 at 5:28 PM
Join Date:
Oct 27, 2007
Post Count:
3093
 
NULLNAME 79381
Loading...
Steam ID: NULLNAME
Clan: {TF2F}
King LagSquigMember
 
Hmm....thanks to both of you!  I think I'll use chuckles; because I guess that control is worth having to manually switch back (/lazy). 
But if it's ends up not being worth it for some reason; I'll try out album's.

Also, yeah, when/if this breaks I'm either getting a Habu or 518. 
#  Feb 27, 2009 at 6:54 PM
Join Date:
Apr 03, 2008
Post Count:
2329
 
Steam ID: Twilight Mage
 

"Need a pistol script here!"
"Need a pistol script here!"
(gah, stupid anti-spam patch messed me up)
*waits*
"Need a pistol script here!"

#  Feb 27, 2009 at 7:24 PM
Join Date:
Dec 01, 2007
Post Count:
2724
 
josef 80821
Loading...
Steam ID: joebot
Clan: {TF2F}
SquigMember
 
yeah, i just use Album's script, with the "wait; lastinv" command removed. like chuck's says, i prefer to have the option to pause, reload, or just switch back to the scatter.

Copyright 2007-2008 All Rights Reserved

Team Fortress 2


2 Guys 1 Kill: {TF2F} FlyingPenguin - (102 kill assists)
Captures Blocked: Nimbli Bimbli - (26 captures blocked)
Dominator: {TF2F} Bitch Nasty - (25 dominations)
Flags Captured: Corporal Clegg - (11 flags captured)
Flags Defended: MechaEdd - (12 flags defended)
Physician Assisted Homicide: {TF2F}SME®BUI©K - (271 medic kill assists)
Points Captured: {TF2F}SME®BUI©K - (30 points captured)
Revenger: Count_Flakula - (10 revenges)
Spy Power: Chro - (19 objects killed as spy)
Ubercharger: {TF2F}SME®BUI©K - (89 ubercharges)
Axe Man: {TF2F} Ninja Dude - (18 kills with fireaxe)
Axtinguished: {TF2F} BOOSH Rizzilio - (81 kills with axtinguisher)
Batter Up!: soup! - (16 kills with bat)
Biggest Prick: Sam - ClutchKill.com - (8 kills with syringegun)
Blood Sucker: {TF2F}SME®BUI©K - (30 kills with blutsauger)
Broke Backburner: {TF2F} FlyingPenguin - (223 kills with backburner)
Can You Dig It?: {TF2F}.TüRb!NE. - (3 kills with shovel)
Doctor's Certificate: Maero - (16 kills with bonesaw)
Drunken Brawler: [???] Deviruchi - (4 kills with bottle)
Epic Defender: {TF2F} Spy - (9 kills with wrench)
Fire Spitter: {TF2F}blistering - (100 kills with flamethrower)
Flare Gunner: {TF2F} FlyingPenguin - (12 kills with flare gun)
Grenade Spammer: GeneralSheep - (47 kills with pipe)
Grey Matter: STar - (168 snipings as sniper)
Hadouken Master: Xandier - (1 kills with pyro taunt)
Hot Potato: {TF2F} BOOSH Rizzilio - (4 kills with rocket deflection)
I <3 Sasha: {TF2F} Bitch Nasty - (181 kills with minigun)
Knife Maniac: {TF2F} Dartagnan - (109 knifings)
Last Resort: [Ba-El] BoC - (26 kills with smg)
Manslayer: [FRGT] Klare - (10 kills with machete)
Master Fister: Maero - (3 kills with fists)
Peashooter Marksman: Corporal Clegg - (48 kills with scout pistol)
Pickle Squad Award: [NH]Pitt - (18 pickles man handled)
Rocket Scientist: [TF2F]Lancer - (217 kills with rocket)
Scatter Shot: Corporal Clegg - (147 kills with scattergun)
Sentrygun Master: Numenor - (142 kills with sentrygun)
Spam Blocker: {TF2F} BOOSH Rizzilio - (1 kills with pipe deflection)
Spy Checker: {TF2F} Fanlaen - (5 kills with pistol)
Sticky Explosion: {TF2F}Album - (105 kills with pipe remote)
Ubersawer: Psycholord - (27 kills with ubersaw)
Stats Refreshed 6/24/2008 5:00:03 AM CST
AddThis Social Bookmark Button
Fortcast Podcast
Donate
Welcome, you are not logged in.
Login or Register
Team Fortress 2 Fort Team Fortress 2 Fort