r/Tf2Scripts • • Jun 09 '22

Issue Heavy sandvich script issues

I've been trying to make a script for the heavy to throw a sandvich and say something in team chat. However, I haven't been able to get anything that works well enough for me.

The main issues I've been having are:

  1. If the minigun isn't fully revved down, you can't switch weapons, so the bind will cause it to spin back up.

  2. If you don't have a sandvich yet, you will lie about having thrown one in chat.

Does anyone have a solution for these outside of using wait? From what I gather these might just be the limitations of scripting.

I usually use just use voice chat, but oftentimes when I throw a sandvich I need to be calling something more important, so I'd like to see if this is possible. Thanks!

3 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/DeltaTroopa Jun 13 '22

Unfortunately this suffers from all the problems described in the OP

  1. If the minigun isn't fully revved down, you can't switch weapons, so the bind will cause it to spin back up. 2. If you don't have a sandvich yet, you will lie about having thrown one in chat.

1

u/mike_hawk_at_kfc Jun 13 '22

yeah correct but thats not realy my probelm you just gotta wait untill its revved down thats just how it is unless you want to make a realy complicated 6 liner which ima be real im too lazy to do right now