# Quake3 Netcode (In General)

## Observed Games and Ports:

* Soldier of Fortune 2 - **20100**
* Nexuiz - **26000**
* Quake 3, Wolfenstein, Star Trek Elite Force, Urban Terror - **27960**
* Star Wars JK2 - **28070**
* Call of Duty (1, 2, 3, 4, MW2, UO) - **28960**
* Star Wars JK - **29070**
* Star Trek Elite Force 2 - **29253**
* FiveM - **30120**
* Tremulous - **30720**

## Proto: UDP

## Amplification factor: ~15x

## Reflector count: Various

---

Ancient netcode that has been reused in multiple titles (Even Fallout 76 has taken some of it).

Amplification via this method has dated back to early 2000s, such as the use of Call of Duty amplification in the program "DevNull" ran by Steam user "Stan".

* All servers running this code respond to "getinfo" and "getstatus" commands.
* Some may have ratelimits (such as FiveM)

### Example Requests / Responses

#### Call of Duty 4 GetStatus request

* Request: 13 bytes

  * ASCII: `getstatus`

    ```bash
    echo -ne '\xff\xff\xff\xffgetstatus'|nc -u 157.230.246.0 28960 -w2
    ```

* Response: Avg 500 bytes (differs on type of game)

  * ASCII character space:
  
    `statusResponse
    \type\-1\pswrd\1\fs_game\mods/pml220\sv_maxclients\24\version\CoD4 X 1.8 linux-i386 build 2055 May  2 2017\shortversion\1.8\build\2055\sv_hostname\^1TEAM ^5pulseCORE ^3SERVER\sv_minPing\0\sv_maxPing\0\sv_voice\0\sv_maxRate\25000\sv_floodprotect\4\_CoD4 X Site\http://cod4x.me\protocol\17\sv_privateClients\0\sv_disableClientConsole\0\g_mapStartTime\Sat Oct  3 22:34:15 2020\uptime\285 days\g_gametype\sd\mapname\mp_strike\sv_pure\1\gamename\Call of Duty 4\g_compassShowEnemies\0`

  * Raw bytes:

    ` `
