Author Topic: Yet Another Question  (Read 1586 times)

Offline Sirbomber

  • Hero Member
  • *****
  • Posts: 3238
Yet Another Question
« 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?
« Last Edit: February 24, 2009, 04:24:54 PM by Sirbomber »
"As usual, colonist opinion is split between those who think the plague is a good idea, and those who are dying from it." - Outpost Evening Star

Outpost 2 Coding 101 Tutorials

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4955
Yet Another Question
« Reply #1 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.