MiniQuake2

src/miniquake2/game/weapons/hand_grenade.ml

Provides miniquake2 game weapons hand grenade facilities for this project.

Package
miniquake2.game.weapons.hand_grenade
Reachable
Yes

Imports

Declarations

step

function step(context, state, start, direction, damage, radius)

Performs the step operation for the miniquake2 game weapons hand grenade module.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
statedynamic—Mutable state inspected or updated by the operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
radiusdynamic—radius value consumed by this operation.

View source

Weapon_Grenade

function Weapon_Grenade(context, state, start, direction, damage, radius)

Return the weapon grenade value.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
statedynamic—Mutable state inspected or updated by the operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
radiusdynamic—radius value consumed by this operation.

View source

weapon_grenade_fire

function weapon_grenade_fire(context, state, start, direction, damage, radius, held)

Fire weapon grenade.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
statedynamic—Mutable state inspected or updated by the operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
radiusdynamic—radius value consumed by this operation.
helddynamic—held value consumed by this operation.

View source

weaponGrenadeFire

function weaponGrenadeFire(context, state, start, direction, damage, radius, held)

Fire weapon grenade.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
statedynamic—Mutable state inspected or updated by the operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
radiusdynamic—radius value consumed by this operation.
helddynamic—held value consumed by this operation.

View source