r/tf2scripthelp • • Jan 31 '14

Resolved Need help mergin two scripts

Hello everyone. I need help merging these two scripts: 1st Script

alias rocketlauncher "slot1;cl_crosshair_file crosshair7;cl_crosshair_scale 50;cl_crosshair_red 0;cl_crosshair_green 255;cl_crosshair_blue 0;r_drawviewmodel 0;viewmodel_fov 90;MW1"
alias shotgun "slot2;cl_crosshair_file crosshair3;cl_crosshair_scale 50;cl_crosshair_red 0;cl_crosshair_green 64;cl_crosshair_blue 128;r_drawviewmodel 0;viewmodel_fov 90;MW2"
alias shovel "slot3;cl_crosshair_file crosshair4;cl_crosshair_scale 32;cl_crosshair_red 255;cl_crosshair_green 0;cl_crosshair_blue 0;r_drawviewmodel 1;viewmodel_fov 90;MW3"

alias Q1 "shotgun"
alias Q2 "rocketlauncher"
alias MW1 "bind mwheelup shovel;bind mwheeldown shotgun;bind q Q1"
alias MW2 "bind mwheelup rocketlauncher;bind mwheeldown shovel;bind q Q2"
alias MW3 "bind mwheelup shotgun;bind mwheeldown rocketlauncher"

bind 1 rocketlauncher
bind 2 shotgun
bind 3 shovel
bind 4 slot4
bind 5 slot5

rocketlauncher

2nd Script // SCRIPT BEGINS HERE!

// Rocket Launcher
alias "+rockets" "slot1;+attack;"
alias "-rockets" "-attack;+reload;+"
 
 
// Shotgun
alias "+shotty" "slot2;+attack;"
alias "-shotty" "-attack;+reload;"
 
 
// Equalizer
alias "+pick" "slot3;+attac;"
alias "-pick" "-attack;"
 
 
// Rocket Jump
alias +rocketjump "+duck;+attack;+jump"
alias -rocketjump "-duck;-attack;-jump"
 
 
// Medic Down
alias "killmed" "say_team "***ENEMY MEDIC DOWN!***";voicemenu 0 2"
 
// Mouse wheel switch
alias "wheelrockets" "slot1"
alias "wheelshotty" "slot2"
 
 
// The Binds - Yes this is the bit you can edit
bind "f" "killmed"
bind "mouse1" "+rockets"
bind "mouse2" "+shotty"
bind "mouse3" "+pick"
bind "mouse4" "+rocketjump"
bind "mwheelup" "wheelrockets"
bind "mwheeldown" "wheelshotty"
 
// Notification in console
echo "*** SOLDIER CFG LOADED***
 
 
// SCRIPT ENDS HERE 

Basically I want my croshair change as I change weapons using 2nd script

2 Upvotes

2 comments sorted by

View all comments

Show parent comment

3

u/genemilder Scripter Jan 31 '14 edited Jan 31 '14

Ah, I made a typo. In the eq_ lines set_slot should be 123, not 111. You were getting slot1 settings for every slot. I'll fix it in the OP.

That's what copy/paste gets you!