Skip to content

API Level 2

aufau edited this page Jan 20, 2018 · 2 revisions
Header JK2MV Version Supported since
Level 2 1.2 4 Jul 2016

SysCalls

SysCalls available with this API-Level.

Declaration game cgame ui
MVAPI_DISABLE_STRUCT_CONVERSION ☑️

MVAPI_DISABLE_STRUCT_CONVERSION

qboolean trap_MVAPI_DisableStructConversion(qboolean disable);

???

MVAPI Fixes

See Cvars page for bug descriptions.

Flag game cgame ui
MVFIX_SABERSTEALING ☑️

Data Structures

mvsharedEntity_t

Each mv shared game entity corresponds to one regular game entity (see MVAPI_LOCATE_GAME_DATA. The corresponding game entity will be called "the entity" from now on.

New field Description
uint32_t mvFlags Bitwise conjugated shared entity flags (similar to entityShared_t::svFlags).
Shared entity flag Description
MVF_NOSPEC Don't send the entity to spectator (TEAM_SPECTATOR or PMF_FOLLOW) clients.
MVF_SPECONLY Send the entity only to spectator clients (but respect ignore/enforce fields otherwise).