Team Fortress 2
ׁׁׁ Jan 2, 2020 @ 1:05pm
I found an infinite ammo and health auto script command string
so i was looking up loops and wanted to rediscover how to do auto regen because i haven't focused on sand boxing tf2 in a while so i forgot and came up with an (almost) instant regen script!

notes:
-needs sv_cheats 1 to work
-i bound it to r bc i use auto reload so i don't need it (change it if you need)
-basically copy and pasted straight from the wiki with minor changes
-i put it in common\team fortress 2\tf\cfg as regen.cfg with the following script,

bind r "loopKey"
alias loopKey startLoop
alias startLoop "alias loopKey stopLoop; impulse 101; alias redirect loop; loop"
alias stopLoop "impulse 101; alias redirect; alias loopKey startLoop"
alias loop "impulse 101; wait 25; impulse 101; impulse 101; wait 25; impulse 101; redirect"

Edit notes:
-press r (or your regen binded key) again to shut off
-type exec [name of regen script you chose] in console (without .cfg) to get the script able to run
-NW/RL down in the replies made a much better script do you might want to use his (or her) script instead since I didn’t put much effort into this
Last edited by ׁׁׁ; Jan 4, 2020 @ 2:40pm
< >
Showing 1-6 of 6 comments
NW/RL (Banned) Jan 2, 2020 @ 1:08pm 
Your loops are ♥♥♥♥♥♥. Mine are much better

https://gamebanana.com/scripts/10480
NW/RL (Banned) Jan 2, 2020 @ 1:13pm 
Original:
Originally posted by Deus Stonk:
bind r "loopKey" alias loopKey startLoop alias startLoop "alias loopKey stopLoop; impulse 101; alias redirect loop; loop" alias stopLoop "impulse 101; alias redirect; alias loopKey startLoop" alias loop "impulse 101; wait 25; impulse 101; impulse 101; wait 25; impulse 101; redirect"
Notes:
- formatting looks bad
- quotes missing in certain areas
- obsessive use of impulse 101 when unneeded
- doesn't tell user about state of loop

bind r "loopKey" alias "loopKey" "startLoop" alias "startLoop" "alias loopKey stopLoop; alias redirect loop; redirect; echo [HEALING] ENABLED" alias "stopLoop" "alias redirect echo [HEALING] DISABLED; alias loopKey startLoop" alias loop "impulse 101; wait 1; redirect"
Fixed it. You've got quite some way to go before actually being good. I could keep improving on it but I'm on mobile and I'm too lazy to entirely type it out
Tom Jan 2, 2020 @ 1:18pm 
Originally posted by NW/RL:
wait 1
lol
i, too, like healing every 60-200th of a second
Last edited by Tom; Jan 2, 2020 @ 1:19pm
NW/RL (Banned) Jan 2, 2020 @ 1:22pm 
Originally posted by Tom:
Originally posted by NW/RL:
wait 1
lol
i, too, like healing every 60-200th of a second
Hell yeah, better than waiting 25ths of a second to heal again
ׁׁׁ Jan 4, 2020 @ 2:29pm 
Originally posted by NW/RL:
Originally posted by Tom:
lol
i, too, like healing every 60-200th of a second
Hell yeah, better than waiting 25ths of a second to heal again
I did that cause I didn’t want to make the loop crash bc I haven’t tested shorter wait times
ׁׁׁ Jan 4, 2020 @ 2:33pm 
Originally posted by NW/RL:
Original:
Originally posted by Deus Stonk:
bind r "loopKey" alias loopKey startLoop alias startLoop "alias loopKey stopLoop; impulse 101; alias redirect loop; loop" alias stopLoop "impulse 101; alias redirect; alias loopKey startLoop" alias loop "impulse 101; wait 25; impulse 101; impulse 101; wait 25; impulse 101; redirect"
Notes:
- formatting looks bad
- quotes missing in certain areas
- obsessive use of impulse 101 when unneeded
- doesn't tell user about state of loop

bind r "loopKey" alias "loopKey" "startLoop" alias "startLoop" "alias loopKey stopLoop; alias redirect loop; redirect; echo [HEALING] ENABLED" alias "stopLoop" "alias redirect echo [HEALING] DISABLED; alias loopKey startLoop" alias loop "impulse 101; wait 1; redirect"
Fixed it. You've got quite some way to go before actually being good. I could keep improving on it but I'm on mobile and I'm too lazy to entirely type it out
Thanks for the feedback, I know I’m not good at scripting and I only copy and pasted from the Tf2 wiki then replaced firing and moving commands to impulse 101 and posted it as a non modded way for infinite ammo and health script not a 100% patented script but thanks anyway!
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Jan 2, 2020 @ 1:05pm
Posts: 6