diff --git a/assets/js/search-data.json b/assets/js/search-data.json index 05284f29..dd769111 100644 --- a/assets/js/search-data.json +++ b/assets/js/search-data.json @@ -301,7 +301,7 @@ },"50": { "doc": "Hook types", "title": "AmmoCost", - "content": "HOOK_AMMOCOST (hs_ammocost.int) . Runs when calculating ammo cost for a weapon. Doesn’t affect damage, only how much ammo is spent. By default, weapon will shoot when at least 1 round is left, regardless of ammo cost calculations. To add proper check for ammo before shooting and proper calculation of number of burst rounds (hook type 1 and 2 in arg3), set CheckWeaponAmmoCost=1 in Misc section of ddraw.ini. Item arg0 - The weapon int arg1 - Number of bullets in burst or 1 for single shots int arg2 - The amount of ammo that will be consumed, calculated by the original ammo cost function (this is basically 2 for Super Cattle Prod and Mega Power Fist) NOTE: for hook type 2, this value is the ammo cost per round (default is always 1) int arg3 - Type of hook: 0 - when subtracting ammo after single shot attack 1 - when checking for \"out of ammo\" before attack 2 - when calculating number of burst rounds 3 - when subtracting ammo after burst attack int ret0 - The new amount of ammo to be consumed, or ammo cost per round for hook type 2 (set to 0 for unlimited ammo) . ", + "content": "HOOK_AMMOCOST (hs_ammocost.int) . Runs when calculating ammo cost for a weapon. Doesn’t affect damage, only how much ammo is spent. By default, weapons can make attacks when at least 1 ammo is left, regardless of ammo cost calculations. To add proper check for ammo before attacking and proper calculation of the number of burst rounds (hook type 1 and 2 in arg3), set CheckWeaponAmmoCost=1 in Misc section of ddraw.ini. Item arg0 - The weapon int arg1 - Number of bullets in burst or 1 for single shots int arg2 - The amount of ammo that will be consumed, calculated by the original ammo cost function (this is basically 2 for Super Cattle Prod and Mega Power Fist) NOTE: for hook type 2, this value is the ammo cost per round (default is always 1) int arg3 - Type of hook: 0 - when subtracting ammo after single shot attack 1 - when checking for \"out of ammo\" before attack 2 - when calculating number of burst rounds 3 - when subtracting ammo after burst attack int ret0 - The new amount of ammo to be consumed, or ammo cost per round for hook type 2 (set to 0 for unlimited ammo) . ", "url": "/sfall/hook-types/#ammocost", "relUrl": "/hook-types/#ammocost" },"51": { diff --git a/feed.xml b/feed.xml index 4bf8f7b6..e8022690 100644 --- a/feed.xml +++ b/feed.xml @@ -1 +1 @@ -Jekyll2021-10-15T02:53:42+00:00/sfall/sfallSfall documentation \ No newline at end of file +Jekyll2021-11-10T00:53:27+00:00/sfall/sfallSfall documentation \ No newline at end of file diff --git a/hook-types/index.html b/hook-types/index.html index bc2f3318..38198285 100644 --- a/hook-types/index.html +++ b/hook-types/index.html @@ -22,7 +22,7 @@ int arg4 - The hit chance int ret0 - Override the hit/miss int ret1 - Override the targeted bodypart Critter ret2 - Override the target of the attack -

AmmoCost

HOOK_AMMOCOST (hs_ammocost.int)

Runs when calculating ammo cost for a weapon. Doesn’t affect damage, only how much ammo is spent. By default, weapon will shoot when at least 1 round is left, regardless of ammo cost calculations. To add proper check for ammo before shooting and proper calculation of number of burst rounds (hook type 1 and 2 in arg3), set CheckWeaponAmmoCost=1 in Misc section of ddraw.ini.

Item    arg0 - The weapon
+

AmmoCost

HOOK_AMMOCOST (hs_ammocost.int)

Runs when calculating ammo cost for a weapon. Doesn’t affect damage, only how much ammo is spent. By default, weapons can make attacks when at least 1 ammo is left, regardless of ammo cost calculations. To add proper check for ammo before attacking and proper calculation of the number of burst rounds (hook type 1 and 2 in arg3), set CheckWeaponAmmoCost=1 in Misc section of ddraw.ini.

Item    arg0 - The weapon
 int     arg1 - Number of bullets in burst or 1 for single shots
 int     arg2 - The amount of ammo that will be consumed, calculated by the original ammo cost function (this is basically 2 for Super Cattle Prod and Mega Power Fist)
                NOTE: for hook type 2, this value is the ammo cost per round (default is always 1)