Upvote Upvoted 4 Downvote Downvoted
Scripting Help
posted in Q/A Help
1
#1
3 Frags +

I'm a total scripting noob but so I use a script from tf2mate. The spy file in the crosshair switcher folder says to ignore the crosshair switcher and sets the crosshair as a medium white dot. So just for spy I'd like to have a medium sized dot crosshair of this color: ff00ff. Also I'd like to not have a viewmodel for my primary until I hit m2 to cloak, how would I go about doing these? Thank you. :)

I'm a total scripting noob but so I use a script from tf2mate. The spy file in the crosshair switcher folder says to ignore the crosshair switcher and sets the crosshair as a medium white dot. So just for spy I'd like to have a medium sized dot crosshair of this color: ff00ff. Also I'd like to not have a viewmodel for my primary until I hit m2 to cloak, how would I go about doing these? Thank you. :)
2
#2
2 Frags +

From what I remember when I used tf2mate, the crosshair switcher script was outdated and seemed to be missing certain configs. I'd highly recommend downloading the actual broesel crosshair switcher here:
http://code.google.com/p/broesels-crosshair-switcher/

As for your spy script, here's mine modified. It removes viewmodels when you shoot your gun (and also automatically when you take the gun out), then puts them back if you cloak or switch weapons:

echo "spy settings loaded"

exec clear

exec crosshairswitcher/switcher; spy

bind "mouse1" "+spyshoot"
bind "mouse2" "+spywatch"

alias +spyshoot "+attack;r_drawviewmodel 0;spec_next"
alias -spyshoot "-attack"
alias +spywatch "+attack2;r_drawviewmodel 1;spec_prev"
alias -spywatch "-attack2"

^In spy.cfg

//SPY
alias spy_primary         "medium; pink; dot; r_drawviewmodel 0; bind "mouse1" "+spyshoot""
alias spy_secondary       "medium; pink; dot; r_drawviewmodel 1; bind "mouse1" "+attack""
alias spy_melee           "medium; pink; dot; r_drawviewmodel 1; bind "mouse1" "+attack""

^In crosshairswitcher/settings.cfg

Again, this script is only applicable to Broesel's crosshair switcher, since it uses aliases created in configs elsewhere.

From what I remember when I used tf2mate, the crosshair switcher script was outdated and seemed to be missing certain configs. I'd highly recommend downloading the actual broesel crosshair switcher here:
http://code.google.com/p/broesels-crosshair-switcher/

As for your spy script, here's mine modified. It removes viewmodels when you shoot your gun (and also automatically when you take the gun out), then puts them back if you cloak or switch weapons:
[code]
echo "spy settings loaded"

exec clear

exec crosshairswitcher/switcher; spy

bind "mouse1" "+spyshoot"
bind "mouse2" "+spywatch"

alias +spyshoot "+attack;r_drawviewmodel 0;spec_next"
alias -spyshoot "-attack"
alias +spywatch "+attack2;r_drawviewmodel 1;spec_prev"
alias -spywatch "-attack2"
[/code]
^In spy.cfg

[code]
//SPY
alias spy_primary "medium; pink; dot; r_drawviewmodel 0; bind "mouse1" "+spyshoot""
alias spy_secondary "medium; pink; dot; r_drawviewmodel 1; bind "mouse1" "+attack""
alias spy_melee "medium; pink; dot; r_drawviewmodel 1; bind "mouse1" "+attack""
[/code]
^In crosshairswitcher/settings.cfg

Again, this script is only applicable to Broesel's crosshair switcher, since it uses aliases created in configs elsewhere.
3
#3
1 Frags +

Thank you!

Thank you!
Please sign in through STEAM to post a comment.