Left 4 Dead 2

Left 4 Dead 2

Bot Chatter
 此主题已被置顶,因此可能具有重要性
T-Rizzle  [开发者] 2022 年 9 月 2 日 下午 2:22
Suggestions
You can suggest more things for the bots to say here!
< >
正在显示第 1 - 15 条,共 34 条留言
4512369781 2022 年 9 月 4 日 下午 10:19 
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  [开发者] 2022 年 9 月 5 日 下午 2:56 
That would make adding more lines easier, I will try to implement this into the addon’s code when I get the time.
ルエンハイド 2022 年 9 月 8 日 下午 5:26 
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  [开发者] 2022 年 9 月 9 日 上午 7:23 
引用自 ルエンハイド
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 2022 年 9 月 10 日 下午 11:47 
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
最后由 WittingPlains65 编辑于; 2022 年 9 月 11 日 上午 12:25
T-Rizzle  [开发者] 2022 年 9 月 11 日 上午 8:19 
引用自 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  [开发者] 2022 年 9 月 12 日 下午 6:49 
引用自 T-Rizzle
引用自 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 2022 年 9 月 13 日 下午 8:38 
引用自 T-Rizzle
引用自 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 2022 年 9 月 14 日 上午 6:50 
Allow us to add custom chat phrases for them to say
T-Rizzle  [开发者] 2022 年 9 月 14 日 下午 4:10 
引用自 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.
最后由 T-Rizzle 编辑于; 2022 年 9 月 14 日 下午 4:10
T-Rizzle  [开发者] 2022 年 9 月 14 日 下午 4:10 
引用自 T-Rizzle
引用自 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.
最后由 T-Rizzle 编辑于; 2022 年 9 月 15 日 上午 7:36
ルエンハイド 2022 年 9 月 14 日 下午 5:05 
引用自 T-Rizzle
引用自 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  [开发者] 2022 年 9 月 15 日 上午 4:53 
引用自 ルエンハイド
引用自 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 2022 年 9 月 17 日 上午 10:32 
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  [开发者] 2022 年 9 月 17 日 下午 3:06 
引用自 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.
< >
正在显示第 1 - 15 条,共 34 条留言
每页显示数: 1530 50