MiniQuake2

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.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
projectiledynamic—projectile value consumed by this operation.

View source

bfgExplode

function bfgExplode(projectile, context)

Return the bfg explode value.

ParameterTypeDefaultDescription
projectiledynamic—projectile value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

bfgThink

function bfgThink(projectile, context)

Run bfg.

ParameterTypeDefaultDescription
projectiledynamic—projectile value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

bfgTouch

function bfgTouch(projectile, other, trace, context)

Handle bfg.

ParameterTypeDefaultDescription
projectiledynamic—projectile value consumed by this operation.
otherdynamic—other value consumed by this operation.
tracedynamic—trace value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

blasterTouch

function blasterTouch(projectile, other, trace, context)

Handle blaster.

ParameterTypeDefaultDescription
projectiledynamic—projectile value consumed by this operation.
otherdynamic—other value consumed by this operation.
tracedynamic—trace value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

clipBounceVelocity

function clipBounceVelocity(projectile, normal)

Clip bounce velocity.

ParameterTypeDefaultDescription
projectiledynamic—projectile value consumed by this operation.
normaldynamic—normal value consumed by this operation.

View source

configureGrenade

function configureGrenade(context, owner, start, direction, damage, speed, timer, damageRadius, hand, held)

Configure grenade.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
timerdynamic—timer value consumed by this operation.
damageRadiusdynamic—damageRadius value consumed by this operation.
handdynamic—hand value consumed by this operation.
helddynamic—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.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
damageRadiusdynamic—damageRadius value consumed by this operation.

View source

fire_blaster

function fire_blaster(context, owner, start, direction, damage, speed, effect, hyper)

Fire blaster.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
effectdynamic—effect value consumed by this operation.
hyperdynamic—hyper value consumed by this operation.

View source

fire_grenade

function fire_grenade(context, owner, start, direction, damage, speed, timer, damageRadius)

Fire grenade.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
timerdynamic—timer value consumed by this operation.
damageRadiusdynamic—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.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
timerdynamic—timer value consumed by this operation.
damageRadiusdynamic—damageRadius value consumed by this operation.
helddynamic—held value consumed by this operation.

View source

fire_rocket

function fire_rocket(context, owner, start, direction, damage, speed, damageRadius, radiusDamage)

Fire rocket.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
damageRadiusdynamic—damageRadius value consumed by this operation.
radiusDamagedynamic—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.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
damageRadiusdynamic—damageRadius value consumed by this operation.

View source

fireBlaster

function fireBlaster(context, owner, start, direction, damage, speed, effect, hyper)

Fire blaster.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
effectdynamic—effect value consumed by this operation.
hyperdynamic—hyper value consumed by this operation.

View source

fireBlasterInternal

function fireBlasterInternal(context, owner, start, direction, damage, speed, effect, hyper, targetBlaster)

Fire blaster internal.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
effectdynamic—effect value consumed by this operation.
hyperdynamic—hyper value consumed by this operation.
targetBlasterdynamic—targetBlaster value consumed by this operation.

View source

fireGrenade

function fireGrenade(context, owner, start, direction, damage, speed, timer, damageRadius)

Fire grenade.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
timerdynamic—timer value consumed by this operation.
damageRadiusdynamic—damageRadius value consumed by this operation.

View source

fireGrenade2

function fireGrenade2(context, owner, start, direction, damage, speed, timer, damageRadius, held)

Fire grenade 2.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
timerdynamic—timer value consumed by this operation.
damageRadiusdynamic—damageRadius value consumed by this operation.
helddynamic—held value consumed by this operation.

View source

fireRocket

function fireRocket(context, owner, start, direction, damage, speed, damageRadius, radiusDamage)

Fire rocket.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
damageRadiusdynamic—damageRadius value consumed by this operation.
radiusDamagedynamic—radiusDamage value consumed by this operation.

View source

fireTargetBlaster

function fireTargetBlaster(context, owner, start, direction, damage, speed)

Fire target blaster.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.

View source

grenadeExplode

function grenadeExplode(projectile, context)

Return the grenade explode value.

ParameterTypeDefaultDescription
projectiledynamic—projectile value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

grenadeTouch

function grenadeTouch(projectile, other, trace, context)

Handle grenade.

ParameterTypeDefaultDescription
projectiledynamic—projectile value consumed by this operation.
otherdynamic—other value consumed by this operation.
tracedynamic—trace value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

grenadeVelocity

function grenadeVelocity(context, direction, speed)

Return the grenade velocity value.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
directiondynamic—direction value consumed by this operation.
speeddynamic—speed value consumed by this operation.

View source

ownerImpactNoise

function ownerImpactNoise(projectile, context)

Return the owner impact noise value.

ParameterTypeDefaultDescription
projectiledynamic—projectile value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

rocketTouch

function rocketTouch(projectile, other, trace, context)

Handle rocket.

ParameterTypeDefaultDescription
projectiledynamic—projectile value consumed by this operation.
otherdynamic—other value consumed by this operation.
tracedynamic—trace value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source