MiniQuake2

src/miniquake2/game/weapons/hitscan.ml

Provides miniquake2 game weapons hitscan facilities for this project.

Package
miniquake2.game.weapons.hitscan
Reachable
Yes

Imports

Declarations

fire_bullet

function fire_bullet(context, shooter, start, aimDirection, damage, kick, horizontalSpread, verticalSpread, meansOfDeath)

Fire bullet.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
shooterdynamic—shooter value consumed by this operation.
startdynamic—start value consumed by this operation.
aimDirectiondynamic—aimDirection value consumed by this operation.
damagedynamic—damage value consumed by this operation.
kickdynamic—kick value consumed by this operation.
horizontalSpreaddynamic—horizontalSpread value consumed by this operation.
verticalSpreaddynamic—verticalSpread value consumed by this operation.
meansOfDeathdynamic—meansOfDeath value consumed by this operation.

View source

fire_rail

function fire_rail(context, shooter, start, aimDirection, damage, kick)

Fire rail.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
shooterdynamic—shooter value consumed by this operation.
startdynamic—start value consumed by this operation.
aimDirectiondynamic—aimDirection value consumed by this operation.
damagedynamic—damage value consumed by this operation.
kickdynamic—kick value consumed by this operation.

View source

fire_shotgun

function fire_shotgun(context, shooter, start, aimDirection, damage, kick, horizontalSpread, verticalSpread, count, meansOfDeath)

Fire shotgun.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
shooterdynamic—shooter value consumed by this operation.
startdynamic—start value consumed by this operation.
aimDirectiondynamic—aimDirection value consumed by this operation.
damagedynamic—damage value consumed by this operation.
kickdynamic—kick value consumed by this operation.
horizontalSpreaddynamic—horizontalSpread value consumed by this operation.
verticalSpreaddynamic—verticalSpread value consumed by this operation.
countdynamic—Number of items or units to process.
meansOfDeathdynamic—meansOfDeath value consumed by this operation.

View source

fireBullet

function fireBullet(context, shooter, start, aimDirection, damage, kick, horizontalSpread, verticalSpread, meansOfDeath)

Fire bullet.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
shooterdynamic—shooter value consumed by this operation.
startdynamic—start value consumed by this operation.
aimDirectiondynamic—aimDirection value consumed by this operation.
damagedynamic—damage value consumed by this operation.
kickdynamic—kick value consumed by this operation.
horizontalSpreaddynamic—horizontalSpread value consumed by this operation.
verticalSpreaddynamic—verticalSpread value consumed by this operation.
meansOfDeathdynamic—meansOfDeath value consumed by this operation.

View source

fireLead

function fireLead(context, shooter, start, aimDirection, damage, kick, impact, horizontalSpread, verticalSpread, meansOfDeath)

Fire lead.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
shooterdynamic—shooter value consumed by this operation.
startdynamic—start value consumed by this operation.
aimDirectiondynamic—aimDirection value consumed by this operation.
damagedynamic—damage value consumed by this operation.
kickdynamic—kick value consumed by this operation.
impactdynamic—impact value consumed by this operation.
horizontalSpreaddynamic—horizontalSpread value consumed by this operation.
verticalSpreaddynamic—verticalSpread value consumed by this operation.
meansOfDeathdynamic—meansOfDeath value consumed by this operation.

View source

fireRail

function fireRail(context, shooter, start, aimDirection, damage, kick)

Fire rail.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
shooterdynamic—shooter value consumed by this operation.
startdynamic—start value consumed by this operation.
aimDirectiondynamic—aimDirection value consumed by this operation.
damagedynamic—damage value consumed by this operation.
kickdynamic—kick value consumed by this operation.

View source

fireShotgun

function fireShotgun(context, shooter, start, aimDirection, damage, kick, horizontalSpread, verticalSpread, count, meansOfDeath)

Fire shotgun.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
shooterdynamic—shooter value consumed by this operation.
startdynamic—start value consumed by this operation.
aimDirectiondynamic—aimDirection value consumed by this operation.
damagedynamic—damage value consumed by this operation.
kickdynamic—kick value consumed by this operation.
horizontalSpreaddynamic—horizontalSpread value consumed by this operation.
verticalSpreaddynamic—verticalSpread value consumed by this operation.
countdynamic—Number of items or units to process.
meansOfDeathdynamic—meansOfDeath value consumed by this operation.

View source

waterSplashStyle

function waterSplashStyle(trace)

Return the water splash style value.

ParameterTypeDefaultDescription
tracedynamic—trace value consumed by this operation.

View source