Closed serfreeman1337 closed 7 years ago
It crash in HaveRoomForThrow while trying to shot tripmine with MP5 grenade (pBot.pBotEnemy is NULL).
I can make a change that attempts fix this, but probably wont be able to reproduce or test.
Fix that I'm thinking is:
[edit] Proper fix would be to change BotFireWeapon take origin vector of pBotEnemy/tripmine and pass that down to call-path and avoid direct use of pBot.pBotEnemy altogether.
The problem arise because of Gungame mod where all weapon are stripped and only one is given. So it happen, when bot receives MP5. The first variant you suggested is the same I think should work. Because bot should try to shot tripmine only if it doesn't has an enemy. So, storing tripmine edict into pBot structure and setting it into pBotEnemy in BotShootTripmine before calling BotFireWeapon should do the trick. I think there is even no need to backup pBotEnemy. But I didn't tested yet.
I made new beta release with fix for pBotEnemy==NULL bug when shooting tripmine. I cannot reproduce this bug, so I hope you can test this release: https://github.com/jkivilin/jk_botti/releases/tag/v1.44beta1
got 48+ hours uptime looks like its fixed
thanks
Here is crash log. I can send crash dump if need.
Oh yes, you will say its nosteam related problem blablabla nosteam = nosupport blablabla :\