MiniQuake2

src/miniquake2/game/weapons/types.ml

Provides miniquake2 game weapons types facilities for this project.

Package
miniquake2.game.weapons.types
Reachable
Yes

Imports

Declarations

createHandGrenadeState

function createHandGrenadeState(owner, ammo)

Create hand grenade state.

ParameterTypeDefaultDescription
ownerdynamic—owner value consumed by this operation.
ammodynamic—ammo value consumed by this operation.

View source

createProjectile

function createProjectile(number, className)

Create projectile.

ParameterTypeDefaultDescription
numberdynamic—number value consumed by this operation.
classNamedynamic—className value consumed by this operation.

View source

createTarget

function createTarget(number, health)

Create target.

ParameterTypeDefaultDescription
numberdynamic—number value consumed by this operation.
healthdynamic—health value consumed by this operation.

View source

miniquake2.game.weapons.types.HandGrenadeState struct

miniquake2.game.weapons.types.Projectile struct

miniquake2.game.weapons.types.WeaponCallbacks struct

miniquake2.game.weapons.types.WeaponContext struct

miniquake2.game.weapons.types.WeaponEffect struct

miniquake2.game.weapons.types.WeaponTarget struct