Files
src/miniquake2/game/weapons/projectiles.ml
Provides miniquake2 game weapons projectiles facilities for this project.
- Package
miniquake2.game.weapons.projectiles- Reachable
- Yes
Imports
Declarations
# advanceProjectile
function advanceProjectile(context, projectile)
SV_Physics_Toss subset shared by launcher and hand grenades. Missiles do not receive gravity; MOVETYPE_BOUNCE receives the stock 800 ups gravity and 1.5 overbounce before its next server snapshot.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
projectile | dynamic | — | projectile value consumed by this operation. |
View source
# bfgExplode
function bfgExplode(projectile, context)
Return the bfg explode value.
| Parameter | Type | Default | Description |
|---|
projectile | dynamic | — | projectile value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# bfgThink
function bfgThink(projectile, context)
Run bfg.
| Parameter | Type | Default | Description |
|---|
projectile | dynamic | — | projectile value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# bfgTouch
function bfgTouch(projectile, other, trace, context)
Handle bfg.
| Parameter | Type | Default | Description |
|---|
projectile | dynamic | — | projectile value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
trace | dynamic | — | trace value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# blasterTouch
function blasterTouch(projectile, other, trace, context)
Handle blaster.
| Parameter | Type | Default | Description |
|---|
projectile | dynamic | — | projectile value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
trace | dynamic | — | trace value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# clipBounceVelocity
function clipBounceVelocity(projectile, normal)
Clip bounce velocity.
| Parameter | Type | Default | Description |
|---|
projectile | dynamic | — | projectile value consumed by this operation. |
normal | dynamic | — | normal value consumed by this operation. |
View source
# configureGrenade
function configureGrenade(context, owner, start, direction, damage, speed, timer, damageRadius, hand, held)
Configure grenade.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
timer | dynamic | — | timer value consumed by this operation. |
damageRadius | dynamic | — | damageRadius value consumed by this operation. |
hand | dynamic | — | hand value consumed by this operation. |
held | dynamic | — | held value consumed by this operation. |
View source
# fire_bfg
function fire_bfg(context, owner, start, direction, damage, speed, damageRadius)
Performs the fire_bfg operation for the miniquake2 game weapons projectiles module.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
damageRadius | dynamic | — | damageRadius value consumed by this operation. |
View source
# fire_blaster
function fire_blaster(context, owner, start, direction, damage, speed, effect, hyper)
Fire blaster.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
effect | dynamic | — | effect value consumed by this operation. |
hyper | dynamic | — | hyper value consumed by this operation. |
View source
# fire_grenade
function fire_grenade(context, owner, start, direction, damage, speed, timer, damageRadius)
Fire grenade.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
timer | dynamic | — | timer value consumed by this operation. |
damageRadius | dynamic | — | damageRadius value consumed by this operation. |
View source
# fire_grenade2
function fire_grenade2(context, owner, start, direction, damage, speed, timer, damageRadius, held)
Fire grenade 2.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
timer | dynamic | — | timer value consumed by this operation. |
damageRadius | dynamic | — | damageRadius value consumed by this operation. |
held | dynamic | — | held value consumed by this operation. |
View source
# fire_rocket
function fire_rocket(context, owner, start, direction, damage, speed, damageRadius, radiusDamage)
Fire rocket.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
damageRadius | dynamic | — | damageRadius value consumed by this operation. |
radiusDamage | dynamic | — | radiusDamage value consumed by this operation. |
View source
# fireBfg
function fireBfg(context, owner, start, direction, damage, speed, damageRadius)
Performs the fireBfg operation for the miniquake2 game weapons projectiles module.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
damageRadius | dynamic | — | damageRadius value consumed by this operation. |
View source
# fireBlaster
function fireBlaster(context, owner, start, direction, damage, speed, effect, hyper)
Fire blaster.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
effect | dynamic | — | effect value consumed by this operation. |
hyper | dynamic | — | hyper value consumed by this operation. |
View source
# fireBlasterInternal
function fireBlasterInternal(context, owner, start, direction, damage, speed, effect, hyper, targetBlaster)
Fire blaster internal.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
effect | dynamic | — | effect value consumed by this operation. |
hyper | dynamic | — | hyper value consumed by this operation. |
targetBlaster | dynamic | — | targetBlaster value consumed by this operation. |
View source
# fireGrenade
function fireGrenade(context, owner, start, direction, damage, speed, timer, damageRadius)
Fire grenade.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
timer | dynamic | — | timer value consumed by this operation. |
damageRadius | dynamic | — | damageRadius value consumed by this operation. |
View source
# fireGrenade2
function fireGrenade2(context, owner, start, direction, damage, speed, timer, damageRadius, held)
Fire grenade 2.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
timer | dynamic | — | timer value consumed by this operation. |
damageRadius | dynamic | — | damageRadius value consumed by this operation. |
held | dynamic | — | held value consumed by this operation. |
View source
# fireRocket
function fireRocket(context, owner, start, direction, damage, speed, damageRadius, radiusDamage)
Fire rocket.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
damageRadius | dynamic | — | damageRadius value consumed by this operation. |
radiusDamage | dynamic | — | radiusDamage value consumed by this operation. |
View source
# fireTargetBlaster
function fireTargetBlaster(context, owner, start, direction, damage, speed)
Fire target blaster.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
View source
# grenadeExplode
function grenadeExplode(projectile, context)
Return the grenade explode value.
| Parameter | Type | Default | Description |
|---|
projectile | dynamic | — | projectile value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# grenadeTouch
function grenadeTouch(projectile, other, trace, context)
Handle grenade.
| Parameter | Type | Default | Description |
|---|
projectile | dynamic | — | projectile value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
trace | dynamic | — | trace value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# grenadeVelocity
function grenadeVelocity(context, direction, speed)
Return the grenade velocity value.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
direction | dynamic | — | direction value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
View source
# ownerImpactNoise
function ownerImpactNoise(projectile, context)
Return the owner impact noise value.
| Parameter | Type | Default | Description |
|---|
projectile | dynamic | — | projectile value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# rocketTouch
function rocketTouch(projectile, other, trace, context)
Handle rocket.
| Parameter | Type | Default | Description |
|---|
projectile | dynamic | — | projectile value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
trace | dynamic | — | trace value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source