. * * $Id: rfactor.php,v 1.2 2009/08/13 20:46:40 evilpie Exp $ */ [rfactor] status = "rF_S" require_once GAMEQ_BASE . 'Protocol.php'; /** * rFactor Protocol * * @author Tom Buskens * @version $Revision: 1.2 $ */ class GameQ_Protocol_rfactor extends GameQ_Protocol { public function status() { // Header $this->p->jumpto(17); $this->r->add('version', $this->p->readInt16()); $this->p->jumpto(25); $this->r->add('series', $this->p->readString()); $this->p->jumpto(45); $this->r->add('servername', $this->p->readString()); $this->p->jumpto(73); $this->r->add('map', $this->p->readString()); $this->p->jumpto(105); $this->r->add('motd', $this->p->readString()); $this->p->jumpto(206); $this->r->add('rate', $this->p->readInt8()); $this->r->add('numplayers', $this->p->readInt8()); $this->r->add('maxplayers', $this->p->readInt8()); $this->r->add('numbots', $this->p->readInt8()); $this->r->add('session', $this->p->readInt8() >> 5); $this->r->add('damage', $this->p->readInt8()); $this->p->jumpto(217); $this->r->add('time', $this->p->readInt16()); $this->r->add('laps', $this->p->readInt16() / 16); } } ?>