# addEntity
function addEntity(world, entity)Add entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
src/miniquake2/game/world/core.mlProvides miniquake2 game world core facilities for this project.
miniquake2/game/world/constants.ml as gwconstants → src/miniquake2/game/world/constants.mlminiquake2/game/world/types.ml as gwtypes → src/miniquake2/game/world/types.mlminiquake2/game/world/vector.ml as gwvector → src/miniquake2/game/world/vector.mlminiquake2/qcommon/text.ml as qtext → src/miniquake2/qcommon/text.mlminiquake2/qcommon/types.ml as gwcoreqtypes → src/miniquake2/qcommon/types.mlfunction addEntity(world, entity)Add entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
function advance(world, targetTime)Performs the advance operation for the miniquake2 game world core module.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
targetTime | dynamic | — | targetTime value consumed by this operation. |
function blockedEntity(world, entity, other)Report whether blocked entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
function createWorld(callbacks)Create world.
| Parameter | Type | Default | Description |
|---|---|---|---|
callbacks | dynamic | — | callbacks value consumed by this operation. |
function defaultCallbacks()Return the default callbacks value.
function emit(world, kind, entity, detail)Performs the emit operation for the miniquake2 game world core module.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
kind | dynamic | — | kind value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
detail | dynamic | — | detail value consumed by this operation. |
function findByNumber(world, number)Find by number.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
number | dynamic | — | number value consumed by this operation. |
function freeEntity(world, entity)Release entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
function freeThink(entity, world)Release think.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function G_UseTargets(entity, activator, world)Source-traceable entry points retained for later baseq2 registry wiring.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
activator | dynamic | — | activator value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
inline function integrate(world, duration)Return the integrate value.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
duration | dynamic | — | duration value consumed by this operation. |
function killEntity(world, entity, inflictor, attacker, damage, point)Kill entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
inflictor | dynamic | — | inflictor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
point | dynamic | — | point value consumed by this operation. |
function log(world, message)Return the log value.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
message | dynamic | — | Human-readable message associated with the operation. |
function matchingTargets(world, targetName)Return the matching targets value.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
targetName | dynamic | — | targetName value consumed by this operation. |
const MAX_WORLD_EVENT_HISTORY = 1024Defines the max world event history constant used by the miniquake2 game world core module.
function noopActorMessage(actor, message)Return the noop actor message value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
message | dynamic | — | Human-readable message associated with the operation. |
function noopActorTransition(actor, waypoint, action, actionTarget, nextTarget, wait, flags)Return the noop actor transition value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
waypoint | dynamic | — | waypoint value consumed by this operation. |
action | dynamic | — | action value consumed by this operation. |
actionTarget | dynamic | — | actionTarget value consumed by this operation. |
nextTarget | dynamic | — | nextTarget value consumed by this operation. |
wait | dynamic | — | wait value consumed by this operation. |
flags | dynamic | — | Bit flags controlling the operation. |
function noopAreaPortal(style, isOpen)Return the noop area portal value.
| Parameter | Type | Default | Description |
|---|---|---|---|
style | dynamic | — | style value consumed by this operation. |
isOpen | dynamic | — | isOpen value consumed by this operation. |
function noopCenterPrint(entity, message)Print noop center.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
message | dynamic | — | Human-readable message associated with the operation. |
function noopChangeLevel(entity, other, activator, mapName)Return the noop change level value.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
activator | dynamic | — | activator value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
function noopCombatPointTransition(actor, point, nextTarget, hold, clearCombatPoint)Return the noop combat point transition value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
point | dynamic | — | point value consumed by this operation. |
nextTarget | dynamic | — | nextTarget value consumed by this operation. |
hold | dynamic | — | hold value consumed by this operation. |
clearCombatPoint | dynamic | — | clearCombatPoint value consumed by this operation. |
function noopConsumeKeyItem(activator, itemClassName)Consume noop key item.
| Parameter | Type | Default | Description |
|---|---|---|---|
activator | dynamic | — | activator value consumed by this operation. |
itemClassName | dynamic | — | itemClassName value consumed by this operation. |
function noopDamage(target, inflictor, attacker, amount, means)Return the noop damage value.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | dynamic | — | target value consumed by this operation. |
inflictor | dynamic | — | inflictor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
amount | dynamic | — | amount value consumed by this operation. |
means | dynamic | — | means value consumed by this operation. |
function noopEarthquake(entity, speed, playSound)Return the noop earthquake value.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
playSound | dynamic | — | playSound value consumed by this operation. |
function noopEffect(kind, origin, style, count)Return the noop effect value.
| Parameter | Type | Default | Description |
|---|---|---|---|
kind | dynamic | — | kind value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
style | dynamic | — | style value consumed by this operation. |
count | dynamic | — | Number of items or units to process. |
function noopFireBlaster(entity, direction, damage, speed)Fire noop blaster.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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. |
function noopHasKeyItem(activator, itemClassName)Report whether noop has key item.
| Parameter | Type | Default | Description |
|---|---|---|---|
activator | dynamic | — | activator value consumed by this operation. |
itemClassName | dynamic | — | itemClassName value consumed by this operation. |
function noopKillBox(entity)Kill noop box.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function noopLaserSparks(origin, normal, count, color)Return the noop laser sparks value.
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | dynamic | — | origin value consumed by this operation. |
normal | dynamic | — | normal value consumed by this operation. |
count | dynamic | — | Number of items or units to process. |
color | dynamic | — | color value consumed by this operation. |
function noopLightStyle(style, pattern)Return the noop light style value.
| Parameter | Type | Default | Description |
|---|---|---|---|
style | dynamic | — | style value consumed by this operation. |
pattern | dynamic | — | pattern value consumed by this operation. |
function noopLinkEntity(entity)Link noop entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function noopLog(message)Return the noop log value.
| Parameter | Type | Default | Description |
|---|---|---|---|
message | dynamic | — | Human-readable message associated with the operation. |
function noopRadiusDamage(inflictor, attacker, amount, radius, means)Return the noop radius damage value.
| Parameter | Type | Default | Description |
|---|---|---|---|
inflictor | dynamic | — | inflictor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
amount | dynamic | — | amount value consumed by this operation. |
radius | dynamic | — | radius value consumed by this operation. |
means | dynamic | — | means value consumed by this operation. |
function noopResolveKeyItem(itemClassName)Resolve noop key item.
| Parameter | Type | Default | Description |
|---|---|---|---|
itemClassName | dynamic | — | itemClassName value consumed by this operation. |
function noopSetModel(entity, modelName)Set noop model.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
modelName | dynamic | — | modelName value consumed by this operation. |
function noopSound(entity, soundName)Return the noop sound value.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
soundName | dynamic | — | soundName value consumed by this operation. |
function noopSpawnExternal(className, origin, angles, velocity)Spawn noop external.
| Parameter | Type | Default | Description |
|---|---|---|---|
className | dynamic | — | className value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
angles | dynamic | — | angles value consumed by this operation. |
velocity | dynamic | — | velocity value consumed by this operation. |
function noopTargetExplosion(origin)Return the noop target explosion value.
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | dynamic | — | origin value consumed by this operation. |
function noopTargetSplash(origin, direction, count, sounds)Return the noop target splash value.
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | dynamic | — | origin value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
count | dynamic | — | Number of items or units to process. |
sounds | dynamic | — | sounds value consumed by this operation. |
function noopTraceLine(start, finish, ignore)Trace noop line.
| Parameter | Type | Default | Description |
|---|---|---|---|
start | dynamic | — | start value consumed by this operation. |
finish | dynamic | — | finish value consumed by this operation. |
ignore | dynamic | — | ignore value consumed by this operation. |
function pickTarget(world, targetName)Choose target.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
targetName | dynamic | — | targetName value consumed by this operation. |
function runFrame(world)Run frame.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
function spawnEntity(world, className)Spawn entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
className | dynamic | — | className value consumed by this operation. |
function Think_Delay(entity, world)Run delay.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function thinkDelayed(entity, world)Run delayed.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function touchEntity(world, entity, other)Handle entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
function useEntity(world, entity, other, activator)Use entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
activator | dynamic | — | activator value consumed by this operation. |
function useTargets(world, entity, activator)Use targets.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
activator | dynamic | — | activator value consumed by this operation. |
function worldCoreAppendEvent(values, value)Append world core event.
| Parameter | Type | Default | Description |
|---|---|---|---|
values | dynamic | — | values value consumed by this operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
function zeroClockSeconds()Return the zero clock seconds value.
function zeroRandomIndex(count)Return the zero random index.
| Parameter | Type | Default | Description |
|---|---|---|---|
count | dynamic | — | Number of items or units to process. |
function zeroRandomSigned()Return the zero random signed value.