Left 4 Dead 2

Left 4 Dead 2

Left 4 Bots 2
렢데짱 Dec 12, 2024 @ 7:23pm
In a custom addon map, when you go down an elevator, a bot teleports.
It's not like there's a bot involved, and you can just stand there and kill zombies, but then it suddenly teleports and goes down there and eventually dies. Is there a way to prevent the bot from teleporting at all?
Last edited by 렢데짱; Dec 12, 2024 @ 7:37pm
< >
Showing 1-15 of 15 comments
76561198960574500 Dec 12, 2024 @ 10:47pm 
The same issue
76561198960574500 Dec 12, 2024 @ 10:48pm 
Bots I won't use teleports from elevator please copy your files
https://www.reddit.com/r/l4d2/comments/1bvhadf/a_guide_to_smarter_bots_in_left_4_dead_2/
렢데짱 Dec 13, 2024 @ 3:57am 
@7656119860574500
https://steamcommunity.com/sharedfiles/filedetails/?id=2782400161
Among the mods you sent me with the link,
I tried this mod and
when riding the elevator,
survivors really stopped teleporting out of nowhere.

It's a really good feature,
but there are also some unrealistic features that I don't like,
like being able to crawl when you're down and your health is low,
or being able to quickly raise up a survivor who's down in a few seconds.

Can you tell me what the code for the feature that prevents teleporting is?
렢데짱 Dec 13, 2024 @ 3:58am 
I plan on removing all features except the one that prevents teleportation.
4512369781  [developer] Dec 13, 2024 @ 5:43am 
add "sb_enforce_proximity_range 99999" to the "left4bots2/cfg/convars.txt" file.
렢데짱 Dec 13, 2024 @ 6:47pm 
@4512369781 I'm asking because it doesn't work even though I put in that code.
렢데짱 Dec 13, 2024 @ 7:09pm 
I just figured out the cause.
It was because I wrote the command
sb_allow_leading 1
in convars.

I always didn't enjoy having bots behind me,
so I liked the situation where bots went in front of me and led me,
so I wrote this command.
Strangely,
when I wrote this command, when I couldn't go forward,
I discovered that I would teleport..

It's really unfortunate that I can't use this feature because of this phenomenon,
but I can't help it..
4512369781  [developer] Dec 13, 2024 @ 7:24pm 
Originally posted by 게영남:
when I wrote this command, when I couldn't go forward,
I discovered that I would teleport..
you mean you teleported, not the bots?
렢데짱 Dec 13, 2024 @ 7:38pm 
@4512369781
It's not that I teleport, but I wrote the sb_allow_leading 1 command in the convars.txt file, and when I played a custom addon map, I found that if there was a section where the bot couldn't move while moving forward, it would teleport right away.

I was playing the map 'MILITARY INDUSTRIAL COMPLEX V11', and I got on the elevator with the bots, and I found that the bots suddenly teleported forward, got out of the elevator, and fell to my death, so I decided not to use that command anymore.
4512369781  [developer] Dec 13, 2024 @ 8:20pm 
Originally posted by 게영남:
@4512369781
It's not that I teleport, but I wrote the sb_allow_leading 1 command in the convars.txt file, and when I played a custom addon map, I found that if there was a section where the bot couldn't move while moving forward, it would teleport right away.

I was playing the map 'MILITARY INDUSTRIAL COMPLEX V11', and I got on the elevator with the bots, and I found that the bots suddenly teleported forward, got out of the elevator, and fell to my death, so I decided not to use that command anymore.
oh, i see, because the game prevents bots stuck in somewhere by default, so you need add "sb_unstick 0" in "convars.txt" file.
렢데짱 Dec 14, 2024 @ 12:54am 
Ok, thank you so much for this useful tip.

I have one more question.

Is it possible to modify how the bot behaves when a tank spawns by adding a file called ontank.txt,

but can I also add a file like this:
onwitch when a witch appears?
렢데짱 Dec 14, 2024 @ 1:06am 
Oh I tried the command you told me and now the bots don't teleport anymore, thank you
4512369781  [developer] Dec 14, 2024 @ 4:31am 
Originally posted by 게영남:
Ok, thank you so much for this useful tip.

I have one more question.

Is it possible to modify how the bot behaves when a tank spawns by adding a file called ontank.txt,

but can I also add a file like this:
onwitch when a witch appears?

yes, you can change the settings and convars when tank spawned, need created the "ontank_settings.txt" and "ontank_convars.txt" file manually.

no, not made this function for witch.
렢데짱 Dec 15, 2024 @ 10:46pm 
@4512369781
First, I tried using the command sb_unstick 0 that you mentioned, and it was good because the bot no longer teleports behind walls when moving forward, but I found that when the bot gets stuck somewhere while moving, it stops there and does nothing.

Is there no function to disable the teleportation function only when the bot is in the lead?
4512369781  [developer] Dec 16, 2024 @ 2:47am 
Originally posted by 게영남:
@4512369781
First, I tried using the command sb_unstick 0 that you mentioned, and it was good because the bot no longer teleports behind walls when moving forward, but I found that when the bot gets stuck somewhere while moving, it stops there and does nothing.

Is there no function to disable the teleportation function only when the bot is in the lead?

no, but you can use the "warp" command, like "bots warp" or "nick warp".
ADDON COMMANDS[github.com]
< >
Showing 1-15 of 15 comments
Per page: 1530 50