DiZaRkYs Script Compilation and Autoexec Guide
Rules Latest Posts Who's Online
Search
Search Forums
Advanced Search
RSS Feed

DiZaRkYs Script Compilation and Autoexec Guide

#  Nov 03, 2007 at 6:24 AM
Join Date:
Oct 14, 2007
Post Count:
8
 
Laroops 78351
Loading...
Specialty: Demoman
Steam ID: Sorenn
 
Great, thanks.
#  Nov 04, 2007 at 4:07 PM
Join Date:
Sep 21, 2007
Post Count:
3864
 
Hellblazer 77363
Loading...
Specialty: Engineer
SponsorTech Support Award
 
#  Nov 05, 2007 at 12:21 PM
Join Date:
Oct 31, 2007
Post Count:
89
 
Specialty: Soldier
Steam ID: Isaak
 
I'll admit that I'm a little new to this scripting thing, but I'm getting the hang of it, thanks or the cool info! But I am having a little trouble with my scripts right now, hopefully you can help me.

I had taken a look at your scripts and got it working so that the F1-F8 keys did my engineer stuff, and 1-9 and 0 did my spy disguises, and its worked great for me so far. But then I noticed recently that I could no longer use 1-9 and 0 for my quick chat commands or to even participate in map votes (Which also left the vote screen on my hud for the entire game.) And I want to try gaining this functionality back.

Is there a way to make it so that my spy disguise commands dont interfere when trying to vote or choose the chat commands by number? Like giving them priority? For example, in the options you can set your weapon category's to the number keys and you can still use the number keys to vote and use the chat commands without issue, can you fix this in the script?

If it is not possible to do that, could I instead be able to make my script accept the same keys for both my Spy and Engineer script without having to have extra .cfg files? Like how in the options you can have the Demoman's detonate command be the same key as the Spy's cloak and they dont interfere with each other.

Any help you can provide would be excellent!
#  Nov 05, 2007 at 1:25 PM
Join Date:
Sep 21, 2007
Post Count:
3864
 
Hellblazer 77363
Loading...
Specialty: Engineer
SponsorTech Support Award
 
As a temporary work around, you can save this script to undo the bindings on the 1-0 keys

alias undo10 "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5; bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9 slot9; bind 0 slot10"

bind undo10 F12

Then just execute the script and push F12 to put the 1-0 keys back to where they belong. If you are up to the challenge then you can try to integrate this into the scripts  (view mine as an example, the post right above yours)
#  Nov 08, 2007 at 5:27 PM
Join Date:
Sep 18, 2007
Post Count:
1772
 
C4Cypher 77179
Loading...
Specialty: Engineer
Steam ID: c4cypher
Clan: [TF2F]
2008 Battle EngieEpic DefenderKing EngieMelee MasterSponsor
 
//C4Cypher's  special config, (should be usable with most classes)

//The purpose of this script is to minimize the required hand movement neccecary to operate the three primary weapons
//utilized in TF2. Feel free to use your own binds in place of 'mouse4' and 'mwheeldown'

//The alias 'toggleprimary' is meant to swap between the first two weapons a class uses

//The alias 'swapbutton' is used to switch between the current 'primary' weapon to the melee weapon, and back

//The alias 'callbutton' will call for a medic if the primary weapon is out, and warn of spies if the melee weapon is out

//The alias 'swapspecial' will bring up the Engineer's toolbox or spy's disguise kit if those classes are played

//The alias 'specialkey' will bring up the Engineer's detonator or trigger the spy's last disguise

//I've taken the liberty of binding 'z' to thanks, and 'x' to help! ... as those are the only binds I use from those menus


//Note: This script is designed to be run with the autoswitch option turned on, it will not function properly otherwise.





//The 'swap' set of aliases

alias primaryslot "slot1"


alias swapbutton "swapprimary"
alias swapprimary "alias swapbutton swapmelee; alias callbutton callmedic; primaryslot"
alias swapmelee  "alias swapbutton swapprimary; alias callbutton callspy; slot3"
alias toggleprimary "toggleslot2"
alias toggleslot1 "alias toggleprimary toggleslot2; alias primaryslot slot1; swapprimary"
alias toggleslot2 "alias toggleprimary toggleslot1; alias primaryslot slot2; swapprimary"
alias swapspecial "alias swapbutton swapprimary; alias callbutton callcheer; slot4"

//the 'call' set of aliases

alias callbutton "callmedic"
alias callmedic "voicemenu 0 0"
alias callspy "voicemenu 1 1"
alias callhelp "voicemenu 2 0"
alias callcheer "voicemenu 2 2"
alias callthanks "voicemenu 0 1"

alias specialkey "slot5; lastdisguise;"

//Binds ... use what is most comfortable for you

bind "mouse4" swapbutton
bind "mouse5" callbutton
bind "mwheeldown" toggleprimary
bind "e" swapspecial
bind "z" callthanks
bind "x" callhelp
bind "q" specialkey



#  Nov 08, 2007 at 6:37 PM
Join Date:
Oct 20, 2007
Post Count:
78
 
useful_idiot 78894
Loading...
Specialty: Soldier
Steam ID: [PESP] aaronthejuicebox
Clan: Party Escort Submission P
 
how do you "add" it to tf2?
#  Dec 08, 2007 at 2:31 PM
Join Date:
Oct 07, 2007
Post Count:
618
 
Specialty: Medic
Steam ID: mellowshipslinky
 
Quote:
Originally Posted by Isaak Johnson
I'll admit that I'm a little new to this scripting thing, but I'm getting the hang of it, thanks or the cool info! But I am having a little trouble with my scripts right now, hopefully you can help me.

I had taken a look at your scripts and got it working so that the F1-F8 keys did my engineer stuff, and 1-9 and 0 did my spy disguises, and its worked great for me so far. But then I noticed recently that I could no longer use 1-9 and 0 for my quick chat commands or to even participate in map votes (Which also left the vote screen on my hud for the entire game.) And I want to try gaining this functionality back.

Is there a way to make it so that my spy disguise commands dont interfere when trying to vote or choose the chat commands by number? Like giving them priority? For example, in the options you can set your weapon category's to the number keys and you can still use the number keys to vote and use the chat commands without issue, can you fix this in the script?

If it is not possible to do that, could I instead be able to make my script accept the same keys for both my Spy and Engineer script without having to have extra .cfg files? Like how in the options you can have the Demoman's detonate command be the same key as the Spy's cloak and they dont interfere with each other.

Any help you can provide would be excellent!
I had the same problem after I rebound weapon group1, 2 and 3 to different keys.

It turns out that the voice menus don't actually use key 1 2 3 4 etc, but instead are activated by "weapongroup1" and etc.

So, essentially, if you bind away the capability to switch to a weapon group by pressing a specific button, you also bind away the capability of participating in a map vote or using the voice com menu.
#  Dec 09, 2007 at 1:57 AM
Join Date:
Oct 07, 2007
Post Count:
618
 
Specialty: Medic
Steam ID: mellowshipslinky
 
I've found that the Auto Reload script is the best autoreloading script, much better than the one that auto reloads with movment. Since this one makes it actually possible to use the medigun, pistol, and Magnum AT ALL.

Here's a combination of Auto Attack and Auto Reload. the bolded part of Auto Reload makes it so that firing automatically takes you out of Auto Attack.

//Auto Reload
bind mouse1 "+shootNreload"
bind p "reloadON"
alias reloadON "bind mouse1 +shootNreload; developer 1; echo ** Idle Auto-Reload ON **; wait 10;

developer 0; bind p reloadOFF"
alias reloadOFF "bind mouse1 +attack; developer 1; echo ** Idle Auto-Reload OFF **; wait 10;

developer 0; bind p reloadON"
alias +shootNreload "+attack;"
alias -shootNreload "-attack; Attack2; wait 10; +reload; wait 50; -reload"

//Attack Toggle

alias AttackToggle "Attack1"
alias Attack1 "+attack; alias AttackToggle Attack2"
alias Attack2 "-attack; alias AttackToggle Attack1"

//Attack Toggle key binding
bind "mouse3" "AttackToggle"
#  Dec 19, 2007 at 5:08 PM
Join Date:
Oct 19, 2007
Post Count:
170
 
cry4me_sky 78823
Loading...
GamerTag: cry4mesky
 
so i tried most of these scripts and some of them worked.  whith the engie script f1 and f6 do what they are supposed to but the other buttons dont,  and the spy script auto disguises but the f1- fwhatever buttoms dont work.

someone mentioned having like a default script to call to cancel out the other scripts...... does anyone mind posting theres?

on on of the autoexec scripts bposted i noticed a cleanup button... what script would you pair up to execute with that button?
#  Dec 19, 2007 at 5:46 PM
Join Date:
Oct 19, 2007
Post Count:
170
 
cry4me_sky 78823
Loading...
GamerTag: cry4mesky
 
ok so i made a cleanup config that has stuff like this:


//configrestore

bind "MOUSE1" "MOUSE1"
bind "MOUSE2" "MOUSE2"
bind "MOUSE3" "MOUSE3"
bind "MWHEELUP" "MWHEELUP"
bind "MWHEELDOWN" "MWHEELDOWN"
bind "f1" "f1"
bind "f2" "f2"
bind "f3" "f3"
bind "f4" "f4"
bind "f5" "f5"
bind "f6" "f6"
bind "f7" "f7"
bind "f8" "f8
bind "f9" "f9"
bind "f10" "f10"
bind "f11" "f11"
bind "f12" "f12"




will this help at all? or do i have to bind mous1 to attack and so on?


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