Forums

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - chriskp

Pages: [1]
1
Jump Help / Re: New Inf ammo and health script
« on: April 07, 2013, 03:28:25 PM »
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)

Pages: [1]
spirit Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC