Autoload class scripts

clockw0rk
07-22-2008, 07:19 AM
Right now I am using a menu script to achieve this. Didn't valve add this in automatically a while back or not? Can I delete this script as long as I have my .cfg's labeled correctly (aka soldier.cfg, spy.cfg)?

Ekos
07-22-2008, 08:44 AM
ye, u should be able to delete it. obv keep the autoload script just in case something goes wrong.

what scripts are u using? i havent found anything interesting/very useful.

HypnosisFX
07-22-2008, 09:07 AM
what good scripts are out there? gg last night ekos, i never played those custom maps there pretty good.

clockw0rk
07-22-2008, 10:53 AM
ye, u should be able to delete it. obv keep the autoload script just in case something goes wrong.

what scripts are u using? i havent found anything interesting/very useful.

Spy quickchange/autodisguise and soldier rocket+jump

HypnosisFX
07-22-2008, 10:58 AM
I got rocket jump script, when i was playing i seen a demo just pump stickys real fast with long distance..is that a script?

DarkSabreTribal
07-22-2008, 03:07 PM
Soldier
//Rocket Jump
alias +rocketjump "+jump;+duck;wait;+attack"
alias -rocketjump "-jump;-attack;wait;wait;wait;-duck"
bind "e" "+rocketjump

Demomanalias +pipejump "+jump;+duck;wait 3;+attack2"
alias -pipejump "-jump;-duck;wait 3;-attack2"
bind "e" "+pipejump"


^^ Those two are actually useful.

These are really just for lulz. Sometimes I'll use the pyro one as a spy check around a dispenser.

Heavy/Pyro
//Pyro Panic Button v1.0
//Code:

alias "battlecry" "voicemenu 2 1";
alias "+panic" "battlecry; cl_yawspeed 3000; +left; +attack";
alias "-panic" "-attack; -left; cl_yawspeed 210";
bind "e" "+panic";

//End of code

I also bind the voice commands I actually use to the F keys instead of using the z/x/c stuff.

MonkeyHero
07-23-2008, 09:45 PM
I wrote a script so that only the 2 primary weapons are on the mouse wheel and melee is bound to a side mouse button. It's nice to not worry about accidentally pulling the melee weapon out when you don't mean to. mouse5 is the "forward" side mouse button, or you can change it to whatever you want.

developer 1
echo "== Loaded def.cfg =="
wait 10
developer 0

// Only primary and secondary weapons on mousewheel
alias weaponSetUp "secondary"
alias weaponSetDown "secondary"
alias primary "slot1; wait; alias weaponSetUp secondary; alias weaponSetDown secondary"
alias secondary "slot2; wait; alias weaponSetUp primary; alias weaponSetDown primary"
bind "MWHEELUP" "weaponSetUp"
bind "MWHEELDOWN" "weaponSetDown"

// Melee weapons on mouse 5
alias equipMelee "slot3; alias weaponSetUp primary; alias weaponSetDown secondary"
bind "mouse5" "equipMelee"

// Right-click to special attack
bind "mouse2" "+attack2"

For most of the class cfg files I just have them do
exec "def.cfg"
which makes sure that the mousewheel thing and right-click are set correctly. For a couple of the classes I then have some extra stuff like rocket jump for the soldier on right-click, and some engineer/spy crap that I never use.

edit: I updated the mousewheel dealie so that wheel up always switches to primary, and down to secondary after you've equipped your melee weapon. The old version didn't allow you to control which of the 2 weapons you'd get.

Noot
07-25-2008, 06:17 PM
No script will ever rocket jump better than me.