_KermitYou can probably do "incrementvar tf_viewmodels_offset_override x 0 150 10"
The "incrementvar" command can only handle 3 arguments: valueMin, valueMax, Delta. Sadly it won't work like that, although setting just those three values changes only the X axis.
quintoshnot possible in tf2 without setting aliases for every x, y, z (which isn't a lot of work if you use autofill really)quick python script for this:
There's some obvious big improvements (support for decrementing instead of just having to wrap around, and support for floats / not having to always be an integer) but this should get the idea across.
# range to set
min = -2
max = 2
# enforce proper wrapping rules
def getCoords(x, y, z, separator):
toret = ''
toret += str((x - min) % (max - min + 1) + min) + separator
toret += str((y - min) % (max - min + 1) + min) + separator
toret += str((z - min) % (max - min + 1) + min)
# base binds
for c in ['x', 'y', 'z']:
print('alias "inc_vm_' + c + '" "vm_0_0_0"')
# internal state binds
for x in range(min, max + 1):
for y in range(min, max + 1):
for z in range(min, max + 1):
toprint = 'alias "vm_' + getCoords(x, y, z, '_') + '" "'
toprint += 'tf_viewmodels_offset_override ' + getCoords(x, y, z, ' ') + ';'
toprint += 'alias inc_vm_x vm_' + getCoords(x+1, y, z, '_') + ';'
toprint += 'alias inc_vm_y vm_' + getCoords(x, y+1, z, '_') + ';'
toprint += 'alias inc_vm_z vm_' + getCoords(x, y, z+1, '_') + '"'
I appreciate your effort, but there are a few problems with this approach that prevented me from using it before even asking, namely:
1) TF2 config files cannot be larger than 1 Mb, which would mean those would have to be divided in a heckton files.
2)This script is great, but it would help to not involve the x axis since it is possible to manipulate it with incrementvar
3)Decrement support is another reason why this idea is even needed, it would be a tad easier with only increments.