ineedbots / iw5_bot_warfare

The Bot Warfare mod for MW3
https://www.moddb.com/mods/bot-warfare
107 stars 29 forks source link

Script runtime error when client disconnects at the wrong time. (1/2) #92

Closed xerxes-at closed 10 months ago

xerxes-at commented 10 months ago

While debugging some issues with my own scripts I have found that a script runtime error is thrown if the killer of a bot disconnects before the bot can send its death message.

******* script runtime error *******
type 'undefined' cannot be indexed; only strings, vectors and arrays can

     at function "bot_chat_death_watch" in file "maps/mp/bots/_bot_chat.gsc"
     at function "start_death_watch" in file "maps/mp/bots/_bot_chat.gsc"
************************************
ineedbots commented 10 months ago

Addressed in 980faf91744dca420e731217af1e35fb2d96879f