# createCombatant
function createCombatant(number, health)Create combatant.
| Parameter | Type | Default | Description |
|---|---|---|---|
number | dynamic | — | number value consumed by this operation. |
health | dynamic | — | health value consumed by this operation. |
src/miniquake2/game/gameplay/types.mlProvides miniquake2 game gameplay types facilities for this project.
miniquake2/game/gameplay/constants.ml as gpconstants → src/miniquake2/game/gameplay/constants.mlminiquake2/game/types.ml as gtypes → src/miniquake2/game/types.mlminiquake2/qcommon/types.ml as gpqtypes → src/miniquake2/qcommon/types.mlminiquake2.game.gameplay.types.Combatant struct
function createCombatant(number, health)Create combatant.
| Parameter | Type | Default | Description |
|---|---|---|---|
number | dynamic | — | number value consumed by this operation. |
health | dynamic | — | health value consumed by this operation. |
function createInventory(itemSlots)Create inventory.
| Parameter | Type | Default | Description |
|---|---|---|---|
itemSlots | dynamic | — | itemSlots value consumed by this operation. |
function createItemEntity(number, item)Create item entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
number | dynamic | — | number value consumed by this operation. |
item | dynamic | — | item value consumed by this operation. |
function createPlayer(number, itemSlots)Create player.
| Parameter | Type | Default | Description |
|---|---|---|---|
number | dynamic | — | number value consumed by this operation. |
itemSlots | dynamic | — | itemSlots value consumed by this operation. |
function damageRequest(direction, point, damage, knockback, flags, meansOfDeath)Return the damage request value.
| Parameter | Type | Default | Description |
|---|---|---|---|
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. |
miniquake2.game.gameplay.types.DamageRequest struct
miniquake2.game.gameplay.types.DamageResult struct
miniquake2.game.gameplay.types.GameplayPlayer struct
miniquake2.game.gameplay.types.Inventory struct
function itemAction(success, reason, amount)Return the item action value.
| Parameter | Type | Default | Description |
|---|---|---|---|
success | dynamic | — | success value consumed by this operation. |
reason | dynamic | — | reason value consumed by this operation. |
amount | dynamic | — | amount value consumed by this operation. |
miniquake2.game.gameplay.types.ItemAction struct
miniquake2.game.gameplay.types.ItemDefinition struct
miniquake2.game.gameplay.types.ItemEntity struct
miniquake2.game.gameplay.types.ItemRegistry struct
function itemRuleData(kind, armorBase, armorMax, normalProtection, energyProtection, healthCount, healthStyle, duration)Return the item rule data value.
| Parameter | Type | Default | Description |
|---|---|---|---|
kind | dynamic | — | kind value consumed by this operation. |
armorBase | dynamic | — | armorBase value consumed by this operation. |
armorMax | dynamic | — | armorMax value consumed by this operation. |
normalProtection | dynamic | — | normalProtection value consumed by this operation. |
energyProtection | dynamic | — | energyProtection value consumed by this operation. |
healthCount | dynamic | — | Number of health to process. |
healthStyle | dynamic | — | healthStyle value consumed by this operation. |
duration | dynamic | — | duration value consumed by this operation. |
miniquake2.game.gameplay.types.ItemRuleData struct
function pickupContext(deathmatch, cooperative, dmFlags, time)Pick up context.
| Parameter | Type | Default | Description |
|---|---|---|---|
deathmatch | dynamic | — | deathmatch value consumed by this operation. |
cooperative | dynamic | — | cooperative value consumed by this operation. |
dmFlags | dynamic | — | dmFlags value consumed by this operation. |
time | dynamic | — | time value consumed by this operation. |
miniquake2.game.gameplay.types.PickupContext struct
miniquake2.game.gameplay.types.PowerArmorResult struct
miniquake2.game.gameplay.types.PrecacheResult struct