MiniQuake2

src/miniquake2/game/world/turret_types.ml

Provides miniquake2 game world turret types facilities for this project.

Package
miniquake2.game.world.turret_types
Reachable
Yes

Declarations

createTurretControl

function createTurretControl(callbacks, skill)

Create turret control.

ParameterTypeDefaultDescription
callbacksdynamic—callbacks value consumed by this operation.
skilldynamic—skill value consumed by this operation.

View source

createTurretLimits

function createTurretLimits(minPitch, maxPitch, minYaw, maxYaw)

Create turret limits.

ParameterTypeDefaultDescription
minPitchdynamic—minPitch value consumed by this operation.
maxPitchdynamic—maxPitch value consumed by this operation.
minYawdynamic—minYaw value consumed by this operation.
maxYawdynamic—maxYaw value consumed by this operation.

View source

defaultTurretCallbacks

function defaultTurretCallbacks()

Return the default turret callbacks value.

View source

defaultTurretLimits

function defaultTurretLimits()

Return the default turret limits value.

View source

turretAlwaysVisible

function turretAlwaysVisible(driver, enemy, world)

Report whether turret always visible.

ParameterTypeDefaultDescription
driverdynamic—driver value consumed by this operation.
enemydynamic—enemy value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

miniquake2.game.world.turret_types.TurretCallbacks struct

miniquake2.game.world.turret_types.TurretControl struct

turretEntitySound

function turretEntitySound(origin, entity, soundName, world)

Return the turret entity sound value.

ParameterTypeDefaultDescription
origindynamic—origin value consumed by this operation.
entitydynamic—entity value consumed by this operation.
soundNamedynamic—soundName value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

miniquake2.game.world.turret_types.TurretLimits struct

turretNoDriverDie

function turretNoDriverDie(driver, inflictor, attacker, damage, point, world)

Report whether turret no driver die.

ParameterTypeDefaultDescription
driverdynamic—driver value consumed by this operation.
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
damagedynamic—damage value consumed by this operation.
pointdynamic—point value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

turretNoDriverSpawn

function turretNoDriverSpawn(driver, world)

Report whether turret no driver spawn.

ParameterTypeDefaultDescription
driverdynamic—driver value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

turretNoDriverUse

function turretNoDriverUse(driver, other, activator, world)

Report whether turret no driver use.

ParameterTypeDefaultDescription
driverdynamic—driver value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

turretNoRocket

function turretNoRocket(attacker, start, direction, damage, speed, splashRadius, world)

Report whether turret no rocket.

ParameterTypeDefaultDescription
attackerdynamic—attacker 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.
splashRadiusdynamic—splashRadius value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

turretNoSkill

function turretNoSkill()

Report whether turret no skill.

View source

turretNoTarget

function turretNoTarget(driver, world)

Report whether turret no target.

ParameterTypeDefaultDescription
driverdynamic—driver value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

turretWorldCrush

function turretWorldCrush(target, inflictor, attacker, amount, knockback, means, world)

Return the turret world crush value.

ParameterTypeDefaultDescription
targetdynamic—target value consumed by this operation.
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
amountdynamic—amount value consumed by this operation.
knockbackdynamic—knockback value consumed by this operation.
meansdynamic—means value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

turretZeroRandom

function turretZeroRandom()

Return the turret zero random value.

View source