Outpost Universe Forums

Projects & Development => Outpost 2 Programming & Development => Topic started by: Sirbomber on February 24, 2009, 04:08:28 PM

Title: Yet Another Question
Post by: Sirbomber on February 24, 2009, 04:08:28 PM
Is there a way to detect if a player quits mid-game?

Edit: Never mind, I fixed the bug in my AIProc version.
But why can't I delete my own topics anymore?
Title: Yet Another Question
Post by: Hooman on February 25, 2009, 03:40:23 PM
Hmm, that's an interesting question actually. I've wondered about stuff like that before. In short, no. At least nothing particularly obvious. I suppose you could try checking the number of players in the game to see if it decreases. Maybe check each player for things like IsHuman afterwards. It might actually call GoAI or something when someone drops.

Or you could hack the game, overwrite some code, and put in a code hook that detects when someone drops, or perhaps when someone dies. Not the easiest solution though.