r/Tf2Scripts • u/dominic3333 • Jul 02 '20
Issue Script help
I have a script on GameBanana. ( https://gamebanana.com/scripts/10569 )
And it has an automatic teleporter entrance that I implied it was already done before, but it wasn't.
But there's a bug that when you lag, the class config executes. This is annoying for me because I use wireless and I have to type in my custom script for trolldier when it lags (that was kinda random). Do you guys know how to remind how to say it was already responded but reset when you change class or the game ended?
5
Upvotes
View all comments
Show parent comment
2
u/kurokinekoneko Jul 02 '20
I don't like your script. You should only change Alias in your commands, not Binds. IMHO, a good script has no "bind" commands : it only add aliases and explain how to use them.
That being said, you can easily solve your problem with a switch alias :
In autoexec.cfg add :
In every <class>.cfg except engineer, add
In engineer.cfg add
So :
engineer.cfgwill playreplaceEntranceAtSpawnOnceevery time. ButreplaceEntranceAtSpawnOncewill only playreplaceEntranceAtSpawnonce every timeenableReplaceEntranceAtSpawnOnceis played.So it mean
engineer.cfgwill only build entrance 1 time ; then you have to play an other class or execautoexec.cfgto replace your entrance again.Edit : debug