# CheckDMRules
function CheckDMRules(context)Validate dm rules.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
src/miniquake2/game/player/rules.mlProvides miniquake2 game player rules facilities for this project.
miniquake2/game/gameplay/constants.ml as gpconstants → src/miniquake2/game/gameplay/constants.mlminiquake2/game/player/constants.ml as gplayerconstants → src/miniquake2/game/player/constants.mlminiquake2/game/player/types.ml as gplayertypes → src/miniquake2/game/player/types.mlminiquake2/qcommon/info.ml as qinfo → src/miniquake2/qcommon/info.mlminiquake2/qcommon/text.ml as qtext → src/miniquake2/qcommon/text.mlstd/math.ml as gplayermath → ../MiniLangCompilerML/std/math.ml external dependencystd/string.ml as gplayerstring → ../MiniLangCompilerML/std/string.ml external dependencyfunction CheckDMRules(context)Validate dm rules.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
function ClientObituary(context, victim, attacker, meansOfDeath)Return the client obituary value.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
victim | dynamic | — | victim value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
meansOfDeath | dynamic | — | meansOfDeath value consumed by this operation. |
function EndDMLevel(context, reason)End dm level.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
reason | dynamic | — | reason value consumed by this operation. |
function environmentMessage(mod)Return the environment message value.
| Parameter | Type | Default | Description |
|---|---|---|---|
mod | dynamic | — | mod value consumed by this operation. |
function genderPronoun(player, neutralWord, femaleWord, maleWord)Return the gender pronoun value.
| Parameter | Type | Default | Description |
|---|---|---|---|
player | dynamic | — | player value consumed by this operation. |
neutralWord | dynamic | — | neutralWord value consumed by this operation. |
femaleWord | dynamic | — | femaleWord value consumed by this operation. |
maleWord | dynamic | — | maleWord value consumed by this operation. |
function LookAtKiller(victim, inflictor, attacker)Return the look at killer value.
| Parameter | Type | Default | Description |
|---|---|---|---|
victim | dynamic | — | victim value consumed by this operation. |
inflictor | dynamic | — | inflictor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
function nextListedMap(context)Map next listed.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
function player_die(context, victim, inflictor, attacker, damage, point, meansOfDeath)Handle player.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
victim | dynamic | — | victim value consumed by this operation. |
inflictor | dynamic | — | inflictor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
point | dynamic | — | point value consumed by this operation. |
meansOfDeath | dynamic | — | meansOfDeath value consumed by this operation. |
function samePlayer(first, second)Return the same player value.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
function selfMessage(player, mod)Return the self message value.
| Parameter | Type | Default | Description |
|---|---|---|---|
player | dynamic | — | player value consumed by this operation. |
mod | dynamic | — | mod value consumed by this operation. |
function weaponMessage(mod)Return the weapon message value.
| Parameter | Type | Default | Description |
|---|---|---|---|
mod | dynamic | — | mod value consumed by this operation. |