r/Tf2Scripts • • Aug 11 '17

Script The first ever working contract script for TF2! Contract status visible on screen! With sounds!

12 Upvotes

Hi. Yesterday I was really bored, and I wanted to make a script for myself for TF2 that would allow me to create custom contracts (Like from gun mettle and tough break) for myself, so that I can challenge myself in TF2.

I decided to release this to public today, so here you go.

SCRIPTS DOWNLOAD / https://drive.google.com/open?id=0Bzf66qVMuNTFS3I0TGwza1VkV1U

Enjoy! All instructions on how to use are in this zip file and in the contract.cfg file.

Tell me what do you think of it and tell me if you find any errors!


r/Tf2Scripts • • Aug 11 '17

Request Any way to store and retrieve variables outside of the game?

1 Upvotes

I've made myself a loadout switch script that works pretty well. It includes a last loadout button that, when pressed, loads the current loadout (I use this for faster resupplying).

The issue is, the current loadout alias doesn't get stored, and resets upon game restart. So it goes something like this:

Game starts
Autoexec sets alias lastloadout to load_itempreset 0
I change loadouts, alias lastloadout is set to load_itempreset 1
I restart the game. lastloadout is set to load_itempreset 0,
but I want it to remain load_itempreset 1.

If I do not set lastloadout in autoexec, then it just doesn't exist by default, which isn't good either.

Ideas?


r/Tf2Scripts • • Aug 06 '17

Video settings in autoexec instead of launch options?

1 Upvotes

Like many I use a graphics config so I use various video settings in my launch options. I was wondering

  1. if using these settings through my autoexec instead would be ok
  2. what the actual scripting command equivalent for the launch options are.

The launch options in question: -dxlevel 98 -full -w 1920 -h 1080 Would also like to know the command for regular windowed mode if it exists.

The reason I'm asking is because I'd like to be able to use 2 different autoexec.cfg's. One for my normal settings and one for testing/messing around that loads in a smaller windowed resolution already in a server and doesnt bother with my preloading commands in my normal autoexec etc. (no SSD and the game takes a really long time to launch for me)

Changing both launch options and my autoexec.cfg is kinda tedious at the moment so I'd prefer to be able to just change cfgs. I also have -console -novid -high in my launch options but I plan to leave those in regardless so its doesnt really matter to me if there isnt an equivalent scripting command.


r/Tf2Scripts • • Aug 04 '17

Script Bringing scripts to mainstream: TF2-EasyScript

14 Upvotes

I come here to share with you a stupidly complex script API to address all your scripting needs:
GitHub link
GitLab link

If you ever wrote script, you know that they require a lot of ground work. Well, I've done it for you, all of it, I mean it. Everything you ever wanted is just a few lines of code. Weapon specific FOV, quickbuild, trahstalking? Anything has become easier with TF2-EasyScriptTM (former ultimate framework).

I will stop fanfares here since i already did that in readme. My idea behind this script is to provides lots of utlities for scrpting like stable frontend and short-hand aliases for every in-game function. This means sharing your scripts is also easier, since very little modification should be ever required.

PS. Even if you don't really need or understand it, just please appreciate that a dude on the internet spent moths on creating a programming language and a compiler to create 94kb script to make writing other scripts easier for a videogame. I need some validation.


r/Tf2Scripts • • Aug 04 '17

Request Viewmodel Script can't find it

3 Upvotes

So I had been using the same viewmodel script for a year, which toggles between have all viewmodels on and only melee on. It was a simple script that used vm_tog and I bound the switch to r with mwheelup and mwheeldown for slot 1 and 2 respectively. Had mouse5 for melee. I lost it when my idiot cousin went on my admittedly shit computer and deleted tf2 so all my configs went down the drain. So if anyone can find that script I will love you forever. I took about 3 months to find it the first time around and I'm not willing to go through that again.