# addTargetOrigin
function addTargetOrigin(target)Add target origin.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | dynamic | — | target value consumed by this operation. |
src/miniquake2/game/weapons/core.mlProvides miniquake2 game weapons core facilities for this project.
miniquake2/game/gameplay/combat.ml as gpcombat → src/miniquake2/game/gameplay/combat.mlminiquake2/game/gameplay/constants.ml as gpconstants → src/miniquake2/game/gameplay/constants.mlminiquake2/game/gameplay/types.ml as gptypes → src/miniquake2/game/gameplay/types.mlminiquake2/game/weapons/constants.ml as wbconstants → src/miniquake2/game/weapons/constants.mlminiquake2/game/weapons/types.ml as wbtypes → src/miniquake2/game/weapons/types.mlminiquake2/game/weapons/vector.ml as wbvector → src/miniquake2/game/weapons/vector.mlminiquake2/qcommon/byteio.ml as qbyteio → src/miniquake2/qcommon/byteio.mlminiquake2/qcommon/constants.ml as qc → src/miniquake2/qcommon/constants.mlminiquake2/qcommon/directions.ml as qdir → src/miniquake2/qcommon/directions.mlminiquake2/qcommon/types.ml as qt → src/miniquake2/qcommon/types.mlfunction addTargetOrigin(target)Add target origin.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | dynamic | — | target value consumed by this operation. |
function advance(context, seconds)Performs the advance operation for the miniquake2 game weapons core module.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
seconds | dynamic | — | seconds value consumed by this operation. |
function alwaysCanDamage(target, origin)Report whether always can damage.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | dynamic | — | target value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
function applyDamage(context, target, inflictor, attacker, direction, point, damage, knockback, flags, meansOfDeath)Apply damage.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
target | dynamic | — | target value consumed by this operation. |
inflictor | dynamic | — | inflictor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
point | dynamic | — | point value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
knockback | dynamic | — | knockback value consumed by this operation. |
flags | dynamic | — | Bit flags controlling the operation. |
meansOfDeath | dynamic | — | meansOfDeath value consumed by this operation. |
function clearTrace(start, mins, maxs, endPosition, ignore, mask)Clear trace.
| Parameter | Type | Default | Description |
|---|---|---|---|
start | dynamic | — | start value consumed by this operation. |
mins | dynamic | — | mins value consumed by this operation. |
maxs | dynamic | — | maxs value consumed by this operation. |
endPosition | dynamic | — | endPosition value consumed by this operation. |
ignore | dynamic | — | ignore value consumed by this operation. |
mask | dynamic | — | mask value consumed by this operation. |
function combatDamage(target, request)Return the combat damage value.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | dynamic | — | target value consumed by this operation. |
request | dynamic | — | request value consumed by this operation. |
function createContext(callbacks)Create context.
| Parameter | Type | Default | Description |
|---|---|---|---|
callbacks | dynamic | — | callbacks value consumed by this operation. |
function damageAttackerNumber()Return the damage attacker number.
function defaultCallbacks()Return the default callbacks value.
function emitEffect(context, kind, start, endPosition, normal, style, count)Emit effect.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
kind | dynamic | — | kind value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
endPosition | dynamic | — | endPosition value consumed by this operation. |
normal | dynamic | — | normal value consumed by this operation. |
style | dynamic | — | style value consumed by this operation. |
count | dynamic | — | Number of items or units to process. |
function emptyContents(point)Report whether empty contents.
| Parameter | Type | Default | Description |
|---|---|---|---|
point | dynamic | — | point value consumed by this operation. |
function freeProjectile(context, projectile)Release projectile.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
projectile | dynamic | — | projectile value consumed by this operation. |
function freeThink(projectile, context)Release think.
| Parameter | Type | Default | Description |
|---|---|---|---|
projectile | dynamic | — | projectile value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
const MAX_WEAPON_EVENT_HISTORY = 1024Defines the max weapon event history constant used by the miniquake2 game weapons core module.
function noDodge(owner, start, direction, speed)Report whether no dodge.
| Parameter | Type | Default | Description |
|---|---|---|---|
owner | dynamic | — | owner value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
function noEffect(effect)Report whether no effect.
| Parameter | Type | Default | Description |
|---|---|---|---|
effect | dynamic | — | effect value consumed by this operation. |
function noFree(entity)Report whether no free.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function noLink(entity)Report whether no link.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function noNoise(owner, position, noiseType)Report whether no noise.
| Parameter | Type | Default | Description |
|---|---|---|---|
owner | dynamic | — | owner value consumed by this operation. |
position | dynamic | — | position value consumed by this operation. |
noiseType | dynamic | — | noiseType value consumed by this operation. |
function noRadiusTargets(origin, radius)Report whether no radius targets.
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | dynamic | — | origin value consumed by this operation. |
radius | dynamic | — | radius value consumed by this operation. |
function noSound(entity, soundName)Report whether no sound.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
soundName | dynamic | — | soundName value consumed by this operation. |
function radiusDamage(context, inflictor, attacker, baseDamage, ignore, radius, meansOfDeath)Return the radius damage value.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
inflictor | dynamic | — | inflictor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
baseDamage | dynamic | — | baseDamage value consumed by this operation. |
ignore | dynamic | — | ignore value consumed by this operation. |
radius | dynamic | — | radius value consumed by this operation. |
meansOfDeath | dynamic | — | meansOfDeath value consumed by this operation. |
function runDueThinks(context)Run due thinks.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
function spawnProjectile(context, className)Spawn projectile.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
className | dynamic | — | className value consumed by this operation. |
function surfaceIsSky(trace)Report whether surface is sky.
| Parameter | Type | Default | Description |
|---|---|---|---|
trace | dynamic | — | trace value consumed by this operation. |
function touchProjectile(context, projectile, other, trace)Handle projectile.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
projectile | dynamic | — | projectile value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
trace | dynamic | — | trace value consumed by this operation. |
function weaponCoreAppendEvent(context, value)Append weapon core event.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
weaponCoreDamageAttackerNumberStores module-wide weapon core damage attacker number state for the miniquake2 game weapons core module.
function zeroRandomSigned()Return the zero random signed value.