Left 4 Dead 2

Left 4 Dead 2

Bot Chatter
 This topic has been pinned, so it's probably important
T-Rizzle  [developer] 2 Sep, 2022 @ 2:22pm
Suggestions
You can suggest more things for the bots to say here!
< >
Showing 1-15 of 33 comments
4512369781 4 Sep, 2022 @ 10:19pm 
Hi, you can put the chats in an array so you don't need a lot of "if else".

like this:
Array <- [ "chat 1", "chat 2", "chat 3", "..." ] if (Array.len() > 0) { //method 1 local num = RandomInt(0, (Array.len() - 1)); Say(player, Array[num], false); //method 2 local num = RandomInt(0,127); if (num <= (Array.len() - 1)) Say(player, Array[num], false); }
T-Rizzle  [developer] 5 Sep, 2022 @ 2:56pm 
That would make adding more lines easier, I will try to implement this into the addon’s code when I get the time.
I like the idea of the bots talking to each other not just you. It'd be cool to see them have some short convos or perhaps just 1 or 2 responses to certain messages. You could make it either a random chance thing or perhaps triggered by something specific. Either way thanks for this mod it gives more life to singleplayer games! :3
T-Rizzle  [developer] 9 Sep, 2022 @ 7:23am 
Originally posted by ルエンハイド:
I like the idea of the bots talking to each other not just you. It'd be cool to see them have some short convos or perhaps just 1 or 2 responses to certain messages. You could make it either a random chance thing or perhaps triggered by something specific. Either way thanks for this mod it gives more life to singleplayer games! :3
This is possible and is currently on my todo list, this was one of the main features I wanted to add onto the addon, also bots do talk to each other, but for some reason they like talking to players more, I still don’t understand why either, everything is based on random chance.
Also thanks for the feedback!
WittingPlains65 10 Sep, 2022 @ 11:47pm 
If its possible, it would be cool if bots also used the chat when their health or ammo is low
edit: I found out they already do have low health chat lines, not sure about low ammo though. Maybe you could add some lines for when a bot gets shot by their teammate
Last edited by WittingPlains65; 11 Sep, 2022 @ 12:25am
T-Rizzle  [developer] 11 Sep, 2022 @ 8:19am 
Originally posted by WittingPlains65:
If its possible, it would be cool if bots also used the chat when their health or ammo is low
edit: I found out they already do have low health chat lines, not sure about low ammo though. Maybe you could add some lines for when a bot gets shot by their teammate
Everything you have posted here is possible, I will add this to my todo list.
T-Rizzle  [developer] 12 Sep, 2022 @ 6:49pm 
Originally posted by T-Rizzle:
Originally posted by WittingPlains65:
If its possible, it would be cool if bots also used the chat when their health or ammo is low
edit: I found out they already do have low health chat lines, not sure about low ammo though. Maybe you could add some lines for when a bot gets shot by their teammate
Everything you have posted here is possible, I will add this to my todo list.
I have attempted to add a check for low ammo, but it refuses to work. As for the friendly fire, I’m almost done testing it. It should be posted tomorrow.
WittingPlains65 13 Sep, 2022 @ 8:38pm 
Originally posted by T-Rizzle:
Originally posted by T-Rizzle:
Everything you have posted here is possible, I will add this to my todo list.
I have attempted to add a check for low ammo, but it refuses to work. As for the friendly fire, I’m almost done testing it. It should be posted tomorrow.
Oh wow that's awesome, I wasn't expecting you to actually take my suggestion so quickly thank you
Witch 14 Sep, 2022 @ 6:50am 
Allow us to add custom chat phrases for them to say
T-Rizzle  [developer] 14 Sep, 2022 @ 4:10pm 
Originally posted by Witch:
Allow us to add custom chat phrases for them to say
I don't really know how to. The way smilzo got custom settings to work for their addon is very complex and out of my current ability and knowledge for VScript. If you want you can post line suggestions and I can add them to the addon.
Last edited by T-Rizzle; 14 Sep, 2022 @ 4:10pm
T-Rizzle  [developer] 14 Sep, 2022 @ 4:10pm 
Originally posted by T-Rizzle:
Originally posted by Witch:
Allow us to add custom chat phrases for them to say
I don't really know how to. The way smilzo got custom settings to work for their addon is very complex and out of my current ability and knowledge for VScript. If you want you can post line suggestions and I can add them to the addon.
I made this addon using the code for Left 4 Bots as a base. I’m still very new to VScript.
Last edited by T-Rizzle; 15 Sep, 2022 @ 7:36am
Originally posted by T-Rizzle:
Originally posted by T-Rizzle:
Everything you have posted here is possible, I will add this to my todo list.
I have attempted to add a check for low ammo, but it refuses to work. As for the friendly fire, I’m almost done testing it. It should be posted tomorrow.
The bots do seem to have a sort of line they draw when it comes to ammo which forces them to pick up a new weapon even if it's both a downgrade and not in the category they want...perhaps there is a way to piggyback off this limit check? Sorry I don't really know coding at all but hopefully that helps.
T-Rizzle  [developer] 15 Sep, 2022 @ 4:53am 
Originally posted by ルエンハイド:
Originally posted by T-Rizzle:
I have attempted to add a check for low ammo, but it refuses to work. As for the friendly fire, I’m almost done testing it. It should be posted tomorrow.
The bots do seem to have a sort of line they draw when it comes to ammo which forces them to pick up a new weapon even if it's both a downgrade and not in the category they want...perhaps there is a way to piggyback off this limit check? Sorry I don't really know coding at all but hopefully that helps.
I’m haven’t given up on the low ammo lines, I’m still working on them. I just have to find a way to find the amount of ammo the bot has left. Thank for help :)
JayEnDee 17 Sep, 2022 @ 10:32am 
Probably like a file that's separated into sections or multiple files relating to multiple events so people can put more of their own lines in there, or something.
T-Rizzle  [developer] 17 Sep, 2022 @ 3:06pm 
Originally posted by JayEnDee:
Probably like a file that's separated into sections or multiple files relating to multiple events so people can put more of their own lines in there, or something.
Custom messages is on my todo list, just not the highest priority right now.
< >
Showing 1-15 of 33 comments
Per page: 1530 50