. */ namespace GameQ\Protocols; /** * Hidden & Dangerous 2 Protocol Class * * @author Wilson Jesus <> */ class Had2 extends Gamespy2 { /** * String name of this protocol class * * @type string */ protected $name = 'had2'; /** * Longer string name of this protocol class * * @type string */ protected $name_long = "Hidden & Dangerous 2"; /** * The difference between the client port and query port * * @type int */ protected $port_diff = 3; /** * Normalize settings for this protocol * * @type array */ protected $normalize = [ // General 'general' => [ // target => source 'dedicated' => 'isdedicated', 'gametype' => 'gametype', 'hostname' => 'hostname', 'mapname' => 'mapname', 'maxplayers' => 'maxplayers', 'numplayers' => 'numplayers', 'password' => 'password', ], // Individual 'player' => [ 'name' => 'player', 'score' => 'score', 'deaths' => 'deaths', 'ping' => 'ping', ], ]; }