Forums

Pages: 1 2 [3] 4 5
Author Topic: New Inf ammo and health script  (Read 61732 times)
Soldier
***

Posts: 133
Do i have to copy paste all the words there or just the wait thingy. No need for like personal portable offline
jumping? Or i have to copy sv_cheats 1 too?

Might as well copy the whole thing, makes sure you have cheats enabled. The top line is a comment so it won't matter either way.
   
Maggot
*

Posts: 7
I copied the script, turned it into a .cfg file and put it in the right folder but it's not working for me... I am on a mac but I'm not sure if that changes anything. Help?
   
Rocketman
*****

Posts: 630
I copied the script, turned it into a .cfg file and put it in the right folder but it's not working for me... I am on a mac but I'm not sure if that changes anything. Help?

did you actually 'exec configname'?  also note this is for local servers, this won't work some random server online.
   
Maggot
*

Posts: 7
Yes,I named the config file 'jump' and used exec jump in alocal game, but it still doesn't work...any other suggestions?
   
Soldier
***

Posts: 133
Yes,I named the config file 'jump' and used exec jump in alocal game, but it still doesn't work...any other suggestions?

Check that you aren't saving it as jump.cfg.txt. When you save the file in a text editor (not sure what the default is on mac) then it usually automatically saves it as .txt, regardless of if you tried to override it with .cfg in the title.
Also, I don't know where the option would be but go look for the option to show file extensions to check that it is actually .cfg.
   
Maggot
*

Posts: 7
Thats the problem, i've done all of that :S
   
Soldier
***

Posts: 133
Open the file and post a screenshot of the file browser and the cfg file open in a text editor.
   
Maggot
*

Posts: 1
Hey, I'm having a problem with this. When I am on a custom server, and execute the regen, when I go to rocket jump or sticky jump I go up and then get stuck in the air then teleport to the ground a few seconds later. I'm able to strafe in the air, but can't see where I'm going height wise. It's just a graphical glitch, but it's impossible to do anything with it. Anyone know a fix for it?

Edit: Just tested a few different scripts and no scripts at all, still get the problem, anyone know what my problem would be?

Edit: Used it on offline practice, worked fine, guess it was lag.
« Last Edit: February 07, 2013, 10:41:48 PM by randslider123 »
   
Maggot
*

Posts: 1
Hi, I've been having trouble with the part of putting the code and I was wondering if you can make a tutorial of how to do it, because I've been using a lot of time to try to figure it out. Please make a video!
   
Offline  juc_tav
Maggot
*

Posts: 34
It wasn't working to me, so i changed the code to this one:

sv_cheats 1

wait 5;ent_fire !self addoutput "targetname player_me"
wait 5;ent_fire func_regenerate addoutput "classname func_regenerate_temp"
wait 5;ent_fire info_target addoutput "classname info_target_temp"

wait 10;give info_target
wait 10;give func_regenerate

wait 20;ent_fire info_target addoutput "targetname mytarget"
wait 20;ent_fire func_regenerate addoutput "StartDisabled 1"
wait 20;ent_fire func_regenerate addoutput "mins -100 -100 -100"
wait 20;ent_fire func_regenerate addoutput "maxs 100 100 100"
wait 30;ent_fire func_regenerate addoutput "solid 2"
wait 30;ent_fire func_regenerate addoutput "spawnflags 1"

wait 30;ent_fire info_target setparent player_me
wait 33;ent_fire func_regenerate setparent mytarget
wait 35;ent_fire func_regenerate enable

wait 40;echo "echo regen"
   
Offline  chriskp
Maggot
*

Posts: 1
It wasn't working to me, so i changed the code to this one:

sv_cheats 1

wait 5;ent_fire !self addoutput "targetname player_me"
wait 5;ent_fire func_regenerate addoutput "classname func_regenerate_temp"
wait 5;ent_fire info_target addoutput "classname info_target_temp"

wait 10;give info_target
wait 10;give func_regenerate

wait 20;ent_fire info_target addoutput "targetname mytarget"
wait 20;ent_fire func_regenerate addoutput "StartDisabled 1"
wait 20;ent_fire func_regenerate addoutput "mins -100 -100 -100"
wait 20;ent_fire func_regenerate addoutput "maxs 100 100 100"
wait 30;ent_fire func_regenerate addoutput "solid 2"
wait 30;ent_fire func_regenerate addoutput "spawnflags 1"

wait 30;ent_fire info_target setparent player_me
wait 33;ent_fire func_regenerate setparent mytarget
wait 35;ent_fire func_regenerate enable

wait 40;echo "echo regen"

Made by My Chocoholic Father Beats Me AKA Jamien
Code: [Select]
//Personal portable regen for offline jumping!
sv_cheats 1

wait 5;ent_fire !self addoutput "targetname player_me"
wait 5;ent_fire func_regenerate addoutput "classname func_regenerate_temp"
wait 5;ent_fire info_target addoutput "classname info_target_temp"

wait 10;give info_target
wait 10;give func_regenerate

wait 20;ent_fire info_target addoutput "targetname mytarget"
wait 20;ent_fire func_regenerate addoutput "StartDisabled 1"
wait 20;ent_fire func_regenerate addoutput "mins -100 -100 -100"
wait 20;ent_fire func_regenerate addoutput "maxs 100 100 100"
wait 30;ent_fire func_regenerate addoutput "solid 2"
wait 30;ent_fire func_regenerate addoutput "spawnflags 1"

wait 30;ent_fire info_target setparent player_me
wait 33;ent_fire func_regenerate setparent mytarget
wait 35;ent_fire func_regenerate enable

wait 40;echo "I love choco so hard!"

If scripting isn't your thing or you are incredibly tired (As I was when he sent this to me).
It creates an info_target which is parented to you (A point in the map which will follow you where ever you go dead or alive) and then creates a func_regenerate box around you which is parented to the info_target (The box will surround you and constantly regenerate your ammo).

Or in simple terms, Constant ammo regeneration.

So, installation instructions...
Copy/Paste the script above into a .cfg file and name it "regen".
Place the new file into tf/cfg
Open a map in TF2
Type into console "exec regen"
Jump.

(May need hurtme, depends on fall damage / multi rockets / stickies)
   
Offline  The BQE
Soldier
***

Posts: 135
On the servers, to turn regen on/off, I just type /regen on or /regen off.  How do I turn off the regen script when I'm running my own map? 
   
Rocketman
*****

Posts: 630
On the servers, to turn regen on/off, I just type /regen on or /regen off.  How do I turn off the regen script when I'm running my own map?

As mentioned in other posts.  You need to save the scripts in a config file in the appropriate cfg folder.  You then type "exec NAME" of the .cfg file.  So if it was named "regen.cfg" you would be typing "exec regen" into console.
   
Offline  X_DIAS
Rocketman
***

Posts: 643
The world is a cube
On the servers, to turn regen on/off, I just type /regen on or /regen off.  How do I turn off the regen script when I'm running my own map?

As mentioned in other posts.  You need to save the scripts in a config file in the appropriate cfg folder.  You then type "exec NAME" of the .cfg file.  So if it was named "regen.cfg" you would be typing "exec regen" into console.

read the question, that doesn't answer it


@BQE I don't know any way to do it via console, there probably is.
           But reload the map will do.
   
Offline  The BQE
Soldier
***

Posts: 135
On the servers, to turn regen on/off, I just type /regen on or /regen off.  How do I turn off the regen script when I'm running my own map?

As mentioned in other posts.  You need to save the scripts in a config file in the appropriate cfg folder.  You then type "exec NAME" of the .cfg file.  So if it was named "regen.cfg" you would be typing "exec regen" into console.

read the question, that doesn't answer it


@BQE I don't know any way to do it via console, there probably is.
           But reload the map will do.

Oh. =(

I ask, because on jump_quba, B5 doesn't reload fast enough after 4 rockets (enabling regen causes infinite ammo, and no lag between reloading after 4), and I really only need it for that level. 
   
0 Members and 1 Guest are viewing this topic.
Pages: 1 2 [3] 4 5
« previous next »


spirit Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC