Provides miniquake2 game ai archetypes facilities for this project.
# archetype
function archetype(className, model, mins, maxs, health, gibHealth, mass, movement, hasAttack, hasMelee)
Return the archetype value.
| Parameter | Type | Default | Description |
|---|
className | dynamic | — | className value consumed by this operation. |
model | dynamic | — | model value consumed by this operation. |
mins | dynamic | — | mins value consumed by this operation. |
maxs | dynamic | — | maxs value consumed by this operation. |
health | dynamic | — | health value consumed by this operation. |
gibHealth | dynamic | — | gibHealth value consumed by this operation. |
mass | dynamic | — | mass value consumed by this operation. |
movement | dynamic | — | movement value consumed by this operation. |
hasAttack | dynamic | — | hasAttack value consumed by this operation. |
hasMelee | dynamic | — | hasMelee value consumed by this operation. |
View source
# find
function find(registry, className)
Finds find used by the miniquake2 game ai archetypes module.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
className | dynamic | — | className value consumed by this operation. |
View source
# ReinitializeMonster
function ReinitializeMonster(actor, context)
Return the reinitialize monster value.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# SpawnMonster
function SpawnMonster(registry, className, number, context)
Spawn monster.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
className | dynamic | — | className value consumed by this operation. |
number | dynamic | — | number value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source