Provides miniquake2 game weapons hitscan facilities for this project.
# fire_bullet
function fire_bullet(context, shooter, start, aimDirection, damage, kick, horizontalSpread, verticalSpread, meansOfDeath)
Fire bullet.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
shooter | dynamic | — | shooter value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
aimDirection | dynamic | — | aimDirection value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
kick | dynamic | — | kick value consumed by this operation. |
horizontalSpread | dynamic | — | horizontalSpread value consumed by this operation. |
verticalSpread | dynamic | — | verticalSpread value consumed by this operation. |
meansOfDeath | dynamic | — | meansOfDeath value consumed by this operation. |
View source
# fire_rail
function fire_rail(context, shooter, start, aimDirection, damage, kick)
Fire rail.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
shooter | dynamic | — | shooter value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
aimDirection | dynamic | — | aimDirection value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
kick | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
shooter | dynamic | — | shooter value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
aimDirection | dynamic | — | aimDirection value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
kick | dynamic | — | kick value consumed by this operation. |
horizontalSpread | dynamic | — | horizontalSpread value consumed by this operation. |
verticalSpread | dynamic | — | verticalSpread value consumed by this operation. |
count | dynamic | — | Number of items or units to process. |
meansOfDeath | dynamic | — | meansOfDeath value consumed by this operation. |
View source
# fireBullet
function fireBullet(context, shooter, start, aimDirection, damage, kick, horizontalSpread, verticalSpread, meansOfDeath)
Fire bullet.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
shooter | dynamic | — | shooter value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
aimDirection | dynamic | — | aimDirection value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
kick | dynamic | — | kick value consumed by this operation. |
horizontalSpread | dynamic | — | horizontalSpread value consumed by this operation. |
verticalSpread | dynamic | — | verticalSpread value consumed by this operation. |
meansOfDeath | dynamic | — | meansOfDeath value consumed by this operation. |
View source
# fireLead
function fireLead(context, shooter, start, aimDirection, damage, kick, impact, horizontalSpread, verticalSpread, meansOfDeath)
Fire lead.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
shooter | dynamic | — | shooter value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
aimDirection | dynamic | — | aimDirection value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
kick | dynamic | — | kick value consumed by this operation. |
impact | dynamic | — | impact value consumed by this operation. |
horizontalSpread | dynamic | — | horizontalSpread value consumed by this operation. |
verticalSpread | dynamic | — | verticalSpread value consumed by this operation. |
meansOfDeath | dynamic | — | meansOfDeath value consumed by this operation. |
View source
# fireRail
function fireRail(context, shooter, start, aimDirection, damage, kick)
Fire rail.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
shooter | dynamic | — | shooter value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
aimDirection | dynamic | — | aimDirection value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
kick | dynamic | — | kick value consumed by this operation. |
View source
# fireShotgun
function fireShotgun(context, shooter, start, aimDirection, damage, kick, horizontalSpread, verticalSpread, count, meansOfDeath)
Fire shotgun.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
shooter | dynamic | — | shooter value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
aimDirection | dynamic | — | aimDirection value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
kick | dynamic | — | kick value consumed by this operation. |
horizontalSpread | dynamic | — | horizontalSpread value consumed by this operation. |
verticalSpread | dynamic | — | verticalSpread value consumed by this operation. |
count | dynamic | — | Number of items or units to process. |
meansOfDeath | dynamic | — | meansOfDeath value consumed by this operation. |
View source