MiniQuake2

src/miniquake2/game/ai/combat_profiles.ml

Provides miniquake2 game ai combat profiles facilities for this project.

Package
miniquake2.game.ai.combat_profiles
Reachable
Yes

Declarations

combatProfile

function combatProfile(className, attackKind, damage, knockback, speed, splashRadius, maximumRange, cooldown, count, muzzleFlash)

Return the combat profile value.

ParameterTypeDefaultDescription
classNamedynamic—className value consumed by this operation.
attackKinddynamic—attackKind value consumed by this operation.
damagedynamic—damage value consumed by this operation.
knockbackdynamic—knockback value consumed by this operation.
speeddynamic—speed value consumed by this operation.
splashRadiusdynamic—splashRadius value consumed by this operation.
maximumRangedynamic—maximumRange value consumed by this operation.
cooldowndynamic—cooldown value consumed by this operation.
countdynamic—Number of items or units to process.
muzzleFlashdynamic—muzzleFlash value consumed by this operation.

View source

findProfile

function findProfile(profiles, className)

Find profile.

ParameterTypeDefaultDescription
profilesdynamic—profiles value consumed by this operation.
classNamedynamic—className value consumed by this operation.

View source

miniquake2.game.ai.combat_profiles.MonsterCombatProfile struct

stockProfile

function stockProfile(className)

Return the stock profile value.

ParameterTypeDefaultDescription
classNamedynamic—className value consumed by this operation.

View source

stockProfiles

function stockProfiles()

Return the stock profiles value.

View source

validateProfiles

function validateProfiles(profiles)

Validate profiles.

ParameterTypeDefaultDescription
profilesdynamic—profiles value consumed by this operation.

View source