public function processResponse()
    {

        // Grab the result from the parent
        /** @type array $result */
        $result = parent::processResponse();

        // Move some stuff around
        $this->renameResult($result, 'OwningPlayerName', 'hostname');
        $this->renameResult($result, 'p1073741825', 'mapname');
        $this->renameResult($result, 'p1073741826', 'gametype');
        $this->renameResult($result, 'p1073741827', 'servername');
        $this->renameResult($result, 'p1073741828', 'custom_mutators');
        $this->renameResult($result, 'gamemode', 'open');
        $this->renameResult($result, 's32779', 'gamemode');
        $this->renameResult($result, 's0', 'bot_skill');
        $this->renameResult($result, 's6', 'pure_server');
        $this->renameResult($result, 's7', 'password');
        $this->renameResult($result, 's8', 'vs_bots');
        $this->renameResult($result, 's10', 'force_respawn');
        $this->renameResult($result, 'p268435704', 'frag_limit');
        $this->renameResult($result, 'p268435705', 'time_limit');
        $this->renameResult($result, 'p268435703', 'numbots');
        $this->renameResult($result, 'p268435717', 'stock_mutators');

        // Put custom mutators into an array
        if (isset($result['custom_mutators'])) {
            $result['custom_mutators'] = explode("\x1c", $result['custom_mutators']);
        }

        // Delete some unknown stuff
        $this->deleteResult($result, ['s1', 's9', 's11', 's12', 's13', 's14']);

        // Return the result
        return $result;
    }
public function processResponse()
    {

        // Grab the result from the parent
        /** @type array $result */
        $result = parent::processResponse();

        // Move some stuff around
        $this->renameResult($result, 'OwningPlayerName', 'hostname');
        $this->renameResult($result, 'p1073741825', 'mapname');
        $this->renameResult($result, 'p1073741826', 'gametype');
        $this->renameResult($result, 'p1073741827', 'servername');
        $this->renameResult($result, 'p1073741828', 'custom_mutators');
        $this->renameResult($result, 'gamemode', 'open');
        $this->renameResult($result, 's32779', 'gamemode');
        $this->renameResult($result, 's0', 'bot_skill');
        $this->renameResult($result, 's6', 'pure_server');
        $this->renameResult($result, 's7', 'password');
        $this->renameResult($result, 's8', 'vs_bots');
        $this->renameResult($result, 's10', 'force_respawn');
        $this->renameResult($result, 'p268435704', 'frag_limit');
        $this->renameResult($result, 'p268435705', 'time_limit');
        $this->renameResult($result, 'p268435703', 'numbots');
        $this->renameResult($result, 'p268435717', 'stock_mutators');

        // Put custom mutators into an array
        if (isset($result['custom_mutators'])) {
            $result['custom_mutators'] = explode("\x1c", $result['custom_mutators']);
        }

        // Delete some unknown stuff
        $this->deleteResult($result, ['s1', 's9', 's11', 's12', 's13', 's14']);

        // Return the result
        return $result;
    }
public function processResponse ( ) { // Grab the result from the parent /** @type array $result */ $ result = parent :: processResponse ( ) ; // Move some stuff around $ this -> renameResult ( $ result , 'OwningPlayerName' , 'hostname' ) ; $ this -> renameResult ( $ result , 'p1073741825' , 'mapname' ) ; $ this -> renameResult ( $ result , 'p1073741826' , 'gametype' ) ; $ this -> renameResult ( $ result , 'p1073741827' , 'servername' ) ; $ this -> renameResult ( $ result , 'p1073741828' , 'custom_mutators' ) ; $ this -> renameResult ( $ result , 'gamemode' , 'open' ) ; $ this -> renameResult ( $ result , 's32779' , 'gamemode' ) ; $ this -> renameResult ( $ result , 's0' , 'bot_skill' ) ; $ this -> renameResult ( $ result , 's6' , 'pure_server' ) ; $ this -> renameResult ( $ result , 's7' , 'password' ) ; $ this -> renameResult ( $ result , 's8' , 'vs_bots' ) ; $ this -> renameResult ( $ result , 's10' , 'force_respawn' ) ; $ this -> renameResult ( $ result , 'p268435704' , 'frag_limit' ) ; $ this -> renameResult ( $ result , 'p268435705' , 'time_limit' ) ; $ this -> renameResult ( $ result , 'p268435703' , 'numbots' ) ; $ this -> renameResult ( $ result , 'p268435717' , 'stock_mutators' ) ; // Put custom mutators into an array if ( isset ( $ result [ 'custom_mutators' ] ) ) { $ result [ 'custom_mutators' ] = explode ( "\x1c" , $ result [ 'custom_mutators' ] ) ; } // Delete some unknown stuff $ this -> deleteResult ( $ result , [ 's1' , 's9' , 's11' , 's12' , 's13' , 's14' ] ) ; // Return the result return $ result ; }
Overload the response process so we can make some changes

@return array
Overload the response process so we can make some changes