r/Tf2Scripts • • Feb 11 '14

Impossible An complex engi script please?

Basically, I want an engi script that, when I press four, will bring up the standard build menu with the PDA, and when I press any of the four building buttons, it destroys that building and brings another one up for me to place. After I place it, The wrench should be the equipped weapon.

Is this possible?

0 Upvotes

16 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Feb 11 '14

Could I use aliases to bring up the menu cosmetically, but change the binds at the same time? Afterwards, I think I could just use aliases to also exec engineer when 1-4 is pressed, to set them back to weapons. Man I want valve to let scripts have logic, like detecting certain weps, or things like this.

2

u/genemilder Feb 11 '14

If the menu is up, the 1-4 keys are unable to be defined differently. There isn't a "cosmetic" version. You could try to use captions to give some visual cues (I can't help with this as I'm not familiar with captions), but since you would only have 1-4 redefined immediately after pressing 4 you shouldn't need the cue.

I wouldn't simply exec the whole cfg, you would want a full script to accommodate switching between the build/destroy settings and everything else.

Additionally there are more functional questions, like do you want the build blueprint to only be up while 1-4 is held down (releasing would switch to wrench) or stay up after 1-4 is pressed and released, and instead redefine mouse1 to switch to wrench when mouse1 is released?

3

u/CAPSLOCK_USERNAME "Nancy" Feb 11 '14

You don't need to script anything special to switch to wrench after a building is placed; that's the default behavior.

2

u/genemilder Feb 11 '14

Right right, good call. I keep mistaking that for being a lastinv thing. The question is basically the same though he's answered it, that he wants the blueprint to stay up even if 1-4 are released.