r/tf2scripthelp • • Oct 01 '16

Explanation Difference between autoexec and reset.cfg ? Do I need them both ?

My class specific cfgs reads:

exec default
list of specific commands

 

default.cfg reads as all keybindings and mouse functions: wasd movement, mouse1 attacks, b lastdisguise etc...

 

My autoexec only has :

hud_combattext 1
hud_combattext_batching 1
hud_combattext_batching_window 2
viewmodel_fov 75
fov_desired 90

 

  1. If want something for all classes it is said I should add them to autoexec. But reset does the same (?) So I think having them both is redundant? Or not ?

 

2) Why the following didn't work in autoexec ? It did. I made a new test.

bind "RIGHTARROW" "load_itempreset 2"

bind "DOWNARROW" "load_itempreset 1"

bind "UPARROW" "load_itempreset 3"

bind "LEFTARROW" "load_itempreset 0"

3) I do remember I couldn't get the nullmovement & crosshair color script to work in autoexec(it's got "//" in it), so I did like Stabby and create its own .cfg and set it to be executed in each class.cfg

In theory it should be have worked in autoexec , why it didn't ?

From now on what kind of stuff should I add to autoexec and which one should I put into default.cfg ?

1 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Oct 02 '16

I forgot to mention:

my class specific is actually:

-exec default.cfg

-exec nullmovemen&crosshair.cfg

-then class specific scripts

Therefore, a "general" script should be on autoexec with no rebind in default? I mean:

  • nullmovement in autoexec
  • default.cfg shouldn't have w-> forward, s-> backwards... etc ?

 

If I set game parameters for some classes and then I want it to reset to the remaining classes where should I have it ? Let's say it's

sensitivity 1.0 is for 5 classes

but there are specific values for sniper, scout, heavy in their respective cfgs...so sensitivity 1 should be in default right ?

 

I still don't understand why having autoexecand default if I can exec default in each class cfg and then have my specific binds. The same way: why should I have default.cfg if all my general can be in autoexec , that is ran before any class specific.cfg?

Guess I 'm figuring out now