RSS Feed

Need help with this No-Crosshair script.

#  Sep 18, 2009 at 8:50 PM
Join Date:
May 14, 2009
Post Count:
74
 
Steam ID: Sw00N
 
Hello! I just need a little help with this script, I think the problem is most likely very minor, I'm just not good with this sort of thing /:
The script takes away the cross hair while in-scope and is only for custom crosshairs:

bind mouse2 +scope1  //YOUR SCOPE(SECONDARY FIRE) BUTTON
bind mouse1 +scatk  //YOUR SHOOT(PRIMARY FIRE) BUTTON
bind space +inair  //YOUR JUMP BUTTON
alias oldval "cl_crosshair_scale 30" //EDIT THIS VALUE TO YOUR CURRENT ONE

alias +scope1 "+scoperem"
alias -scope1 "-scoperem"
alias +scoperem "+attack2;cl_crosshair_scale 0"
alias -scoperem "-attack2; alias +scope1 +crossb; alias -scope1 -crossb; alias +scatk +etk; alias -scatk -etk"
alias +crossb "+attack2;oldval"
alias -crossb "-attack2;alias +scope1 +scoperem; alias -scope1 -scoperem"
alias +etk "+attack;oldval"
alias -etk "-attack;alias +scope1 +scoperem; alias -scope1 -scoperem; alias +scatk +attack; alias -scatk -attack"
alias +inair "+jump; oldval"
alias -inair "-jump; alias +scope1 +scoperem; alias -scope1 -scoperem"

It works like a charm, I just have a minor problem. Everytime I start TF2, the Jump, Primary and Secondary Fires are not binded to Space, M1, M2 respectively. Re-binding them is just a slight annoyance.

Also while I'm on topic, can someone give me a script for Auto-Reload? I like it quite a bit (I used to use the new option for it in the menu) but when I play Spy, everytime I shoot I automatically reload my revolver/ambassador and it get's in the way of the screen, same with the Heavy's shotty. I just want auto-reload for every other class.
Thanks alot for any help in advanced!
#  Sep 18, 2009 at 9:02 PM
Join Date:
Jun 13, 2009
Post Count:
324
 
M_24 90984
Loading...
Steam ID: Hardboiled_24
 
// Binds
bind mouse1 +sniper // Keep this bound to +attack if you enable that mp option
bind mouse2 +zoom
bind q _lastinv
bind 1 slot1
bind 2 _slot2
bind 3 _slot3

// Scripts
alias crosshair0 "exec nocrosshair.cfg"
alias crosshair1 "cl_crosshair_file crosshair3"
alias +zoomin "+attack2; crosshair0"
alias -zoomin "-attack2; alias +zoom +zoomout; alias -zoom -zoomout"
alias +zoomout "+attack2"
alias -zoomout "-attack2; alias +zoom +zoomin; alias -zoom -zoomin; crosshair1"
alias +zoom +zoomin
alias -zoom -zoomin

alias +sniper "+attack"
alias -sniper "-attack; -zoomout"

alias _lastinv "lastinv; -zoomout"
alias _slot2 "slot2; -zoomout"
alias _slot3 "slot3; -zoomout"
in nocrosshair.cfg:
Code:
cl_crosshair_file ""
crossahair 0
in all other class .cfgs:
Code:
cl_crosshair_file *INSERT NAME OF CROSSHAIR YOU USE*
bind mouse1 +attack
bind mouse2 +attack2
bind q lastinv
bind 1 slot1
bind 2 slot2
bind 3 slot3
if you have any questions asked. this works for sure btw
#  Sep 18, 2009 at 9:03 PM
Join Date:
Aug 18, 2008
Post Count:
534
 
Specialty: Sniper
Steam ID: The Geniusman
 
You'll want to add the following lines to all class configs except sniper:

bind "mouse1" "+attack"
bind "mouse2" "+attack2"
bind "space" "+jump"

This will set the proper binds for the other classes where the script isn't needed. To enable or disable auto-reload for specific classes, just add cl_autoreload 0 or 1 to the appropriate class config, 0 meaning off and 1 meaning on.

Hope that helps.
#  Sep 18, 2009 at 9:13 PM
Join Date:
May 14, 2009
Post Count:
74
 
Steam ID: Sw00N
 
Wow, thanks alot guys, this is just what I needed! THANKYOU <3

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