Files
src/miniquake2/game/gameplay/weapons.ml
Provides miniquake2 game gameplay weapons facilities for this project.
- Package
miniquake2.game.gameplay.weapons- Reachable
- Yes
Imports
Declarations
# ammoAvailable
function ammoAvailable(player, item, registry)
Report whether ammo available.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | player value consumed by this operation. |
item | dynamic | — | item value consumed by this operation. |
registry | dynamic | — | registry value consumed by this operation. |
View source
# ChangeWeapon
function ChangeWeapon(player, registry)
Return the change weapon value.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | player value consumed by this operation. |
registry | dynamic | — | registry value consumed by this operation. |
View source
# findByPickupName
function findByPickupName(registry, pickupName)
Finds by pickup name used by the miniquake2 game gameplay weapons module.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
pickupName | dynamic | — | pickupName value consumed by this operation. |
View source
# FireBfg
function FireBfg(player, registry)
Performs the FireBfg operation for the miniquake2 game gameplay weapons module.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | player value consumed by this operation. |
registry | dynamic | — | registry value consumed by this operation. |
View source
# FireCurrentWeapon
function FireCurrentWeapon(player, registry)
Basic fire callback used until weapon-specific projectile/hitscan code lands. It preserves the important contract: weapon callbacks own fire-frame advance.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | player value consumed by this operation. |
registry | dynamic | — | registry value consumed by this operation. |
View source
# hasFrame
function hasFrame(frames, value)
Report whether has frame.
| Parameter | Type | Default | Description |
|---|
frames | dynamic | — | frames value consumed by this operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
View source
# mirrorGunFrame
function mirrorGunFrame(player)
Return the mirror gun frame value.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | player value consumed by this operation. |
View source
# NoAmmoWeaponChange
function NoAmmoWeaponChange(player, registry)
Report whether no ammo weapon change.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | player value consumed by this operation. |
registry | dynamic | — | registry value consumed by this operation. |
View source
# owned
function owned(player, item)
Return the owned value.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | player value consumed by this operation. |
item | dynamic | — | item value consumed by this operation. |
View source
# Think_Bfg
function Think_Bfg(player, item, registry, pauseRoll)
Run bfg.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | player value consumed by this operation. |
item | dynamic | — | item value consumed by this operation. |
registry | dynamic | — | registry value consumed by this operation. |
pauseRoll | dynamic | — | pauseRoll value consumed by this operation. |
View source
# Think_CurrentWeapon
function Think_CurrentWeapon(player, item, registry, pauseRoll)
Run current weapon.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | player value consumed by this operation. |
item | dynamic | — | item value consumed by this operation. |
registry | dynamic | — | registry value consumed by this operation. |
pauseRoll | dynamic | — | pauseRoll value consumed by this operation. |
View source
# Weapon_Generic
function Weapon_Generic(player, frames, registry, fireCallback, pauseRoll)
Return the weapon generic value.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | player value consumed by this operation. |
frames | dynamic | — | frames value consumed by this operation. |
registry | dynamic | — | registry value consumed by this operation. |
fireCallback | dynamic | — | fireCallback value consumed by this operation. |
pauseRoll | dynamic | — | pauseRoll value consumed by this operation. |
View source