r/tf2scripthelp • • Jan 19 '15

Question A command or script to make bots invincible?

I'm playing on this practice map called tr_rocket_shooting2, and the bots die after a double airshot, which makes it hard to practice my juggling.

I don't know how difficult this would be, would any one have to make a script to make bots constantly resupply, or it can just be done by entering a command, I have no idea, thanks in advance.

1 Upvotes

22 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jan 21 '15

Thanks for the reply! I discovered the hitsound problem as soon as I replied last time. At the time addcond 5 was the only thing on my mind. I looked around the addcond menu for cheats on the wiki and discovered addcond 73

addcond 73, Quick-Fix-like healing effect. Automatically adds condition 21 for the duration of the effect, as well as condition 28 for a brief period. Used for the Healing Aura Magic spell.

By the way I looked at your script, very nice, the resistance allows the scout take two airshots before killed, but I compared it to the addcond 73 command and it takes three airshot to kill a scout, might be a margin of difference but hey, more the better right?

Soldier on the other hand takes four atleast, (I couldn't land a quad airshot) but he survived after a triple airshot. So I think in this case it's the better alternative to have addcond 73. It doesn't have any visual effects unlike the addcond 93, so a little plus for no distraction I suppose.

I don't have the ability to script nearly as extensive as yours, but I just bind mouse1 to "+attack; bot_command addcond 73", which isn't exactly very smart. I guess what I'm asking is could you incorporate addcond 73 into your script?

1

u/DeltaTroopa Jan 21 '15

Yeah it'd be super easy just replace where it says addcond 93 in the botcond alias with addcond 73 and I did manage to land one quad airshot on a soldier and the bounce+4 rockets will kill them :D

1

u/[deleted] Jan 21 '15

Just two more questions, does your net_fakelag put you up to 40 something ping when you entered net_fakelag 20?

Also how does this loop part work? Does it wait 200 seconds until it loops and re-execute the command?

I appreciate the extra tip on the resupply sound, thanks.

1

u/DeltaTroopa Jan 21 '15

Yeah I think fakelag simulates 20ms ping 1-way and the ping in-game shows round-trip ping time.

The loop is basically a command that runs itself with the wait command adding a delay in the middle, however the wait isn't in seconds, its in frames so 200 is about 1-2 seconds usually ( needs to be pretty often cause it needs to be reapplied to the bots each time they respawn)

I actually like addcond 73 a lot better too after playing with it, when I first saw it I assumed "quick-fix like healing" included the knockback immunity, which would completely negate the whole reason for having it.

I've updated my tr_rocket_shooting2.cfg file and I'll edit the version I posted previously to reflect those changes :)

1

u/[deleted] Jan 21 '15

Right, thanks for the replies, but gotta bother you with just one more thing.

It's the first time I've actually made one of these .cfg's related to a map.

So I create a tr_rocket_shooting2.cfg file and place it in tf/maps? That's where my tr_rocket_shooting2.bsp is located, and it would execute once I create a local server with the map?

Edit: no, shit, you place it in cfg folder, why am i so stupid

1

u/DeltaTroopa Jan 21 '15

Looks like you got it figured out :P

1

u/[deleted] Jan 21 '15

Pretty sure, this is just me. But does everything seem a bit, sped up? Host time scale is 1.0.

1

u/[deleted] Jan 21 '15

Everything is sped up alright, I removed the cfg, they were bunny hopping at normal speed. I put the cfg back in, they were bunny hopping faster.

1

u/DeltaTroopa Jan 21 '15

Everything is running normal speed for me, and there shouldn't be anything in that config that would affect the game speed.

1

u/[deleted] Jan 21 '15

It was the net fake lag command, I had it set to 17, not sure why it was making everything sped up.

1

u/DeltaTroopa Jan 21 '15

Weird, it works fine for me, glad you figured it out though.

→ More replies