The game segfaults in ai.cpp:482 whenever a sudden death situation happens,
since c.mTarget is set to -1 at line 469, but the subsequent code tries to use
it as an array index. I wrote a patch that seems to fix it without breaking
the AI. Basically, it makes the terrorist stand still while the VIP runs away.
I'll attach it.
Created attachment 511[details]
fixes segfault when there are no VIPs
don't know, if this is intended or not, but between my first VIP, and the
second, there is a pause of several seconds. If (as the previous patch did)
the terrorists are not moving, they are too easy to wipe out.
This patch lets the terrorists still move.
Created attachment 155 [details] checks that c.mTarget != -1 before code that uses it as an array indexCreated attachment 511 [details] fixes segfault when there are no VIPs don't know, if this is intended or not, but between my first VIP, and the second, there is a pause of several seconds. If (as the previous patch did) the terrorists are not moving, they are too easy to wipe out. This patch lets the terrorists still move.