edit: Not an issue, see next post.
It affects all EE engines, but it's easiest to test in BG:EE.
1. Compile this code in DPLAYER2.BCS (replacing the old script completely):
2. Start new game with any character
4. Get Imoen, Xzar, Montaron to the party
6. Get Khaalid and Jaheira to the party (upper left corner of the area)
7. Start killing innocent people in the very same area
Imoen, Khaalid and Jaheira will leave the party automatically even though DPLAYER2.BCS didn't tell them to do so (they will rejoin few times thanks to what we added for testing purpose). Xzar and Montaron won't leave you as they don't mind low reputation thanks to Evil Alignment.
None of the NPCs should leave because kicking out should be handled by DPLAYER2.BCS.
In both vanilla BG1 and BG2:ToB engines leaving party due to reputation is controlled entirely by DPLAYER2.BCS. In EE engine it has been hardcoded - party members are kicked automatically regardless of what has been coded in DPLAYER2.BCS. It affects both vanilla content (do we really want Imoen to leave due to reputation? That's not how it worked in BG1) and many mods.
More information and reports regarding this problem:http://gibberlings3.net/forums/index.php?showtopic=26233http://gibberlings3.net/forums/index.php?showtopic=26054http://gibberlings3.net/forums/index.php?showtopic=27806
Sorry, if this has been reported already. Couldn't find anything about it in "list of known issues" or via search engine.