jump.tf Forums
Welcome B)

Regen Script

Jamien · 8 · 23649

Jamien

  • Newbie
  • *
    • Posts: 4
    • Frags: +0/-0
    • View Profile
Decided to just make a new one from scratch.
I would recommend putting this in an autoexec.cfg then whenever you want to turn regen on press X. type "unregen" in the console to turn it off.

If there are any different features you would like just ask.
Code: [Select]
bind x "regen"
alias regen "sv_allow_wait_command 1;sv_cheats 1;hurtme -999999;give func_regenerate;alias regenloop +loop;regenloop"
alias unregen "ent_Fire !self sethealth 200;alias regenloop null"
alias regenloop "+loop"
alias +loop "impulse 101;wait 100;-loop"
alias -loop "wait 100;regenloop"
« Last Edit: January 27, 2014, 01:01:35 AM by Jamien »


wonderland

  • Newbie
  • *
    • Posts: 11
    • Frags: +0/-0
    • View Profile
ur cute

sv_allow_wait_command 1 wouldn't hurt and x to toggle might be better
« Last Edit: January 26, 2014, 08:30:12 PM by wonderland »


duppy

  • Newbie
  • *
    • Posts: 18
    • Frags: +0/-0
    • View Profile
Damn, you are such a master of these cfg scripts!  An alias inside an alias that runs a loop...I don't think I've seen a script that does that.  Nice upgrade to the old version!


Jamien

  • Newbie
  • *
    • Posts: 4
    • Frags: +0/-0
    • View Profile
ur cute

sv_allow_wait_command 1 wouldn't hurt and x to toggle might be better
no you're cute!
and it originally was a toggle but I figured this would be easier for the average person because you need to redo it on map change

but here's the toggle version for people who wish to use it sparingly
Code: [Select]
bind x "regen"
alias regen "sv_allow_wait_command 1;sv_cheats 1;hurtme -999999;give func_regenerate;alias regenloop +loop;regenloop;bind x unregen"
alias unregen "ent_Fire !self sethealth 200;alias regenloop null;bind x regen"
alias regenloop "+loop"
alias +loop "impulse 101;wait 100;-loop"
alias -loop "wait 100;regenloop"

setting health back to normal unfortunately makes you fly into the air but whatever
« Last Edit: January 27, 2014, 01:13:21 AM by Jamien »


timurichk

  • Newbie
  • *
    • Posts: 8
    • Frags: +0/-0
    • View Profile
i Made a video for how to install this script! (sorry for my voice and using mac)
<iframe width="560" height="315" src="//" frameborder="0" allowfullscreen></iframe>
Hope it's not too awful  :D


Paulgeogez

  • Newbie
  • *
    • Posts: 2
    • Frags: +0/-0
    • View Profile

Vexon

  • needs to stop posting
  • *
    • Posts: 1290
    • Frags: +0/-0
  • :}
    • View Profile
Want it I have read a lot of This great content.

THIS WAS A FUCKING YEAR AGO FUCK! !!
5:01 PM - john | jump.tf: 👌