ineedbots / iw3_bot_warfare

The Bot Warfare mod for CoD4
https://www.moddb.com/mods/bot-warfare
49 stars 7 forks source link

Chat bot #19

Closed za30cod closed 2 years ago

za30cod commented 2 years ago

Hello. I get an error. The chat is turned off for bots

^1 script runtime error pair 'well that was fun following ' and 'undefined' has unmatching types 'string' and 'undefined': (file 'maps/mp/bots/_bot_chat.gsc', line 1663) self BotDoChat( 10, "well that was fun following " + player.name + " for " + time + " seconds" ); ^1called from: (file 'maps/mp/bots/_bot_chat.gsc', line 192) self thread bot_chat_follow_watch( a, b, c, d, e, f, g ); ^1started from: (file 'maps/mp/bots/_bot_chat.gsc', line 159) self waittill( "bot_event", msg, a, b, c, d, e, f, g ); * ^1****

za30cod commented 2 years ago

console.log

ineedbots commented 2 years ago

bot was following a player that had disconnected, it chat is disabled, you could disable the chat by commenting out the chat bootstrap at https://github.com/ineedbots/cod4x_bot_warfare/blob/master/main_shared/maps/mp/gametypes/_callbacksetup.gsx#L20

za30cod commented 2 years ago

I did just that. the topic is closed