MiniQuake2

src/miniquake2/game/player/rules.ml

Provides miniquake2 game player rules facilities for this project.

Package
miniquake2.game.player.rules
Reachable
Yes

Imports

Declarations

CheckDMRules

function CheckDMRules(context)

Validate dm rules.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.

View source

ClientObituary

function ClientObituary(context, victim, attacker, meansOfDeath)

Return the client obituary value.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
victimdynamic—victim value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
meansOfDeathdynamic—meansOfDeath value consumed by this operation.

View source

EndDMLevel

function EndDMLevel(context, reason)

End dm level.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
reasondynamic—reason value consumed by this operation.

View source

environmentMessage

function environmentMessage(mod)

Return the environment message value.

ParameterTypeDefaultDescription
moddynamic—mod value consumed by this operation.

View source

genderPronoun

function genderPronoun(player, neutralWord, femaleWord, maleWord)

Return the gender pronoun value.

ParameterTypeDefaultDescription
playerdynamic—player value consumed by this operation.
neutralWorddynamic—neutralWord value consumed by this operation.
femaleWorddynamic—femaleWord value consumed by this operation.
maleWorddynamic—maleWord value consumed by this operation.

View source

LookAtKiller

function LookAtKiller(victim, inflictor, attacker)

Return the look at killer value.

ParameterTypeDefaultDescription
victimdynamic—victim value consumed by this operation.
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.

View source

nextListedMap

function nextListedMap(context)

Map next listed.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.

View source

player_die

function player_die(context, victim, inflictor, attacker, damage, point, meansOfDeath)

Handle player.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
victimdynamic—victim value consumed by this operation.
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
damagedynamic—damage value consumed by this operation.
pointdynamic—point value consumed by this operation.
meansOfDeathdynamic—meansOfDeath value consumed by this operation.

View source

samePlayer

function samePlayer(first, second)

Return the same player value.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.

View source

selfMessage

function selfMessage(player, mod)

Return the self message value.

ParameterTypeDefaultDescription
playerdynamic—player value consumed by this operation.
moddynamic—mod value consumed by this operation.

View source

weaponMessage

function weaponMessage(mod)

Return the weapon message value.

ParameterTypeDefaultDescription
moddynamic—mod value consumed by this operation.

View source