Provides miniquake2 game weapons hand grenade facilities for this project.
# step
function step(context, state, start, direction, damage, radius)
Performs the step operation for the miniquake2 game weapons hand grenade module.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
state | dynamic | — | Mutable state inspected or updated by the operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
radius | dynamic | — | radius value consumed by this operation. |
View source
# Weapon_Grenade
function Weapon_Grenade(context, state, start, direction, damage, radius)
Return the weapon grenade value.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
state | dynamic | — | Mutable state inspected or updated by the operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
radius | dynamic | — | radius value consumed by this operation. |
View source
# weapon_grenade_fire
function weapon_grenade_fire(context, state, start, direction, damage, radius, held)
Fire weapon grenade.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
state | dynamic | — | Mutable state inspected or updated by the operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
radius | dynamic | — | radius value consumed by this operation. |
held | dynamic | — | held value consumed by this operation. |
View source
# weaponGrenadeFire
function weaponGrenadeFire(context, state, start, direction, damage, radius, held)
Fire weapon grenade.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
state | dynamic | — | Mutable state inspected or updated by the operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
radius | dynamic | — | radius value consumed by this operation. |
held | dynamic | — | held value consumed by this operation. |
View source